mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-21 23:00:43 -08:00
Add notes about insurance
This commit is contained in:
@@ -75,11 +75,15 @@ public class Game {
|
|||||||
|
|
||||||
printInitialDeal(players, dealer);
|
printInitialDeal(players, dealer);
|
||||||
|
|
||||||
|
// TODO if dealer has an ACE, prompt "ANY INSURANCE"
|
||||||
|
// if yes, print "INSURANCE BETS" and prompt each player with "# [x] ? " where X is player number
|
||||||
|
// insurance bets must be equal or less than half the player's regular bet
|
||||||
|
|
||||||
// TODO check for dealer blackjack
|
// TODO check for dealer blackjack
|
||||||
// if blackjack, print "DEALER HAS A [x] IN THE HOLE\nFOR BLACKJACK" and skip to evaluateRound
|
// if blackjack, print "DEALER HAS A [x] IN THE HOLE\nFOR BLACKJACK" and skip to evaluateRound
|
||||||
|
// pay 2x insurance bets (insurance bet of 5 pays 10) if applicable
|
||||||
// if not, print "NO DEALER BLACKJACK"
|
// if not, print "NO DEALER BLACKJACK"
|
||||||
|
// collect insurance bets if applicable
|
||||||
// TODO if dealer has an ACE, prompt "ANY INSURANCE" and deal with insurance
|
|
||||||
|
|
||||||
for(Player player : players){
|
for(Player player : players){
|
||||||
play(player);
|
play(player);
|
||||||
|
|||||||
Reference in New Issue
Block a user