Skip to content

fionaw237/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack

  • This is a basic text-based Blackjack game allowing 1 or more human players to play against a computer dealer. It is currently set up with two players and a dealer.

  • Can run using IDE/terminal.

Rules

  1. Aces may be counted as 1 or 11 points, cards 2 to 9 are counted according to card value, and tens and face cards count as ten points (NOTE: currently only the human players can set ace as high - the computer will only do this if it has a "blackjack".)

  2. The value of a hand is the sum of the point values of the individual cards

  • Except, a "blackjack" is the highest hand, consisting of an ace and any 10-point card, and it outranks all other 21-point hands
  1. To start, the dealer will give two cards to each player and two cards to herself/himself

  2. One of the dealer cards is dealt face up

  3. Play begins with the player to the dealer's left. The following are the choices available to the player:

  • Stand: Player stands pat with his cards
  • Twist: Player draws another card (and more if he wishes). If this card causes the player's total points to exceed 21 (known as "breaking" or "busting"), then she/he loses
  1. After each player has had her/his turn, the dealer will turn over their second card.
  • If the dealer has 16 or less, they will draw another card
  • If the dealer goes over 21 points, then any player who didn't already bust will win
  • If the dealer does not bust, then the higher point total between the player and dealer will win

About

CodeClan coursework - Basic text-based Blackjack game allowing 1 or more human players to play against a computer dealer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages