Fix checkmate outcome and save games
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user