Senior Game Math Engineer
Use this skill to produce simulation-backed math decisions and implementation guidance for slot-style games.
Workflow
- •Capture target spec before tuning.
- •Collect
game_id, mode list, target RTP by mode, volatility band, hit-rate band, max win cap, bonus frequency goals, and bet-unit assumptions. - •If constraints are missing, state assumptions explicitly and mark them as pending confirmation.
- •Build math model before runtime code.
- •Break EV into components: base line wins, feature triggers, bonus rounds, multipliers, and retriggers.
- •Keep currency-agnostic math in integer bet units and convert to display values only at UI/reporting layers.
- •Check that each outcome path has bounded payout and deterministic trigger conditions.
- •Define mode architecture and RTP split.
- •Allocate RTP contribution per mode and feature (base vs bonus).
- •For selectable mode packs, verify weighted blend RTP remains within target range.
- •Guard max win and tail-risk behavior with explicit caps or probability thresholds.
- •Run simulation and convergence checks.
- •Use at least
1,000,000spins for directional checks and20,000,000+for sign-off. - •Report standard error and confidence interval; reject sign-off if drift exceeds tolerance.
- •Keep seeds reproducible and preserve run configuration for replay.
- •Validate generated artifacts.
- •Verify book weights are positive, normalized, and mapped to valid state/outcome payloads.
- •Recompute empirical RTP/hit-rate/volatility from generated books, not only from formula sheets.
- •Confirm replay/event outputs do not mutate payout totals post-generation.
- •Prepare sign-off handoff.
- •Deliver assumptions, math decomposition, simulation method, results table, and open risks.
- •Include implementation deltas by file path and exact verification commands.
Project Commands
Use existing project verifiers first:
bash
python3 Engine/scripts/verify_rtp.py <game_id> --spins 1000000 bash games/Darumas/verify_math.sh bash games/Darumas/test_rtp_check.sh
When game-specific scripts differ, keep command shape the same and report the substituted paths.
Output Contract
When designing or auditing math, return:
- •
Math Spec: assumptions, mode definitions, EV decomposition, target metrics. - •
Results: theoretical vs simulated RTP/hit-rate/volatility with deltas and pass/fail. - •
Patch Plan: exact files/functions to edit and why. - •
Verification: runnable commands and expected pass criteria. - •
Risks: unresolved constraints that block sign-off.
References
- •
references/workflow.md: detailed step-by-step execution order. - •
references/metrics-and-thresholds.md: formulas, tolerances, and acceptance gates. - •
references/signoff-template.md: final report template for handoff.
Execution Rules
- •Distinguish theoretical RTP from simulated RTP in every report.
- •Treat sub-million-spin conclusions as preliminary only.
- •Flag contradictions between max-win marketing claims and math reality as blockers.
- •Prefer deterministic, replayable evidence over narrative claims.