https://github.com/dhupee/roulette-simulation
a simple cli for roullete simulation
https://github.com/dhupee/roulette-simulation
cli gambling monte-carlo-simulation python roullete simulation
Last synced: 5 months ago
JSON representation
a simple cli for roullete simulation
- Host: GitHub
- URL: https://github.com/dhupee/roulette-simulation
- Owner: dhupee
- License: mit
- Created: 2022-12-06T14:31:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-24T01:49:51.000Z (over 2 years ago)
- Last Synced: 2024-05-02T04:26:26.220Z (about 2 years ago)
- Topics: cli, gambling, monte-carlo-simulation, python, roullete, simulation
- Language: Python
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# roulette-simulation
My simulation of a Roulette Casino's profit, run in Python 3.10
- [roulette-simulation](#roulette-simulation)
- [Installing Dependencies](#installing-dependencies)
- [Usage](#usage)
- [bet-odds-table](#bet-odds-table)
## Installing Dependencies
I use Python 3.10 for this program.
`pip install -r requirements.txt`
## Usage
```sh
usage: main.py [-h] -sm STARTER_MONEY [-b BET_SIZE] [-r ROUNDS] [-s SESSIONS] [-t {random,safe,dangerous}]
A monte carlo simulation of a roulette
options:
-h, --help show this help message and exit
-sm STARTER_MONEY, --starter_money STARTER_MONEY
the money player will have initially
-b BET_SIZE, --bet_size BET_SIZE
The amount of bet player will place
-r ROUNDS, --rounds ROUNDS
How many rounds of bettings of each session
-s SESSIONS, --sessions SESSIONS
How many sessions the simulation will run
-t {random,safe,dangerous}, --tendency {random,safe,dangerous}
Tendency of player of betting choice
```
## My conclusion
from the simulation itself, the loss is usually more than the win but I have a bad way to count how much they win and how much they lose and I need to repair this in the future.
but the logic behind the game itself is more or less correct, if anyone saw the flaws please tell me in the repo.
## bet-odds-table
Source: [Bet Odds Tabel (Wikipedia)]([https://](https://en.wikipedia.org/wiki/Roulette#Bet_odds_table))