Fix wrong sign for 200 TB score

Fix another case of 9032c6cbe7

*    TB values can have a distance of 0, mainly when we are in a tb position but haven't found mate.
*    Add a missing whitespace to UCIEngine::on_update_no_moves()

Closes https://github.com/official-stockfish/Stockfish/pull/5172

No functional change
This commit is contained in:
Disservin
2024-04-13 21:54:10 +02:00
committed by Joost VandeVondele
parent 4912f5b0b5
commit c55ae376f6
3 changed files with 8 additions and 7 deletions

View File

@@ -34,8 +34,9 @@ class Score {
int plies;
};
struct TBWin {
int plies;
struct Tablebase {
int plies;
bool win;
};
struct InternalUnits {
@@ -61,7 +62,7 @@ class Score {
}
private:
std::variant<Mate, TBWin, InternalUnits> score;
std::variant<Mate, Tablebase, InternalUnits> score;
};
}