From 34d52f62f251600af593794deceb51fa04f0c6da Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 10 Mar 2012 09:52:02 +0000 Subject: [PATCH] CuckooChess: Small bug fix in transposition table replacement logic. --- CuckooChessEngine/src/chess/TranspositionTable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CuckooChessEngine/src/chess/TranspositionTable.java b/CuckooChessEngine/src/chess/TranspositionTable.java index a2f384c..c69bbcc 100644 --- a/CuckooChessEngine/src/chess/TranspositionTable.java +++ b/CuckooChessEngine/src/chess/TranspositionTable.java @@ -166,9 +166,9 @@ public class TranspositionTable { if ((ent.key == key) && (ent.getDepth() > depth) && (ent.type == type)) { if (type == TTEntry.T_EXACT) { doStore = false; - } else if ((type == TTEntry.T_GE) && (sm.score <= ent.score)) { + } else if ((type == TTEntry.T_GE) && (sm.score <= ent.getScore(ply))) { doStore = false; - } else if ((type == TTEntry.T_LE) && (sm.score >= ent.score)) { + } else if ((type == TTEntry.T_LE) && (sm.score >= ent.getScore(ply))) { doStore = false; } }