From: Steinar H. Gunderson Date: Sat, 6 Jan 2018 18:52:55 +0000 (+0100) Subject: Fix UCI syntax error. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=749623f7b8722abab1c9c37da4a7c2d7a33bea1c Fix UCI syntax error. --- diff --git a/remoteglot.pl b/remoteglot.pl index dec440b..0bfbc4c 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -393,7 +393,7 @@ sub handle_position { # and per the UCI spec, we should really have sent "ucinewgame"), # but it's easier, and it works around a Stockfish repetition issue. if ($engine->{'chess960'} != $pos->{'chess960'}) { - uciprint($engine, "setoption UCI_Chess960 " . ($pos->{'chess960'} ? 'true' : 'false')); + uciprint($engine, "setoption name UCI_Chess960 value " . ($pos->{'chess960'} ? 'true' : 'false')); $engine->{'chess960'} = $pos->{'chess960'}; } uciprint($engine, "position fen " . $pos->fen()); @@ -406,7 +406,7 @@ sub handle_position { uciprint($engine2, "stop"); } if ($engine2->{'chess960'} != $pos->{'chess960'}) { - uciprint($engine2, "setoption UCI_Chess960 " . ($pos->{'chess960'} ? 'true' : 'false')); + uciprint($engine2, "setoption name UCI_Chess960 value " . ($pos->{'chess960'} ? 'true' : 'false')); $engine2->{'chess960'} = $pos->{'chess960'}; } uciprint($engine2, "position fen " . $pos->fen());