This is a desktop gambling games application built using Python and Tkinter, featuring multiple casino-style games. The application provides an interactive platform for users to play Blackjack, Dice Roll, and Limbo games with a virtual balance.
- Classic Blackjack gameplay
- Split hand functionality
- Double down option
- Realistic card graphics
- Balance tracking and betting system
- Over/Under betting mechanism
- Customizable target number
- Dynamic win probability calculation
- Real-time balance updates
- Multiplier-based betting
- Probability-driven gameplay
- Adjustable risk levels
- Win/loss tracking
The application includes several features to promote responsible gambling:
- Balance warning system
- Warnings when significant portions of initial balance are lost
- Help resources for gambling addiction
- Option to reset balance
- Psychological warning messages
- Python 3.7+
- Tkinter (usually comes pre-installed with Python)
- Pillow (PIL) library
- Random module
- Clone the repository:
git clone https://github.com/yourusername/gambling-games.git
cd gambling-games
- Install required dependencies:
pip install pillow
- Ensure you have the required card and chip image files in the correct directory:
- Card images should be in
C:\Users\arjun\cards\
- Naming convention:
{rank}_of_{suit}.png
(e.g.,ace_of_hearts.png
) - Include a
back.png
for card back - Chip images named as
{value}.png
(e.g.,10.png
,50.png
)
- Card images should be in
- Choose between Blackjack, Dice Roll, and Limbo games
- Themed background image
- Consistent color scheme
- Intuitive controls
- Real-time balance tracking
- Interactive betting mechanisms
- Standard Blackjack rules
- Hit, Stand, Double Down, Split options
- Dealer AI following standard casino rules
- Choose to bet "Under" or "Over" a target number
- Dynamic win calculation based on probability
- Set a multiplier and bet amount
- Win if random result meets probability conditions
The application includes built-in warnings:
- Alerts when balance drops to certain thresholds
- Psychological intervention messages
- Links to gambling addiction resources
You can easily modify:
- Initial balance
- Betting limits
- Game-specific parameters
This is a simulation game. Real gambling can be addictive and harmful. Always gamble responsibly.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request