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

前端 未结 7 1264
心在旅途
心在旅途 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:00

    Just treat each ace as 11. Then while the value is over 21, subtract 10 from your total for each ace in your hand.

提交回复
热议问题