Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It was never updated ! Currently it only affects evaluate_passed_pawns() and in particularly the rule to increase the bonus if we have more non-pawn pieces. We could simply use popcount() instead and avoid the little slowdown in put_piece() and remove_piece(), but this would leave a very subtle and tricky hole where people are forced to remember that pos.count<ALL_PIECES>() does not work. This is not obvious and so dangerous. Thanks to Ronald de Man for spotting this. bench: 7931424
- Loading branch information