An open API service indexing awesome lists of open source software.

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.

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

![:trophy:](https://github.com/Azzy001/Bede-Simplified-Slot-Machine-Python/blob/master/Bede-Machine/Bede-Gaming-Flowchart.drawio.png)