Slot Math Specification — Template

Цей документ визначає математичний контракт гри. Автоматично згенерований PAR sheet є доказовим артефактом, але не замінює правил, targets, tuning history та approval gates у цьому Math Spec.

1. Identity and provenance

FieldValue
Game name<name>
Game ID / slug<stable-id>
GDD[GDD](path-or-url)
GDD version<version>
Math version ID<id>
Math version<semver/revision>
Lifecycle statedraft / integration / tuning / frozen / certification / certified / retired
Config schema version<version>
Config hash<canonical sha256>
Reference-model version<git SHA/build>
RNG algorithm/version<identifier>
Owner<math owner>
Created<YYYY-MM-DD>
Updated<YYYY-MM-DD>

Change log

VersionDateAuthorReasonChanged leversEvidence
<v><date><name><reason><reels/paytable/etc.><report links>

2. Math status

GateStatusEvidenceApproved by
Config validationpending/pass/fail<artifact><name>
Exact math
Simulation
Max-win validation
Reference/runtime parity
Math review
Compliance review

3. Bet and payout units

PropertyDefinition
Total bet<definition>
Line bet<definition or N/A>
Math payout unit<x total bet / x line bet / credits>
Money representation<minor units at wallet boundary>
Multiplier representation<representation and precision>
Rounding rule<where, direction, precision>
Win cap<x total bet and application point>

Include conversion equations:

<win multiplier → credit win → monetary win>

4. Target math profile

MetricTargetDraft toleranceFreeze toleranceCurrentMethodStatus
Total RTP<value><±><±><value>exact/simpass/fail
Base RTP
Feature RTP
Hit frequency
Profitable hit frequency
Standard deviation
Volatility tier
Feature trigger frequency
Average feature payout
Median feature payout
Max win
Max-win probability

Definitions:

[ RTP = E[X] = \sum_i p_i x_i ]

[ Var(X) = \sum_i p_i(x_i - RTP)^2, \qquad \sigma = \sqrt{Var(X)} ]

5. RTP decomposition

ComponentRTP contributionCalculation methodEvidence
Base evaluator<value>exact/sim/closed form<artifact>
Scatter pays
Free spins
Hold and spin
Other feature
Progressive contribution
Total<sum>

The decomposition must reconcile to total RTP within <numerical tolerance>.

6. Mathematical model

PropertyDefinition
Grid<reels × rows>
Layoutlines / ways / tumble / cluster / mixed
Reel model<ordered weighted entries / physical stops / outcome book>
Stop selection<probability definition>
Evaluators<ordered list>
Aggregation<sum / highest-only / other>

State-space size

[ N = \prod_{r=1}^{R} L_r ]

ReelEntry countTotal weightReachable visible columns
1<n><w><n>

Explain whether entry weights represent repeated probability mass and how visible rows are derived from a selected entry.

7. Symbols and paytable

Symbol IDType2345Special rule
<id><type><pay/N/A><rule>

Scatter payouts

SymbolCountPayoutTrigger effectCan combine with other wins
<id><n><x><effect><yes/no>

Paylines

LineReel 1Reel 2Reel 3Reel 4Reel 5
1<row><row><row><row><row>

For ways/cluster games, replace this table with the exact adjacency, minimum-count, direction and aggregation rules.

8. Reel strips / weights

Canonical machine-readable reels remain in the versioned configuration. This section may embed them or link to the exact artifact and hash.

ReelArtifactHashBase/feature use
1<path/link><sha256><base/feature>

Symbol counts and expected visibility

SymbolR1R2R3R4R5Expected visible cells/spin
<id>

9. Evaluation order

This must match the GDD and production evaluator.

StepOperationMathematical effectCap/rounding effect
1<operation><effect><effect>
<Normative payout pseudocode>

10. Feature model

Copy per feature.

Feature: <name/type>

ParameterValue
Trigger condition<condition>
Trigger probability<exact/simulated>
Award<spins/respins/state>
Reel set<artifact/hash>
Multiplier<rule>
Retrigger<probability/rule/cap>
Termination<rule>
RTP contribution<value>
Average payout<value>
Median payout<value>
Duration distribution<metrics>

Feature state transitions

FromEvent/conditionToState mutationRNG stream
<state><event><state><mutation><stream/version>

Closed-form derivation where available

For a simple trigger-and-award feature:

[ RTP_{feature} = P(trigger) \times E[feature\ payout] ]

Document the actual derivation, including retrigger limits and caps.

11. RNG and mapping contract

PropertyDefinition/evidence
Algorithm/version<id>
Seed derivation<rule>
Stream derivation<base/feature-specific rule>
Replay contract<inputs required>
Integer mapping<unbiased mapping rule>
Reel-stop mapping<rule>
Cross-platform golden vectors<artifact>
Statistical screening<artifact; not certification>

