Skip to content

Commit

Permalink
tweak.
Browse files Browse the repository at this point in the history
bench 4376102
  • Loading branch information
Vizvezdenec committed Oct 11, 2018
1 parent c99618e commit a240591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evaluate.cpp
Expand Up @@ -458,7 +458,8 @@ namespace {

// Enemy bishops checks
bool noOppBish = pos.count<BISHOP>(Us) == 0
|| (pos.count<BISHOP>(Us) == 1 && pos.opposite_bishops());
|| pos.opposite_bishops()
|| (pos.count<BISHOP>(Us) == 1 && opposite_colors(ksq, pos.square<BISHOP>(Us)));
if (b2 & safe)
kingDanger += BishopSafeCheck * (1 + noOppBish);
else
Expand Down

0 comments on commit a240591

Please sign in to comment.