Skip to content

Commit

Permalink
break if position fen command
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Aug 30, 2024
1 parent be5771f commit b1c0466
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/stockfish/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def send_command(process, command: str):
process.stdin.flush()
lines = []
while True:
if command.startswith("position fen"):
break
line = process.stdout.readline()
lines.append(line)
print(line)
Expand Down

0 comments on commit b1c0466

Please sign in to comment.