https://github.com/arsalan-dev-engineer/bede-simplified-slot-machine-python
A simplified slot machine game using Python.
https://github.com/arsalan-dev-engineer/bede-simplified-slot-machine-python
challenge coding-challenge education educational fun game prettytable project projects python python3 random slot slot-machine
Last synced: about 1 year ago
JSON representation
A simplified slot machine game using Python.
- Host: GitHub
- URL: https://github.com/arsalan-dev-engineer/bede-simplified-slot-machine-python
- Owner: arsalan-dev-engineer
- Created: 2022-11-08T06:32:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T07:28:09.000Z (over 3 years ago)
- Last Synced: 2024-08-20T11:23:52.929Z (almost 2 years ago)
- Topics: challenge, coding-challenge, education, educational, fun, game, prettytable, project, projects, python, python3, random, slot, slot-machine
- Language: Python
- Homepage:
- Size: 109 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bede Slot Machine Game
### What is it?
This is a simple slot machine game :trophy:
### The rules:
* At the start of the game the player should enter the deposit amount (e.g. the initial money
balance).
* After that, for each spin, the player is asked how much money he wants to stake.
* A table with the results of each spin is displayed to the player.
* The win amount should be displayed together with the total balance at the current stage.
After the first spin the total balance will be equal to:
({deposit amount} - {stake amount}) + {win amount}.
* Game ends when the player balance hits 0
| Symbol | Coefficient | Probability to appear on a cell |
| :--- | :---: | ---: |
| Apple (A) | 0.4 | 45% |
| Banana (B) | 0.6 | 35% |
| Pineapple (P) | 0.8 | 15% |
| Wildcard (*) | 0 | 5% |
* The symbols are placed randomly respecting the probability of each item. For example: there
is 5% chance that a Wildcard will be placed in a cell and there is 45% chance for an Apple.
* The player will win only if one or more horizontal lines contain 3 matching symbols. Wildcard
(*) is a symbol that matches any other symbol (A, B or P).
* The won amount should be the sum of the coefficients of the symbols on the winning line(s),
multiplied by the stake amount
## Flowchart of the game
