mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Combat: characterization test pinning the auto-resolve event stream
Splits SimulateCombat into a thin wrapper over simulateCombatWithRNG, a deterministic core that accepts an optional *rand.Rand. Production passes nil (package-global rand, behaviorally identical); the new test seeds it per scenario. Adds TestCombatCharacterization: 23 curated scenarios x 5 seeds, with the full event stream + result summary serialized to a stable text form and diffed against a golden file. This locks current auto-resolve behavior before the shared-primitives extraction for the turn-based engine — any perturbation fails loudly and forces a deliberate -update + diff review. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2047
internal/plugin/testdata/combat_characterization.golden
vendored
Normal file
2047
internal/plugin/testdata/combat_characterization.golden
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user