Fix checkmate outcome and save games

This commit is contained in:
2026-03-04 11:26:08 +01:00
parent b266fd740a
commit 8fe86350b8
2 changed files with 83 additions and 15 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ class ChessBoard:
def outcome(self) -> Outcome:
if self.is_checkmate():
return Outcome.from_color(self.turn)
return Outcome.from_color(self.turn.opposite)
if self.is_stalemate():
return Outcome.DRAW
if self.is_seventyfive_moves():