Skip to main content

✅ Check defeat both over lower wins

CategoryAbility
StatusPassing
Testtests/test_scoring.py::test_check_defeat_both_over_lower_wins

Engine behavior test.

Preconditions

  • P1 CP: 16

  • P2 CP: 15

Action

  • check_defeat(state)

Expected Postconditions

  • Returns (True, PLAYER_1, reason)

  • P1 loses (16 CP > 15 CP — P1 is more corrupted)

Assertions

assert game_over is True
assert loser == Side.PLAYER_1