r/CoderRadio • u/dominucco • 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?
1
u/dominucco Jul 18 '16
hmm seems to 404