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:
Tom Vijlbrief
2013-07-13 11:46:59 +02:00
committed by Marco Costalba
parent bf90499fc3
commit 6960f41e03
2 changed files with 2 additions and 5 deletions

View File

@@ -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);