Welcome to the Modern Slot Machine Game! This is a Python-based graphical slot machine simulator built with PyQt5. It offers a sleek, modern interface and realistic slot machine mechanics for an engaging gaming experience.
- Modern, attractive GUI built with PyQt5
- Customizable bet amounts and number of lines
- Realistic slot machine mechanics
- Animated spin feature
- In-game deposit system
- Responsive design with custom-styled buttons
- Python 3.6 or higher
- PyQt5
-
Clone this repository:
git clone https://github.com/Mojeeb2002/Python-Slot-Game.git
-
Install the required dependencies:
pip install PyQt5
-
Run the game:
python main_gui.py
-
Deposit Money: Start by depositing money into your balance using the deposit input field and button.
-
Place Your Bet: Enter your bet amount and the number of lines you want to bet on (1-3).
-
Spin: Click the "Spin" button to play. The slot machine will animate and display the results.
-
Win or Lose: Your winnings (if any) will be displayed, and your balance will be updated accordingly.
-
Keep Playing: Continue playing as long as you have sufficient balance. You can deposit more money at any time.
- Balance Display: Shows your current balance at the top of the window.
- Deposit Section: Allows you to add more money to your balance.
- Betting Section: Input fields for your bet amount and number of lines.
- Spin Button: Starts the game with your current bet.
- Slot Display: Shows the result of each spin with fruit emojis.
- Result Label: Displays the outcome of each spin, including winnings and winning lines.
You can easily customize various aspects of the game:
- Modify the
symbol_count
andsymbol_value
dictionaries to change the symbols and their frequencies/values. - Adjust the
MIN_BET
andMAX_LINES
constants to alter betting limits. - Modify the color scheme by updating the stylesheet in the
SlotMachineGUI
class.
Contributions to improve the game are welcome! Please feel free to submit a Pull Request.
- PyQt5 for providing the GUI framework
- Emoji graphics provided by the Unicode Consortium
Enjoy the game, and may luck be on your side! 🍀