UnmakeMove(opponent, &xnode, &tempb, &tempc, &tempsf, &tempst);
/* Illegal move in check */
#if !defined QUIETBOOKGEN
- puts("Illegal move (in check) %s");
+ puts("Illegal move (in check): %s");
bkdisplay(s, cnt, moveno);
#endif
return false;
/* Illegal move */
#if !defined QUIETBOOKGEN
- printf("Illegal move (no match) %s\n", s);
+ printf("Illegal move (no match): %s\n", s);
bkdisplay(s, cnt, moveno);
#endif
return false;
static char *InPtr;
struct display *dsp = &raw_display;
+short xboard = false;
#if defined(BOOKTEST)
if (SqAttacked(PieceList[opponent][0], computer, &blocked))
{
UnmakeMove(opponent, &xnode, &tempb, &tempc, &tempsf, &tempst);
- dsp->AlwaysShowMessage("Illegal move (in check) %s", s);
+ dsp->AlwaysShowMessage("Illegal move (in check): %s", s);
return false;
}
else
}
}
- dsp->AlwaysShowMessage("Illegal move (no match) %s", s);
+ dsp->AlwaysShowMessage("Illegal move (no match): %s", s);
if (!XSHOGI && (cnt > 1))
{
extern short hard_time_limit; /* If you exceed time limit, you lose. */
extern short nolist; /* Don't list game after exit. */
+extern short xboard; /* Use XBoard instead of xShogi protocol */
/*
Raw_ShowPatternCount(short side, short n)
{
if (flag.post)
- printf("%s matches %d pattern(s)\n", ColorStr[side], n);
+ printf("%s%s matches %d pattern(s)\n", xboard ? "# " : "" , ColorStr[side], n);
}
printf("%s mates!\n", ColorStr[computer]);
#ifdef VERYBUGGY
else if (!XSHOGI && (root->score < -SCORE_LIMIT))
- printf("%s has a forced mate in %d moves!\n",
+ printf("%s%s has a forced mate in %d moves!\n", xboard ? "# " : "",
ColorStr[opponent], SCORE_LIMIT + 999 + root->score - 1);
else if (!XSHOGI && (root->score > SCORE_LIMIT))
- printf("%s has a forced mate in %d moves!\n",
+ printf("%s%s has a forced mate in %d moves!\n", xboard ? "# " : "",
ColorStr[computer], SCORE_LIMIT + 998 - root->score - 1);
#endif /* VERYBUGGY */
}