Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
MJZ1977 committed Nov 5, 2018
1 parent bf556ac commit d60bd18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate.cpp
Expand Up @@ -386,7 +386,7 @@ namespace {
if ((kf < FILE_E) == (file_of(s) < kf))
{
int factor = (4 + !pos.can_castle(Us) * (3 + 4 * (rank_of(pos.square<KING>(Us)) == rank_of(s))));
score -= (TrappedRook - make_score(mob * 22, 0)) / 4 * factor;
score -= (TrappedRook - make_score(mob * 22, 0)) * factor / 4;
}
}
}
Expand Down

0 comments on commit d60bd18

Please sign in to comment.