mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Remove openFiles in pawns. (#1917)
A single popcount in evaluate.cpp replaces all openFiles stuff in pawns. It doesn't seem to affect performance at all. STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 28103 W: 6134 L: 6025 D: 15944 http://tests.stockfishchess.org/tests/view/5b7d70a20ebc5902bdbb1999 No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
7accf07c0b
commit
79c97625a4
@@ -717,7 +717,8 @@ namespace {
|
||||
behind |= (Us == WHITE ? behind >> 16 : behind << 16);
|
||||
|
||||
int bonus = popcount(safe) + popcount(behind & safe);
|
||||
int weight = pos.count<ALL_PIECES>(Us) - 2 * pe->open_files();
|
||||
int weight = pos.count<ALL_PIECES>(Us)
|
||||
- 2 * popcount(pe->semiopenFiles[WHITE] & pe->semiopenFiles[BLACK]);
|
||||
|
||||
Score score = make_score(bonus * weight * weight / 16, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user