Skip to content

Blackjack / 21 is a simple console-based implementation of the popular casino card game in Python.

License

Notifications You must be signed in to change notification settings

Dhanush-S-Gowda/Blackjack-21-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Blackjack / 21 Game using python

Introduction

Welcome to Blackjack / 21! This is a simple console-based implementation of the popular casino card game in Python.

How to Play

  1. Run the code and choose to start the game by entering 's'.
  2. If you wish to see the rules, you can enter 'y' when prompted.
  3. Follow the on-screen instructions to play the game.
  4. Enter 'h' to hit or 's' to stand during your turn.
  5. The game will determine the winner based on the sum of the card values.

Rules

The basic rules of Blackjack are provided in the rules() function. You can see them by entering 'y' when prompted at the beginning of the game.

Game Features

  • The game handles Aces intelligently, choosing between the values 1 or 11 based on the hand's current total.
  • The dealer hits until their hand reaches at least 17.
  • The game checks for busts and determines the winner accordingly.

Requirements

  • Python 3.x

Author

  • Dhanush S Gowda

License

This project is licensed under the MIT License.

Enjoy the game!

About

Blackjack / 21 is a simple console-based implementation of the popular casino card game in Python.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages