mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Rewrite TBScore in uci_pv()
Streamline the code and make it understandable. No functional change. Resolves #135
This commit is contained in:
parent
66f5cd3f9d
commit
a43f633c19
1 changed files with 2 additions and 8 deletions
|
@ -1444,14 +1444,8 @@ moves_loop: // When in check and at SpNode search starts from here
|
|||
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";
|
||||
|
|
Loading…
Add table
Reference in a new issue