Skip to content

About

Learn to play roulette using Reinforcement Learning (RL) with a DQN agent

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

FAIRS Roulette Player

A local workspace for training roulette agents and reviewing their suggestions one spin at a time.

GitHub stars Last commit Release CI License

Python 3.14.7 React 19 Platform: Windows

Training · Inference · Start FAIRS · Configuration · Documentation

Inference session with a checkpoint, an agent suggestion, and seven recorded outcomes

FAIRS imports spin histories from CSV or XLSX, or generates synthetic outcomes for repeatable experiments. Train an agent, keep or resume its checkpoint, then use it with a dataset in an inference session. Each round records the suggestion, observed outcome, bet, and session result.

Research use only. FAIRS suggestions are experimental; roulette outcomes remain uncertain. This is not gambling advice.

Inference

Choose a trained checkpoint and dataset, set an initial capital and bet, then start a session. Review the agent's suggestion, enter or edit the observed outcome, and step through the session history. The page keeps the current capital and results alongside each round.

Training

Upload a CSV or XLSX spin history, or use the synthetic data generator. Review the dataset and configure an agent in the training wizard. The Training page shows run status, progress, metrics, and charts; completed checkpoints can be resumed or opened in Inference.

Training workspace with a synthetic dataset, saved checkpoint, and completed run status

Both screenshots use synthetic outcomes. They show the workflow, not predictive performance.

Start FAIRS

Windows is the supported launcher platform. From the repository root in PowerShell, run:

.\start_on_windows.bat

The batch launcher uses Windows PowerShell 5.1 to prepare local runtimes and dependencies, build the web client when needed, and open the application. Run powershell .\setup_and_maintenance.ps1 to open the setup and maintenance menu. It needs internet access to download missing runtimes or packages. The default address is http://127.0.0.1:8890/. Keep the launcher console open while using FAIRS; press Ctrl+C there to stop it.

Configuration

The launcher creates settings/.env from settings/.env.example when needed. FAIRS stores its database, datasets, checkpoints, and logs under data by default; set FAIRS_DATA_DIR to use another data directory. SQLite is the default database, and PostgreSQL can be configured from the Settings page.

See runtime configuration for environment variables and database setup, and troubleshooting for startup issues.

Development

FAIRS is distributed as source and runs as a local web app. Its backend uses Python and FastAPI; the React and TypeScript client is built with Vite. FastAPI serves the built client and API from the same origin. The interface is designed for desktop browsers; below 800 pixels the header wraps and the multi-column layouts stack so every control stays reachable, but touch-first mobile workflows are not a supported target.

See runtime startup for manual development commands and the project documentation index for architecture, testing, and operations guides.

Contributing

Issues and pull requests are welcome. Please describe the problem and keep changes focused; the testing and quality guide covers project conventions.

License

MIT

About

Learn to play roulette using Reinforcement Learning (RL) with a DQN agent

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages