txlyre 16 시간 전
부모
커밋
b83b014ba4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      chess0.py

+ 1 - 1
chess0.py

@@ -39,7 +39,7 @@ class ChessSession:
             if move not in self.board.legal_moves:
                 raise IllegalMove(move)
         else:
-            move = await self.engine.play(self.board)
+            move = await self.engine.play(self.board, chess.engine.Limit(nodes=1))
             move = move.move
 
         self.board.push(move)