From 88a44e94cd7046d43777e93e96ba59f5c7615b9d Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 15 May 2017 14:25:44 +0200 Subject: [PATCH] Enable Knight PST in Crazyhouse PST to encourage using Knights in attacks are enabled after move 10. Enabling it earlier would make the engine move only Knights in the opening. --- dropper.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dropper.c b/dropper.c index f8c0a96..b21690d 100644 --- a/dropper.c +++ b/dropper.c @@ -1645,6 +1645,7 @@ RootMakeMove(int move) MakeMove(&undoInfo, move); checkHist[moveNr+1] = checker; undoInfo.tpGain = e + undoInfo.newEval; + if(moveNr >= 19 && !perpLoses) PST[WHITE+1] = knightPST, PST[BLACK+1] = knightPST + 11; // store in game history hash table index = (unsigned int)undoInfo.newKey >> 24 ^ stm << 2; // uses high byte of low (= hands-free) key while(repKey[index] && (repKey[index] ^ (int)undoInfo.newKey) & 0x1FFFFF) index += 2; // find empty slot -- 1.7.0.4