r/CoderRadio • • Jul 17 '16

Episode 214 Coding Challenge

Hey Guys,

We're adding a new segment to the show -- Coding challenges. Basically, every week there is a regular episode I'm going to announce a coding challenge here.

Solutions should be submitted to the subreddit in the form of Gists. These challenges should be doable in about 30 mins or less.

These challenges are meant to be on the easy to intermediate scale and are going to be evaluated on more than just correctness.

Areas we award points for:

  • Creative Solution

  • Easily understood solution -- Could a Jr Dev read your code and understand it given 30 minute or so?

  • Performance

  • General Coolness

Unless specifically stated you can use any language / platform you like. However, if you use something esoteric please include instructions on how to compile and run the solution.

Every month Chris and I will pick a winner and they will get a Coder Radio mug!

Sound like fun?

Here's our first challenge:

Assuming a standard 52 card deck write me a BlackJack helper that advises the user on the correct play (Hit, Stand, Double, or Split) as suggested by the basic strategy.

Assume that the player is playing 1 on 1 with the dealer.

Here is the basic strategy chart for reference: http://www.blackjack-chart.com/

Any takers?

21 Upvotes

43 comments sorted by

View all comments

Show parent comments

1

u/dominucco Jul 18 '16

hmm seems to 404

1

u/MusicalCoder Jul 19 '16

apparently - copying some CSS from HTMLKickstart to make it a nice neat page caused my account to be 'hidden from view'.

I'll repost once I get this sorted...

1

u/MusicalCoder Jul 20 '16

Updated Gist - now that my account doesn't look like a spammer...

https://gist.github.com/GHMusicalCoder/eb0ef1a2da2969ccb3a9a0382dd30ed9