X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=0bfbc4c89dba35c5d7d1986691e0c6ca03df73f0;hp=dec440bafd4137ade2da8cedd6dd4f1c3706e1f6;hb=749623f7b8722abab1c9c37da4a7c2d7a33bea1c;hpb=3ba7d7aa2f94b7be3cc1d4b6b19f11cb390ae77f 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());