Skip to content

aomerge/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack

License: MIT

Description

This is a simple blackjack game that can be played in the terminal. The game is played against the computer. The game is played with a standard deck of 52 cards. The game is played with the following rules:

  • The player and the computer are each dealt two cards.
  • The player can see one of the computer's cards.
  • The player can choose to hit or stand.
  • If the player hits, they are dealt another card.
  • If the player stands, the computer will hit until they have a hand value of 17 or higher.
  • The player wins if they have a hand value closer to 21 than the computer.
  • The player loses if they have a hand value greater than 21.
  • The player loses if the computer has a hand value closer to 21 than the player.
  • The player wins if the computer has a hand value greater than 21.
  • The player wins if the player has a hand value of 21.

How to Play

To play the game, run the following command in the terminal:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages