Skip to content

dukebao/pythonblackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack Game

This project is a graphical Blackjack game implemented using Python and Pygame. It features a classic game of Blackjack where a player can hit, stand, double down, and split their cards against a dealer.

Features

  • Graphical User Interface: Fully implemented in Pygame with interactive buttons for player decisions.
  • Gameplay Options: Players can choose to hit, stand, double down, or split according to classic Blackjack rules.
  • Betting System: Players start with a set amount of money and can place bets, adjust their bets, and see their balance updated based on game outcomes.

Getting Started

Prerequisites

You need Python and Pygame installed on your system to run this game. Python 3.8 or above is recommended. You can download Python from python.org and Pygame via pip:

pip install pygame

Running the game

python main.py

How to Play

Start the Game: Run the script as mentioned above. The game will start with the player having a default balance. Place Your Bet: Click the 'Increase Bet' button to adjust your bet before starting the hand. Game Options: Use the 'Hit', 'Stand', 'Double Down', and 'Split' buttons to make decisions during the game. Winning and Losing: The game follows standard Blackjack rules. The player's balance is updated based on the result of each hand.

Built With

Python - The programming language used. Pygame - The library used for creating the graphical interface. Authors Steven Chang

Future Improvment

Currently this project does not support "Split" in Blackjack , It makes sense to implement it so that player can actually have an edge against the House

Game Images

https://prnt.sc/xR-SyvNTyTC1

About

This is an blackjack game made with Pygame !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages