Skip to main content

✅ Random game multiple seeds

CategoryAbility
StatusPassing
Testtests/test_response_windows.py::TestRandomGameWithWindows::test_random_game_multiple_seeds

Multiple random games with different seeds all complete.

Preconditions

No preconditions specified in docstring.

Action

See code below.

from engine.game_loop import run_random_game

for seed in [1, 7, 13, 42, 99, 123, 256, 500]:
state = run_random_game(seed=seed, max_cycles=15)

Expected Postconditions

  • See assertions below.

Assertions

assert state is not None, f"Game with seed={seed} returned None"