1
/* GNU Chess 5.0 - ponder.c - Pondering
2
Copyright (c) 2002 Free Software Foundation, Inc.
4
GNU Chess is based on the two research programs
5
Cobalt by Chua Kong-Sian and Gazebo by Stuart Cracraft.
7
GNU Chess is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2, or (at your option)
12
GNU Chess is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with GNU Chess; see the file COPYING. If not, write to
19
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
Boston, MA 02111-1307, USA.
24
cracraft@ai.mit.edu, cracraft@stanfordalumni.org, cracraft@earthlink.net
34
* Pondering has to check for input_status == INPUT_NONE regularly,
35
* that is what Iterate() is supposed to do when the PONDER flag is
36
* set. Output should only be generated if the xboard flag is
37
* set. (Otherwise stdout gets messed up.)
41
/* Save flags and clear the time control bit for pondering */
42
const unsigned int saved_flags = flags;
44
/* Save number of moves out of book */
45
const int nmfb = nmovesfrombook;
47
CLEAR(flags, TIMECTL);
50
dbg_printf("Pondering, GameCnt = %d\n", GameCnt);
52
dbg_printf("Pondering ended, GameCnt = %d\n", GameCnt);
54
/* Restore flags, will also clear the PONDER flag */
57
nmovesfrombook = nmfb;