mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Retire enoughMaterial + lower trapped rook threshold
Here speed up is the name of the game. Speed up is gained: - Removing the useless enoughMaterial code - Limiting trapped rook evaluation to where it counts Tested at long TC: LLR: 2.97 (-2.94,2.94) Total: 10061 W: 1948 L: 1790 D: 6323 bench: 4558173
This commit is contained in:
committed by
Marco Costalba
parent
bf90499fc3
commit
6960f41e03
@@ -554,7 +554,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
if (ei.pi->semiopen(Us, file_of(s)))
|
||||
score += ei.pi->semiopen(Them, file_of(s)) ? RookOpenFile : RookSemiopenFile;
|
||||
|
||||
if (mob > 6 || ei.pi->semiopen(Us, file_of(s)))
|
||||
if (mob > 3 || ei.pi->semiopen(Us, file_of(s)))
|
||||
continue;
|
||||
|
||||
Square ksq = pos.king_square(Us);
|
||||
|
||||
Reference in New Issue
Block a user