txlyre 20 hours ago
parent
commit
21ae65ba6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      chess0.py

+ 2 - 2
chess0.py

@@ -23,9 +23,9 @@ class MyBoard(chess.Board):
 
 
     def _push_capture(self, move, capture_square, piece_type, was_promoted):
     def _push_capture(self, move, capture_square, piece_type, was_promoted):
         if self.turn == chess.WHITE:
         if self.turn == chess.WHITE:
-            self.captured_black.push(piece_type)
+            self.captured_black.append(piece_type)
         else:
         else:
-            self.captured_white.push(piece_type)
+            self.captured_white.append(piece_type)
 
 
 
 
 class ChessSession:
 class ChessSession: