1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Improve ordering of good captures using rank term

Rank based term improved approximation of pos.see() for scoring good
captures.

STC
LLR: 2.95 (-2.94,2.94) [-1.50,4.50]
Total: 4632 W: 945 L: 827 D: 2860

LTC
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 25770 W: 4184 L: 3964 D: 17622

Bench: 7593704

Resolves #342
This commit is contained in:
Stefano80 2015-05-03 10:18:38 -07:00 committed by Gary Linscott
parent cc54a91ca5
commit 59f64fda4f

View file

@ -147,8 +147,9 @@ void MovePicker::score<CAPTURES>() {
// badCaptures[] array, but instead of doing it now we delay until the move // badCaptures[] array, but instead of doing it now we delay until the move
// has been picked up in pick_move_from_list(). This way we save some SEE // has been picked up in pick_move_from_list(). This way we save some SEE
// calls in case we get a cutoff. // calls in case we get a cutoff.
for (auto& m : *this) for (auto& m : *this){
m.value = Value(int(pos.piece_on(to_sq(m)))); m.value = PieceValue[MG][pos.piece_on(to_sq(m))] - 200*relative_rank(pos.side_to_move(), to_sq(m));
}
} }
template<> template<>