AnthisCareerAcademy / 2024_AM_21-game

1 stars 7 forks source link

The rules of this game is to beat the dealer having a hand value close to 21 without going over Number cards are (2-10) Face Cards are worth 10 points (jack, queen and king) Ace cards are either 1 or 11 (your choice) The player and the dealer will recieve two cards Player's cards are face up while the dealer has one face up and one face down It is the player's turn now Choices are :Stand,Hit,Split They can hit (take another card, but if they go over 21 they lose) Stand (keep current hand) Split if the two cards are the same value then you split them in two seperate hands Now it is the dealers turn Their only choice is to keep hitting until the dealer is above 16 But if dealer goes over 21 he busts and loses If the player hits 21 but the dealer has below 21 player wins If player is closer to 21 then the dealer without going over player wins If dealer hits 21 but player has below 21 dealer wins If dealer is closer to 21 then player loses If player and dealer get the same number it is a draw Then shuffle the cards and repeat.