Skip to content

Commit

Permalink
Add docstring and spacing to send_command()
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkZH committed Jan 27, 2024
1 parent 8b4d98c commit 9646b95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_bot/buggy_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

assert input() == "uci"


def send_command(command: str) -> None:
"""Send UCI commands to lichess-bot without output buffering."""
print(command, flush=True)


send_command("id name Procrastinator")
send_command("id author MZH")
send_command("uciok")
Expand Down

0 comments on commit 9646b95

Please sign in to comment.