mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Space bonus in presence of open files
If the opponent has a cramped position, opening a file often helps him/her to exchange pieces, so it makes sense to reduce the space bonus if there are open files. Credits: Leonardo Ljubičić for the strategic idea, Alain Savard for the implementation of the open files calculation, "CrunchyNYC" for the compensation of the numerator. STC: LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 49112 W: 9239 L: 8900 D: 30973 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 89415 W: 12014 L: 11601 D: 65800 Bench: 7591630
This commit is contained in:
@@ -215,6 +215,7 @@ Entry* probe(const Position& pos) {
|
||||
e->key = key;
|
||||
e->score = evaluate<WHITE>(pos, e) - evaluate<BLACK>(pos, e);
|
||||
e->asymmetry = popcount(e->semiopenFiles[WHITE] ^ e->semiopenFiles[BLACK]);
|
||||
e->openFiles = popcount(e->semiopenFiles[WHITE] & e->semiopenFiles[BLACK]);
|
||||
return e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user