summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
66f5cd3)
Streamline the code and make
it understandable.
No functional change.
Resolves #135
Depth d = updated ? depth : depth - ONE_PLY;
Value v = updated ? RootMoves[i].score : RootMoves[i].prevScore;
Depth d = updated ? depth : depth - ONE_PLY;
Value v = updated ? RootMoves[i].score : RootMoves[i].prevScore;
- bool tb = RootInTB;
- if (tb)
- {
- if (abs(v) >= VALUE_MATE - MAX_PLY)
- tb = false;
- else
- v = TBScore;
- }
+ bool tb = RootInTB && abs(v) < VALUE_MATE - MAX_PLY;
+ v = tb ? TBScore : v;
if (ss.rdbuf()->in_avail()) // Not at first line
ss << "\n";
if (ss.rdbuf()->in_avail()) // Not at first line
ss << "\n";