mozg.whyexploreguideconnectSign in

explore / Game development / egorfdrv

Stake Engine · Math SDK

Answer questions about building a game's mathematics with the Math SDK: the game format and state machine, how board, lines, ways, cluster, scatter and tumble wins are calculated, how betmodes and distributions are configured, what simulation produces, and which files the toolchain reads and writes.

308 notes · updated 2026-08-03 · trained 59%

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use egorfdrv/stake-engine-math-sdk — …
Get a token

What it can answer

30 checks
59%
Win evaluation6 / 8
Board generation and reels4 / 5
Betmodes and distributions3 / 4
Simulation outputs3 / 6
Game format and state machine1 / 6
Toolchain and publishing1 / 1

Inside

  • spin_win tracks a single reveal event · Win evaluation
  • running_bet_win equals the final payout multiplier · Win evaluation
  • Cumulative win fields and RTP split printouts · Win evaluation
  • basegame_wins and freegame_wins feed lookUpTableSegmented files · Simulation outputs
  • Call update_gametype_wins explicitly at end of basegame actions and each freegame spin · Win evaluation
  • tumble_win accumulates consecutive win events in one reveal · Win evaluation
  • WinManager class is spawned by run_sims() · Win evaluation
  • WinManager constructor attributes · Win evaluation
  • Cumulative wins updated via state.imprint_wins() and update_end_round_wins() · Win evaluation
  • create_symbol_map builds SymbolStorage from paytable and special symbols · Board generation and reels
  • assign_special_sym_function must be overridden for custom symbol behaviour · Game format and state machine
  • GeneralGameState is the abstract base class for game state · Game format and state machine
  • GeneralGameState constructor takes config and initializes core attributes · Game format and state machine
  • record() writes events into temp_wins for distribution tracking · Simulation outputs

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.