{
player = opponent;
+ if (flag.analyze) {
+ SelectMove(opponent, BACKGROUND_MODE);
+ }
+
#ifdef QUIETBACKGROUND
if (!have_shown_prompt)
{
/* noop */ ;
}
else if ((strcmp(s, "quit") == 0) ||
- (strcmp(s, "exit") == 0))
+ (strcmp(s, "exit") == 0) && !xboard)
{
flag.quit = true;
}
);
printf("debug=1 setboard=0 sigint=0 done=1\n");
}
+ else if (strcmp(s, ".") == 0)
+ { // ignore for now
+ }
+ else if (strcmp(s, "exit") == 0)
+ {
+ flag.analyze = false;
+ flag.force = true;
+ }
+ else if (strcmp(s, "analyze") == 0)
+ {
+ flag.analyze = true;
+ flag.force = true;
+ }
else if ((strcmp(s, "set") == 0) ||
(strcmp(s, "edit") == 0))
{
short bothsides; /* computer plays both sides */
short hash; /* enable/disable transposition table */
short force; /* enter moves */
+ short analyze; /* search during move entry */
short easy; /* disable thinking on opponents time */
short beep; /* enable/disable beep */
short timeout; /* time to make a move */