System requirements
Recommended: Makefile setup
If you have Make and Python 3.12+ installed, run:python3 -m venv env— creates a virtual environment atenv/.pip install --upgrade pip— ensures pip is up to date inside the environment.pip install -r requirements.txt— installs all dependencies (numpy, zstandard, boto3, pytest, xlsxwriter, matplotlib, and others).pip install -e .— installs thestakeenginepackage in editable mode so local source changes take effect immediately.
- macOS / Linux
- Windows
make run GAME=<game_id> activates the virtual environment automatically. Manual activation is only needed when you run Python scripts directly.Manual installation
If you prefer not to use Make, follow these steps.1
Create a virtual environment
env/ in the project root.2
Activate the virtual environment
- macOS / Linux
- Windows
(env) when the environment is active.3
Install dependencies
requirements.txt, including:numpy— array operations for reel and board mathzstandard— compressed.jsonl.zstbook filesboto3/botocore— optional S3 upload supportpytest— test runnerxlsxwriter— PAR sheet generationmatplotlib— analysis chartspython-dotenv— environment variable management
4
Install the package in editable mode
-e flag installs the stakeengine package in editable (development) mode. Changes you make to the source files under src/ are reflected immediately without reinstalling.