X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=UCI2WB.c;h=534d988111f5ffc3d05f0a51b93d3f7701494059;hb=a7299318dbfbb4ead5ed39d2ea8c586bc79ad182;hp=f805eccdf072dab4f0b2ce01071ff77307ed94b5;hpb=4c69b8cb89088d35b7b5f92428f997bda918306e;p=uci2wb.git diff --git a/UCI2WB.c b/UCI2WB.c index f805ecc..534d988 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -31,7 +31,7 @@ // Set VARIANTS for in WinBoard variant feature. (With -s option this will always be reset to use "shogi".) #define VARIANTS ",normal,xiangqi" -#define STDVARS "chess,chess960,crazyhouse,threecheck,giveaway,atomic,seirawan,shogi,xiangqi" +#define STDVARS "chess,chess960,crazyhouse,3check,giveaway,suicide,losers,atomic,seirawan,shogi,xiangqi" #define EGT ",gaviotatbpath,syzygypath,nalimovpath," #define DPRINT if(debug) printf @@ -393,7 +393,6 @@ Engine2GUI() char *p = varList, *q = varList; while(*q && *q != '\n') if(!strncmp(q, " var ", 5)) *p++ = ',', q +=5; // replace var keywords by commas else if(!strncmp(q-1, " chess ", 7)) strcpy(p, "normal"), p += 6, q += 5; // 'chess' is called 'normal' in CECP - else if(!strncmp(q-1, " threecheck", 11)) *p++ = '3', q += 5; // 'threecheck' is written '3check' in CECP else *p++ = *q++; // copy other variant names unmodified if(frc) sprintf(p, ",normal,fischerandom"), printf("feature oocastle=%d\n", frc<0); // unannounced FRC uses O-O castling if(*varList) printf("feature variants=\"%s\"\n", varList+1); // from UCI_Variant combo and/or UCI_Chess960 check options @@ -557,7 +556,7 @@ GUI2Engine() } else if(!strcmp(command, "variant")) { if(varOpt) { - EPRINT((f, "# setoption name UCI_Variant value %sucinewgame\nisready\n", strcmp(line+8, "3check\n") ? line+8 : "threecheck\n")) + EPRINT((f, "# setoption name UCI_Variant value %sucinewgame\nisready\n", line+8)) fflush(toE); Sync(PAUSE); } if(!strcmp(line+8, "shogi\n")) size = 9, strcpy(iniPos, "position startpos");