Skip to content

Commit

Permalink
Add 'movesleft' parameter to UCI info parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mooskagh committed Oct 26, 2024
1 parent 100b1c8 commit 4549a1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,8 @@ def _parse_uci_info(arg: str, root_board: chess.Board, selector: Info = INFO_ALL
if parameter == "string":
info["string"] = remaining_line
break
elif parameter in ["depth", "seldepth", "nodes", "multipv", "currmovenumber", "hashfull", "nps", "tbhits", "cpuload"]:
elif parameter in ["depth", "seldepth", "nodes", "multipv", "currmovenumber",
"hashfull", "nps", "tbhits", "cpuload", "movesleft"]:
try:
number, remaining_line = _next_token(remaining_line)
info[parameter] = int(number) # type: ignore
Expand Down

0 comments on commit 4549a1d

Please sign in to comment.