{"id":38133500,"url":"https://github.com/dhupee/roulette-simulation","last_synced_at":"2026-01-16T22:39:40.974Z","repository":{"id":165965570,"uuid":"574998489","full_name":"dhupee/roulette-simulation","owner":"dhupee","description":"a simple cli for roullete simulation","archived":false,"fork":false,"pushed_at":"2024-01-24T01:49:51.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T04:26:26.220Z","etag":null,"topics":["cli","gambling","monte-carlo-simulation","python","roullete","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhupee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-06T14:31:32.000Z","updated_at":"2022-12-15T03:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"2754b06b-e7ef-4094-88b9-bd7e33fead6b","html_url":"https://github.com/dhupee/roulette-simulation","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"939711ddb2bbf2f495baf7071d934c7d4fb40e7e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dhupee/roulette-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhupee%2Froulette-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhupee%2Froulette-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhupee%2Froulette-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhupee%2Froulette-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhupee","download_url":"https://codeload.github.com/dhupee/roulette-simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhupee%2Froulette-simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28485525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gambling","monte-carlo-simulation","python","roullete","simulation"],"created_at":"2026-01-16T22:39:40.370Z","updated_at":"2026-01-16T22:39:40.966Z","avatar_url":"https://github.com/dhupee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# roulette-simulation\n\nMy simulation of a Roulette Casino's profit, run in Python 3.10\n\n- [roulette-simulation](#roulette-simulation)\n  - [Installing Dependencies](#installing-dependencies)\n  - [Usage](#usage)\n  - [bet-odds-table](#bet-odds-table)\n\n## Installing Dependencies\n\nI use Python 3.10 for this program.\n\n`pip install -r requirements.txt`\n\n## Usage\n\n```sh\nusage: main.py [-h] -sm STARTER_MONEY [-b BET_SIZE] [-r ROUNDS] [-s SESSIONS] [-t {random,safe,dangerous}]\n\nA monte carlo simulation of a roulette\n\noptions:\n  -h, --help            show this help message and exit\n  -sm STARTER_MONEY, --starter_money STARTER_MONEY\n                        the money player will have initially\n  -b BET_SIZE, --bet_size BET_SIZE\n                        The amount of bet player will place\n  -r ROUNDS, --rounds ROUNDS\n                        How many rounds of bettings of each session\n  -s SESSIONS, --sessions SESSIONS\n                        How many sessions the simulation will run\n  -t {random,safe,dangerous}, --tendency {random,safe,dangerous}\n                        Tendency of player of betting choice\n\n```\n## My conclusion\n\nfrom 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.\nbut the logic behind the game itself is more or less correct, if anyone saw the flaws please tell me in the repo.\n\n## bet-odds-table\n\nSource: [Bet Odds Tabel (Wikipedia)]([https://](https://en.wikipedia.org/wiki/Roulette#Bet_odds_table))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhupee%2Froulette-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhupee%2Froulette-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhupee%2Froulette-simulation/lists"}