No secret production seed material belongs in this document.

12. Exact calculation

PropertyResult
Enumerableyes/no/partially
Rejection reason<reason or N/A>
States enumerated<n>
Probability mass<value>
Exact total RTP<value>
Distribution coversfull round / base only
Exact tool/build<git SHA/build>
Artifact<link/hash>

Do not silently replace exact calculation with simulation. Record the boundary explicitly.

13. Monte Carlo specification

PropertyValue
Purposedirectional / tuning / sign-off / non-enumerable feature
Rounds<n>
Master seed / seed set ID<non-secret reproducible ID>
Workers<n>
Deterministic merge<yes/no + method>
Simulator version<git SHA/build>
Config hash<sha256>
Runtime<duration/hardware>

Required sample size for a desired RTP half-width (\varepsilon):

[ n \ge \left(\frac{z\sigma}{\varepsilon}\right)^2 ]

Report:

[ SE = \frac{s}{\sqrt{n}}, \qquad CI = \bar X \pm zSE ]

Simulation results

MetricEstimateSE/CIExact/targetDeltaStatus
RTP
Hit frequency
Standard deviation

14. Win distribution

Win bandProbability1 in NRTP contributionSimulation count
0x
(0,1x)
[1x,5x)
[5x,10x)
[10x,50x)
[50x,100x)
[100x,500x)
[500x,1000x)
[1000x,5000x)
≥5000x

Add game-specific thresholds required for Big/Ultra/Mega presentation and marketing claims.

15. Max-win analysis

PropertyValue/evidence
Declared max win<x>
Reachable base max<x>
Whole-round bound<x>
Reachable whole-round max<x or not proven>
Cap probability<value>
Max-win probability<value or not known>
Derivation<artifact/link>

Clearly distinguish a reachable value from a mathematical upper bound.

16. Test vectors and parity

Vector IDScenarioConfig hashInputExpected resultReferenceRuntimeStatus
<id>no win<hash><artifact><artifact><result><result>pass/fail

Required scenarios:

  • No win
  • Single win
  • Simultaneous wins
  • Wild substitution and exclusions
  • Scatter trigger
  • Multiplier order
  • Feature trigger/retrigger
  • Cascade/respin termination where applicable
  • Max-win cap
  • Interrupted-round replay where applicable

17. Draft Math handoff

ArtifactPath/linkVersion/hashOwner
Math config<...><...><...>
Reel sets
Paytable
Exact report
Simulation report
Test vectors
PAR sheet
Manifest

Open and locked parameters

ParameterStateAllowed range/changeOwner
<parameter>open / locked<constraint><role>

Draft handoff criteria:

  • All payout-affecting rules are defined.
  • Draft metrics meet draft tolerances.
  • Config and evidence are versioned and hashed.
  • Test vectors cover critical paths.
  • Unsupported mechanics are rejected or explicitly excluded.

18. Tuning record

Add one entry per tuning revision. Never overwrite the baseline.

Tuning request <ID>

FieldValue
Problem metric<measured problem>
Baseline version/hash<version/hash>
Target<numeric target>
Allowed levers<list>
Locked constraints<list>
Candidate version/hash<version/hash>
Result<metric delta>
Decisionaccept/reject
Evidence<reports>

19. Lifecycle and freeze

stateDiagram-v2
    [*] --> Draft
    Draft --> Integration: Draft gate
    Integration --> Tuning: Measured change request
    Tuning --> Integration: New candidate
    Integration --> Frozen: Exact/sim/parity gates
    Frozen --> Certification: Immutable package
    Certification --> Certified: External/internal approval
    Certification --> Tuning: Rejected with new revision
    Certified --> Retired

Frozen parameters:

  • reel strips/weights;
  • paytable;
  • feature probabilities;
  • evaluation and multiplier order;
  • RTP split;
  • rounding;
  • RNG algorithm/version and mapping;
  • max win and cap;
  • bet-dependent behavior.

Any mathematical change after freeze requires a new math version and full regression evidence.

20. Certification evidence bundle

EvidenceArtifact/hashStatus
Immutable config and manifest<...><...>
Exact calculation
Simulation evidence
PAR sheet
Max-win validation
RNG evidence
Golden vectors
Runtime parity
Build identity
Player-facing rules comparison

21. Risks and limitations

Risk/limitationImpactMitigationRelease blocker
<risk><impact><action>yes/no

22. Final sign-off

RoleNameDecisionDateEvidence/comment
Math owner<name>approve/reject<date><comment>
Game design
Engineering
QA
Compliance

Final conditions:

  • Total RTP and decomposition reconcile.
  • Exact and simulated results agree within the justified interval where both apply.
  • Max-win claims are proven and consistent with the GDD/help content.
  • Reference/runtime parity passes.
  • Config, reports and build identities are immutable and reproducible.
  • No unresolved release-blocking risk remains.