From: H.G.Muller Date: Sat, 5 Nov 2016 12:54:10 +0000 (+0100) Subject: Do not transform FEN when UCI_Variant option is supported X-Git-Tag: v2.3~12 X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=commitdiff_plain;h=be5b48e447abc318aa999ad07198ba2da3fff41f;hp=13c87da45a5c5eec90187fa5d32e9256058d484d Do not transform FEN when UCI_Variant option is supported For USI FENs have to be translated to SFEN by putting the holdings after the side-to-move indicator. This was done for any FEN that specified holdings (probably to accomodate the Seirawan Chess version of Komodo). But in Crazyhouse for Stockfish this wrecks things. The announcement of a UCI_Variant option now suppresses this transformation. --- diff --git a/UCI2WB.c b/UCI2WB.c index 21f5fa0..37f9de6 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -469,7 +469,7 @@ GUI2Engine() } else if(!strcmp(command, "setboard")) { stm = (strstr(line+9, " b ") ? BLACK : WHITE); - if(p = strchr(line+9, '[')) { char c; + if((p = strchr(line+9, '[')) && !varOpt) { char c; *p++ = 0; q = strchr(p, ']'); *q = 0; r = q + 4; if(sc == 's') q[2] = 'w' + 'b' - q[2], strcpy(r=q+3, " 1\n"); // Shogi: reverse color else r = strchr(strchr(q+4, ' ') + 1, ' '); // skip to second space (after e.p. square)