Skip to content

Commit

Permalink
Fix a bug in pawns eval tracing
Browse files Browse the repository at this point in the history
Instead of totals we were showing white and
black values.

Spotted by Sven Schüle

No functional change.
  • Loading branch information
mcostalba committed Mar 26, 2014
1 parent 865b713 commit c7cf452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Expand Up @@ -961,8 +961,8 @@ Value do_evaluate(const Position& pos) {
switch (idx) {
case PST: case IMBALANCE: case PAWN: case TOTAL:
ss << std::setw(20) << name << " | --- --- | --- --- | "
<< std::setw(6) << to_cp(mg_value(wScore)) << " "
<< std::setw(6) << to_cp(eg_value(wScore)) << " \n";
<< std::setw(6) << to_cp(mg_value(wScore - bScore)) << " "
<< std::setw(6) << to_cp(eg_value(wScore - bScore)) << " \n";
break;
default:
ss << std::setw(20) << name << " | " << std::noshowpos
Expand Down

0 comments on commit c7cf452

Please sign in to comment.