Skip to content
Permalink
Browse files

If outpost attacks opponent king keep bonus the same else decrease bo…

…nus by 1/8. Bench: 3743045
  • Loading branch information...
Stefan Geschwentner
Stefan Geschwentner committed May 15, 2019
1 parent 7213fa1 commit 404ee4a0ff7d8a3f8686802d37d5e2074454b77d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
@@ -309,7 +309,7 @@ namespace {
if (bb & s)
score += Outpost * (Pt == KNIGHT ? 4 : 2)
* (attackedBy[Us][PAWN] & s ? 2 : 1)
* (b & attackedBy[Them][KING] ? 5 : 4) / 4;
* (b & attackedBy[Them][KING] ? 8 : 7) / 8;

else if (bb &= b & ~pos.pieces(Us))
score += Outpost * (Pt == KNIGHT ? 2 : 1)

1 comment on commit 404ee4a

@protonspring

This comment has been minimized.

Copy link

commented on 404ee4a May 15, 2019

If this passes. . . I'm curious what your reasoning was for not including a same reduction for "or can reach an outpost square." ?

Please sign in to comment.
You can’t perform that action at this time.