CECP specs have it that after 'new' the variant should revert to 'normal'
Chess, and only after the 'variant' command switch to the selected variant.
But not all engines support Chess, and when they explicitly state they
do not (by omitting it from the UCI_Variant choices), it would be pretty
silly to sent it to them. A 'variant' command must follow 'new' in that
case anyway.
if(memory != oldMem && hasHash) EPRINT((f, "# setoption %s%s %s%d\n", nameWord, hashOpt, valueWord, memory))\r
oldMem = memory;\r
// we can set other options here\r
- if(varOpt) EPRINT((f, "# setoption name UCI_Variant value chess\n"))\r
+ if(varOpt && strstr(varList, ",normal")) EPRINT((f, "# setoption name UCI_Variant value chess\n"))\r
EPRINT((f, "# isready\n")) fflush(toE);\r
HandleEngineOutput(); // wait for readyok\r
if(sc == 'x') { if(newGame) EPRINT((f, "# setoption newgame\n")) } else // optional in UCCI\r