about | help | code help+videos | done | prefs |
fund_blackjack
Imagine you are playing the card game Blackjack where you get dealt two playing cards. In the game Blackjack, the player tries to get as close to a hand total of 21 as possible without going over. It most often is beneficial to hit (get another card) if you have a hand value of 16 or less and to stay (end your turn) if you have a hand value of 17 or more.
fund_blackjack(5, 7) → "hit" fund_blackjack(1, 2) → "hit" fund_blackjack(8, 10) → "stay" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy