Skip to content

Commit

Permalink
tweek.
Browse files Browse the repository at this point in the history
bench 3277485
  • Loading branch information
Vizvezdenec committed Dec 7, 2018
1 parent d81ee01 commit 1200891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ namespace {
{
mobilityDiff = mg_value(mobility[Them] - mobility[Us]);
int pieceGoodness = pos.count<ALL_PIECES>(Us) - pos.count<PAWN>(Us) - 1 - badPieces[Us] - badPieces[Us];
mobilityDiff *= (5 - std::min(0, pieceGoodness));
mobilityDiff /= 5;
mobilityDiff *= (10 - std::min(0, pieceGoodness));
mobilityDiff /= 10;
}
else
mobilityDiff = mg_value(mobility[Them] - mobility[Us]);
Expand Down

0 comments on commit 1200891

Please sign in to comment.