From 0b40c48167086767a86a151c1b3b0050d0c81a13 Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Wed, 28 Aug 2024 16:59:25 -0700 Subject: [PATCH] test make moves as one command --- stockfish/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stockfish/models.py b/stockfish/models.py index 15bbbd4..d566b60 100644 --- a/stockfish/models.py +++ b/stockfish/models.py @@ -359,10 +359,7 @@ def make_moves_from_current_position(self, moves: Optional[List[str]]) -> None: if not moves: return self._prepare_for_new_position(False) - for move in moves: - if not self.is_move_correct(move): - raise ValueError(f"Cannot make move: {move}") - self._put(f"position fen {self.get_fen_position()} moves {move}") + self._put(f"position fen {self.get_fen_position()} moves {' '.join(moves)}") def get_board_visual(self, perspective_white: bool = True) -> str: """Returns a visual representation of the current board position.