Skip to main content

✅ Start game deterministic

CategoryAbility
StatusPassing
Testtests/test_turn_sequence.py::test_start_game_deterministic

Same seed produces identical game setup.

Preconditions

  • Two fresh states, both DeterministicRNG(seed=99).

Action

  • start_game on both.
rng_a = DeterministicRNG(seed=99)
rng_b = DeterministicRNG(seed=99)

result_a = start_game(new_game_state(), rng_a)
result_b = start_game(new_game_state(), rng_b)

Expected Postconditions

  • Both states have identical demon_deck, timekeeping_deck, and hand orders.

Assertions

assert result_a.players[side].hand == result_b.players[side].hand
assert result_a.players[side].timekeeping_deck == result_b.players[side].timekeeping_deck
assert result_a.players[side].demon_deck == result_b.players[side].demon_deck