mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-04-02 18:30:44 +02:00
CuckooChess: Fixed small bug in storing and logging of depth zero evaluation scores.
This commit is contained in:
parent
7cfae75cb2
commit
a1746f75dd
@ -531,7 +531,7 @@ public class Search {
|
|||||||
}
|
}
|
||||||
emptyMove.score = score;
|
emptyMove.score = score;
|
||||||
tt.insert(hKey, emptyMove, type, ply, depth, q0Eval);
|
tt.insert(hKey, emptyMove, type, ply, depth, q0Eval);
|
||||||
if (log != null) log.logNodeEnd(sti.nodeIdx, score, type, evalScore, hKey);
|
if (log != null) log.logNodeEnd(sti.nodeIdx, score, type, q0Eval, hKey);
|
||||||
return score;
|
return score;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -546,8 +546,8 @@ public class Search {
|
|||||||
int score = quiesce(alpha-razorMargin, beta-razorMargin, ply, 0, inCheck);
|
int score = quiesce(alpha-razorMargin, beta-razorMargin, ply, 0, inCheck);
|
||||||
if (score <= alpha-razorMargin) {
|
if (score <= alpha-razorMargin) {
|
||||||
emptyMove.score = score;
|
emptyMove.score = score;
|
||||||
tt.insert(hKey, emptyMove, TTEntry.T_LE, ply, depth, evalScore);
|
tt.insert(hKey, emptyMove, TTEntry.T_LE, ply, depth, q0Eval);
|
||||||
if (log != null) log.logNodeEnd(sti.nodeIdx, score, TTEntry.T_LE, evalScore, hKey);
|
if (log != null) log.logNodeEnd(sti.nodeIdx, score, TTEntry.T_LE, q0Eval, hKey);
|
||||||
return score;
|
return score;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user