Is there an elegant way to deal with the Ace in Blackjack?

前端 未结 7 1206
心在旅途
心在旅途 2020-12-06 10:19

My kiddo had a homework assignment to write Blackjack in Java. I helped him a little but for the most part he did it all himself and it actually plays pretty well. He even c

相关标签:
7条回答
  • 2020-12-06 11:20

    You will only ever use 1 ace for the 11 points. So calculate all but the last ace as 1 and if have 10 or less points, the last ace counts as 10.

    0 讨论(0)
提交回复
热议问题