COMP 220 All Assignments COMP 220 All Assignments | Page 4
holds, he or she should not be asked to draw a card again during the game. The game continues
until one of the following conditions occur:
. all players have declared hold;
all players and the dealer have gone over 21; a maximum of five cards total are held by any
player at the end of a round of card draws; or any combination of the above.
The display should show each player’s (and the dealer’s) hand and update the display after each
round of card draws.
spades ♠, clubs ♣, hearts ♥, and diamonds ♦
Example
Card 1
Card 2
Card 3
Card 4 Card 5
Dealer:
?
10♦
Player 1:
A♣
2♠
Player 2:
J♣
Q♥
Player 3:
3♦
8♣