Skip to main content

✅ Advance cycle4 to rest

CategoryAbility
StatusPassing
Testtests/test_turn_sequence.py::test_advance_cycle4_to_rest

advance_phase from second MAIN at cycle=4 → REST phase.

Preconditions

  • phase = Phase.MAIN.

  • current_player = Side.PLAYER_2 (second in order).

  • main_phase_order = [Side.PLAYER_1, Side.PLAYER_2].

  • cycle = 4 (= CYCLES_BEFORE_REST).

Action

  • advance_phase(state)

Expected Postconditions

  • phase = Phase.REST.

  • cycle remains 4 (start_rest_phase resets it, not advance_phase).

Assertions

assert result.phase == Phase.REST