Add syzygy support

bench: 8080602
This commit is contained in:
Marco Costalba
2015-01-18 08:05:05 +01:00
parent 3c07603dac
commit f53aea45e3
8 changed files with 113 additions and 11 deletions

View File

@@ -220,7 +220,7 @@ string UCI::value(Value v) {
stringstream ss;
if (abs(v) < VALUE_MATE_IN_MAX_PLY)
if (abs(v) < VALUE_MATE - MAX_PLY)
ss << "cp " << v * 100 / PawnValueEg;
else
ss << "mate " << (v > 0 ? VALUE_MATE - v + 1 : -VALUE_MATE - v) / 2;