Extend bench to static evaluations

this patch extends bench to print static evaluations.

./stockfish bench 16 1 1 filename eval

will now print the evaluations for all fens in the file.

This complements the various 'go' flavors for bench and might be useful for debugging and/or tuning.

No functional change.
This commit is contained in:
Joost VandeVondele
2019-11-27 19:03:23 +01:00
committed by Stéphane Nicolet
parent df340a839c
commit 54253bcce6
3 changed files with 14 additions and 6 deletions

View File

@@ -847,6 +847,9 @@ Value Eval::evaluate(const Position& pos) {
std::string Eval::trace(const Position& pos) {
if (pos.checkers())
return "Total evaluation: none (in check)";
std::memset(scores, 0, sizeof(scores));
pos.this_thread()->contempt = SCORE_ZERO; // Reset any dynamic contempt