// Forces the player to play move as its next move public void MakeBookMove(List <Movement> move) { TimeControl.StartTimer(); MakeMove(move); TimeControl.Update(); Evaluation.IsBookEval = true; MoveMade(this, move); }
private void startClock() { if (State != PlayerState.Thinking) { return; } Evaluation.Clear(); if (TimeControl.IsValid) { StartedThinking(TimeControl.TimeLeft); } TimeControl.StartTimer(); if (!TimeControl.Infinite) { long t = TimeControl.TimeLeft + TimeControl.ExpiryMargin; timer.Interval = (int)((t >= 0 ? t : 0) + 200); /* Warning - unsafe cast */ timer.Start(); } }