diff --git a/21 Psuedo b/21 Psuedo index fd61a3c..5f44582 100644 --- a/21 Psuedo +++ b/21 Psuedo @@ -17,27 +17,32 @@ Aces : 1 or 11 Jacks, Queens, Kings, and 10 : 10 Cards 2 through 9 : Same value -for (each player in the game * 3 rounds); -The players look at their cards - If the 2 cards add up to 21: - say "21" to end the game - Else: - begin the game normally -The dealer asks the player to hit or stand. - If the player chooses to hit: - dealer gives the player 1 card faced down - Else if the player chooses to stand: - the player keeps the same cards -The player looks at their cards again - If the player's cards add up to 21 first or is closest to 21 but still under 21: - the player wins the game - If the player's cards add up to above 21: - the player is busted (eliminated) - Else: - Continue the game normally -Proceed to deal cards to the next player - If both players' cards are equal, less than 21, and they both stay: - it is a push (tie) +for (each player in the game * 3 rounds){ + The players look at their cards + If the 2 cards add up to 21{ + say "21" to end the game + }Else{ + begin the game normally + } + The dealer asks the player to hit or stand. + If the player chooses to hit{ + dealer gives the player 1 card faced down + }Else the player chooses to stand{ + the player keeps the same cards + } + The player looks at their cards again + If the player's cards add up to 21 first or is closest to 21 but still under 21{ + the player wins the game + } + If the player's cards add up to above 21{ + the player is busted (eliminated) + }Else{ + Continue the game normally + } + Proceed to deal cards to the next player + If both players' cards are equal, less than 21, and they both stay{ + it is a push (tie) + }