Casino Spin Simulator
Overview
This Python program simulates a casino slot game where multiple players spin a configurable number of slots, each displaying a random digit within a specified range. Based on the spin results, players receive rewards according to predefined conditions. The simulation guarantees exactly one jackpot winner per run.
Features
- Simulate spins for any number of players.
- Customize the number of slots per spin.
- Customize the digit range (e.g., 1 to 9).
- Classify spins into four categories:
- Jackpot: All slots show digit 9 (exactly one winner).
- ₹100 Voucher: All slots show the same digit except 9.
- ₹50 Voucher: All digits are distinct.
- No Reward: Exactly two matching digits.
- Display a summary of reward distribution.
- Save detailed spin results and rewards to a file (
spin_results.txt).
How to Use
- Run the Python script:
python cred.py
On this page
Contributors
Created May 27, 2025
Updated May 27, 2025