This is a simple slot machine game developed using Python and Pygame. The game allows players to spin the reels, select the number of lines to bet on, and set their bet amount per line. The objective is to match symbols on the selected lines to win rewards.
- Adjustable number of lines to bet on (1 to 3 lines).
- Customizable bet amount per line ($1 to $1000).
- Simulates a slot machine spin with various symbols.
- Calculates and displays winnings based on matched symbols.
- Python 3.x
- Pygame
- Clone the repository:
git clone https://github.com/yourusername/slot-machine-game.git
cd slot-machine-game
- Install Pygame:
pip install pygame
- Run the game:
python slot_machine_game.py
- Controls:
SPACE
: Spin the reels.RETURN
: Set the number of lines to bet on.BACKSPACE
: Set the bet amount per line.Q
: Quit the game.
- Start the game by running the
slot_machine_game.py
script. - Set the number of lines to bet on by pressing
RETURN
and entering a value between 1 and 3. - Set the bet amount per line by pressing
BACKSPACE
and entering a value between $1 and $1000. - Press
SPACE
to spin the reels. - The game will display your current balance, the amount won, and the lines you won on.
- Press
Q
to quit the game at any time.
- Ensure that you have Pygame installed before running the game.
- The game interface uses text prompts for input and runs in a Pygame window with basic graphics.
This project is licensed under the MIT License.
- Saksham
- Mahie
- Sanjil
Enjoy the game and good luck!