- if ((defendedSquares & SquareBB[blockSq]) != 0)
- {
- // Defending the square in front
- bonusMultiplier += 2;
- if ((unsafeSquares & defendedSquares) == unsafeSquares)
- // Defending all the attacked squares
- // bigger bonus if we are defending everything
- bonusMultiplier += (squaresToQueen == defendedSquares) ? 4 : 2;
- }
+ // Big bonus if the path to queen is fully defended, a bit less
+ // if at least block square is defended.
+ if (defendedSquares == squaresToQueen)
+ k += 6;