Documentation Index
Fetch the complete documentation index at: https://mintlify.com/StakeEngine/math-sdk/llms.txt
Use this file to discover all available pages before exploring further.
System requirements
| Requirement | Version | Notes |
|---|---|---|
| Python | >= 3.12 | Must be on your PATH as python3 |
| pip | any recent | Included with Python 3.12+ |
| Make | any | Recommended; simplifies setup and running games |
| Rust / Cargo | stable | Only required for the optimization algorithm |
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.Create a virtual environment
env/ in the project root.Activate the virtual environment
- macOS / Linux
- Windows
(env) when the environment is active.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
