From be5b48e447abc318aa999ad07198ba2da3fff41f Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 5 Nov 2016 13:54:10 +0100 Subject: [PATCH] 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. --- UCI2WB.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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) -- 1.7.0.4