Skip to content

Commit

Permalink
Fixed evaluation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skotz committed Dec 16, 2016
1 parent 19e4ea3 commit 7fe7469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chase.Engine/Search.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private int EvaluateMaterial(Position position)
}
else if (redPieces > bluePieces)
{
eval += (redPieces * -100) / bluePieces - 100;
eval -= (redPieces * 100) / bluePieces - 100;
}

return eval * Constants.EvalPieceWeight;
Expand Down

0 comments on commit 7fe7469

Please sign in to comment.