Skip to main content

Module simulation

Module simulation 

Source
Expand description

Game Simulation Testing Framework

This module implements the Monte Carlo simulation testing framework as specified in docs/qa/game-replay-testing.md.

§Tiered Testing Strategy

  • Tier 1 (Smoke): 1 seed, deterministic, < 10 seconds
  • Tier 2 (Regression): 50 seeds, 95% confidence, < 5 minutes
  • Tier 3 (Full): 1000 seeds, 99% confidence, < 30 minutes

Structs§

FailureReplay
Failure replay artifact for deterministic reproduction
FuzzGenerator
Hostile input generator for boundary testing (fuzzing)
GameStateSnapshot
Game state snapshot for failure replay
MonteCarloConfig
Monte Carlo test configuration
TimestampedInput
Input event for replay

Enums§

InvariantViolation
Invariant violation types
TestResult
Test result for Monte Carlo harness
TestTier
Test tier for Monte Carlo simulation

Functions§

check_invariants
Check game state invariants