From 99de6ab7fd6d624fbf821de5c2e42c1bbba6d914 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 5 Dec 2012 12:05:59 +0100 Subject: [PATCH] Respond immediately to ponder on/off commands Rather than just setting the flag that causes a ponder search to start after the engine moves, we start the search on receiving the 'hard' command. When a ponder search is in progress, it is stopped on receiving 'easy'. This requires saving a ponder move even with ponder off, (because it might be switched on later), and more strict clearing of the move beyond the last one, toprevent it can be accidentally used as ponder move (e.g. after undo). --- UCI2WB.c | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/UCI2WB.c b/UCI2WB.c index fbd9d74..256150c 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -109,6 +109,15 @@ LoadPos(int moveNr) for(j=0; j