Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

estebanthi/PyRoulette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyRoulette


PyRoulette is a program you can use to simulate roulette game to calculate probabilities and analyze strategies.

from src.strategies import Martingale
from src.analyzers import PlayerAnalyzer
from src.player import Player
from src.auto_roulette import AutoRoulette
from src.player import OutOfMoneyException


initial_balance = 100

strategy = Martingale(1)
player = Player("Player", strategy, initial_balance)
roulette = AutoRoulette([player])

try:
    roulette.play_n_times(100)
except OutOfMoneyException:
    print("Out of money... Game stopped.")

player_analyzer = PlayerAnalyzer(player)
player_analyzer.plot_analysis(player_analyzer.get_analysis())

Find more on Medium: How to Play Smart Roulette using Python

About

Simulate roulette game in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages