From 4549a1dd5d58661c89ea7a0fd33ae2a3d8e308d8 Mon Sep 17 00:00:00 2001 From: Alexander Lyashuk Date: Sat, 26 Oct 2024 11:36:00 +0200 Subject: [PATCH] Add 'movesleft' parameter to UCI info parsing --- chess/engine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chess/engine.py b/chess/engine.py index 3f1e0e39..b979b278 100644 --- a/chess/engine.py +++ b/chess/engine.py @@ -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