Skip to content

AKT311209/Blackjackgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Blackjack Game

This is a Python script that simulates a Blackjack game.

How to Play

  1. Run the script using Python.
  2. Enter the amount of money you want to start with.
  3. Enter the amount of money you want the dealer to start with.
  4. Place your bet for each round.
  5. Choose whether to hit (draw a card) or stand (end your turn).
  6. The dealer will then draw cards according to the game rules.
  7. The winner is determined based on the values of the cards.

Classes

  • Cards: Represents a single card in the deck.
  • Deck: Represents a deck of cards.
  • Player: Represents a player in the game.
  • Dealer: Represents the dealer in the game.

Functions

  • clear_screen(): Clears the console screen.
  • player_drawing(): Handles the player's turn.
  • dealer_drawing(): Handles the dealer's turn.

Running the Game

To run the game, execute the following command in your terminal:

python Blackjack.py

About

A simple Blackjack game written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages