txlyre 2 tháng trước cách đây
mục cha
commit
21ae65ba6d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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):
         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: