return TYPE_KNIGHTMATE;
if (!strcmp(cat, "capablanca"))
return TYPE_CAPABLANCA;
- if (board && board[0]) {
+ if (board && board[0] && strcmp(board, "0")) {
if (!strcmp(cat, "wild"))
return TYPE_WILD;
if (strcmp(cat, "standard") || strcmp(board, "standard"))
return TYPE_NONSTANDARD;
}
+ return TYPE_WILD;
}
if ((wt == 0) || (bt == 0))
sprintf(endstr, "%s bared",
game_globals.garray[g].winner == WHITE ? blackguy : whiteguy);
break;
+ case END_PERPETUAL:
+ sprintf(endstr, "%s perpetually checking",
+ game_globals.garray[g].winner == WHITE ? blackguy : whiteguy);
+ break;
case END_RESIGN:
sprintf(endstr, "%s resigned",
game_globals.garray[g].winner == WHITE ? blackguy : whiteguy);
case END_FLAG:
case END_ADJWIN:
case END_BARE:
+ case END_PERPETUAL:
return ((game_globals.garray[g].winner == WHITE) ? symbols[0] : symbols[1]);
break;
case END_AGREEDDRAW: