Skip to main content

✅ Speed tie token resolves

CategoryAbility
StatusPassing
Testtests/test_turn_sequence.py::test_speed_tie_token_resolves

Both players contract Normal-speed demons (tie). P1 holds the time token.

Preconditions

  • contracted_demons: both Normal speed → tie.

  • P1 has_time_token = True.

  • P2 has_time_token = False.

Action

  • resolve_speed_tie(state, rng)

Expected Postconditions

  • _contract_faster_side = Side.PLAYER_1 (token holder is faster).

  • P1 has_time_token = False (winner loses the token).

  • P2 has_time_token = True (loser gets the token).

Assertions

assert result._contract_faster_side == Side.PLAYER_1
assert result.players[Side.PLAYER_1].has_time_token is False
assert result.players[Side.PLAYER_2].has_time_token is True