Skip to content

Commit

Permalink
test make moves as one command
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Aug 28, 2024
1 parent 0551784 commit 0b40c48
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions stockfish/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0b40c48

Please sign in to comment.