A classic 3-reel slot machine game built with Python and Tkinter. Featuring sound effects, a GUI, and simple betting logic.
- Graphic Interface: Built with Python's built-in Tkinter library.
- Sound Effects: Included
spin.wavandwin.wavfor an immersive experience (requirespygame). - Dynamic Animation: Symbols spin smoothly before revealing the result.
- Docker Support: Ready to be containerized with the provided Dockerfile.
- Python 3.x
pygamelibrary (for sound effects)
- Clone the repository:
git clone https://github.com/toxicbishop/Slot-Machine.git
- Navigate to the project folder:
cd "Slot-Machine/Slot-machine version 1"
- Install dependencies:
pip install -r requirements.txt
- Run the game:
python Slot_Machine.py
- Start with a balance of ₹100.
- Enter your bet amount (e.g., ₹10).
- Click SPIN! and wait for the symbols to line up.
- Winning combinations:
- 🍒 (Cherry): 2x Bet
- 🍉 (Watermelon): 4x Bet
- 🍋 (Lemon): 6x Bet
- 🔔 (Bell): 8x Bet
- ⭐ (Star): 20x Bet
To run using Docker (requires an X11 server on the host for GUI):
docker build -t slot-machine .
docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix slot-machineDistributed under the MIT License. See LICENSE for more information.