Skip to content

Commit f09d9f0

Browse files
Create README.md for slot machine game
1 parent 9f7b053 commit f09d9f0

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Slot-Machine-Game/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Slot Machine Game
2+
3+
This is a simple command-line slot machine game written in Python. The game allows you to bet on multiple lines and spin the slot machine. The game has predefined symbols with corresponding values. If the symbols on a line match, you win money based on the symbol's value and your bet amount.
4+
5+
## How to Play
6+
7+
1. Run the `slot_machine.py` script.
8+
2. You will be prompted to deposit an initial amount of money.
9+
3. Enter the number of lines you want to bet on (between 1 and the maximum allowed lines).
10+
4. Specify the bet amount for each line (between the minimum and maximum allowed bets).
11+
5. The slot machine will be displayed, showing the randomized symbols in a 3x3 grid.
12+
6. If you win, the game will display the amount you won and the line(s) on which you won.
13+
7. The game will then prompt you for another spin until you decide to quit by pressing 'q'.
14+
8. Once you quit the game, it will display the final balance you have left.
15+
16+
## Symbols and Values
17+
18+
The slot machine has four predefined symbols: A, B, C, and D. Each symbol has a specific count and value associated with it, which determines the winnings.
19+
20+
Symbol Count:
21+
- A: 2
22+
- B: 4
23+
- C: 6
24+
- D: 8
25+
26+
Symbol Value:
27+
- A: $5
28+
- B: $4
29+
- C: $3
30+
- D: $2
31+
32+
## Betting Rules
33+
34+
- You can bet on a minimum of 1 line and a maximum of 3 lines.
35+
- The bet amount per line must be between $1 and $100.
36+
37+
## Notes
38+
39+
- This is a simple simulation of a slot machine for entertainment purposes only.
40+
- The game uses Python's `random` module to generate random symbols for each spin.
41+
42+
Have fun playing the slot machine game!

0 commit comments

Comments
 (0)