This repository contains a Python-based graphical user interface (GUI) for a Minesweeper-inspired betting game. Players can place bets, uncover safe spots, and cash out their profits before hitting a mine.
- Minesweeper-style game mechanics: Uncover safe spots on a grid to increase your multiplier while avoiding mines.
- Dynamic multipliers: Safe clicks increase your multiplier based on the number of mines and the payment table.
- Cash out early: Exit the game at any time to secure your profits.
- Bet options: Bet all or half of your current balance before each round.
- Profit calculation: Earn profits based on your bet and the current multiplier.
- Balance management: Game automatically resets when balance reaches zero.
- Customizable grid size: Default 5x5 grid, scalable to different dimensions.
- Dynamic UI updates: Display balance, bet amount, multiplier, and profit in real time.
- Interactive controls: Intuitive buttons and dropdown menus for gameplay settings.
git clone https://github.com/username/mines-game-gui.git
cd mines-game-guiThis project requires Python 3.x and the tkinter library (bundled with Python).
Run the game directly using:
python mines_game_gui.py- Select Number of Mines: Use the dropdown menu to choose the number of mines on the grid.
- Place Your Bet: Enter your bet amount using the dropdown menu (
Bet AllorBet Half). - Click Grid Cells: Uncover safe spots to increase your multiplier.
- Cash Out: Click the "Cash Out" button to secure your profit before hitting a mine.
The game uses a predefined payment table for calculating multipliers based on the number of mines and safe clicks. The table dynamically adjusts your multiplier as you uncover safe spots.
- Persistent data: Save and load game states for continuous play.
- Leaderboard: Track high scores and player stats.
- Custom difficulty: Allow users to set grid size and mines count.