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: