✅ Rest phase deals fewer if deck small
| Category | Ability |
| Status | Passing |
| Test | tests/test_turn_sequence.py::test_rest_phase_deals_fewer_if_deck_small |
Demon deck has fewer than 4 cards — deal what's available.
Preconditions
-
P1 demon_deck has 2 cards.
-
P1 timekeeping_deck = [].
Action
- start_rest_phase(state, rng)
Expected Postconditions
-
P1 timekeeping_deck has 2 cards (all that were available).
-
P1 demon_deck = [].
Assertions
assert len(result.players[Side.PLAYER_1].timekeeping_deck) == 2
assert len(result.players[Side.PLAYER_1].demon_deck) == 0