CuckooChess: Small bug fix in transposition table replacement logic.

This commit is contained in:
Peter Osterlund 2012-03-10 09:52:02 +00:00
parent d4ddd88aae
commit 34d52f62f2

View File

@ -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;
}
}