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