This version of Twenty-one is a card game played between a player and the dealer (the computer). The aim of the game is to accumulate a higher point total than the dealer but without going over a total of 21. Your point total is calculated by adding the face value of your individual cards. Each card counts as its face value, except for the face cards (jack, queen and king) which count as 10, and the ace is worth either 1 or 11 (player's choice at the time following the dealing of the card). If the dealer receives an ace it will always count as 11. At start of the game, the player and dealer receives two cards each (face up). The player can keep his hand as it is ( stand) or take more cards from the deck (hit), one at a time, until either the player decides that their hand is sufficient to play against the dealer and stands, or until the total goes over 21, in which case the player immediately loses (busts).
If the player has decided to stand, it is the dealer's turn. If the dealer has 21, (an ace with any 10 point card), the dealer immediately wins. If the dealer does not have 21, the dealer hits (takes more cards) or stands depending on the value of their hand. The only additional rule on the dealer, is that the dealer must hit if the value of their hand is lower than 17. No such rule applies to the player. If the dealer goes bust, then the player wins. Otherwise whoever has the higher point value wins. If both dealer and player have same point value neither wins.
Sample Game Interaction (Mock-up)
Player has Two, Five
Dealer has Ace, Two
Player hit (H) or stand (S): H
Player has Two, Five, Queen
Player hit (H) or stand (S): S
Player has 17 points
Dealer has Ace, Two, Four
Dealer has Ace, Two, Four, Six
Dealer has gone bust (23 points) - you win
You have won 1 games and I have won 0 games
Another Game? (Y or N)