* ----------------------------------------------------------------------
* Copyright (c) 1993, 1994, 1995 Matthias Mutz
* Copyright (c) 1999 Michael Vanier and the Free Software Foundation
+ * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation
*
* GNU SHOGI is based on GNU CHESS
*
#endif
short zwndw;
+short movesLeft, currentMove;
/********************** end of main loop ***************************/
/* background mode */
- if (iop == BACKGROUND_MODE)
+ if (background) /* originally: if (iop == BACKGROUND_MODE) */
return;
if (rpt >= 3)
/* If Time Control get the elapsed time */
if (TCflag)
+ {
ElapsedTime(COMPUTE_AND_INIT_MODE);
-
+ if(xboard) /* In XBoard increment is added after move */
+ TimeControl.clock[side] += TCadd;
+ }
/* update time control info */
dsp->OutputMove();
#endif /* QUIETBACKGROUND */
dsp->ShowCurrentMove(pnt, node->f, node->t);
}
+ movesLeft = TrPnt[2] - pnt; /* to report with XBoard periodic updates */
+ currentMove = node->f << 8 | node->t;
}
if (!(node->flags & exact))