txlyre 2 ماه پیش
والد
کامیت
21ae65ba6d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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: