mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +01:00
CuckooChess: Small bug fix in transposition table replacement logic.
This commit is contained in:
parent
d4ddd88aae
commit
34d52f62f2
|
@ -166,9 +166,9 @@ public class TranspositionTable {
|
||||||
if ((ent.key == key) && (ent.getDepth() > depth) && (ent.type == type)) {
|
if ((ent.key == key) && (ent.getDepth() > depth) && (ent.type == type)) {
|
||||||
if (type == TTEntry.T_EXACT) {
|
if (type == TTEntry.T_EXACT) {
|
||||||
doStore = false;
|
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;
|
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;
|
doStore = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user