mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Handle BxN trade as good capture when history score is good
STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 19374 W: 3499 L: 3294 D: 12581 http://tests.stockfishchess.org/tests/view/59fc23f50ebc590ccbb8a0bf LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 91030 W: 11680 L: 11274 D: 68076 http://tests.stockfishchess.org/tests/view/59fc43ad0ebc590ccbb8a0d0 Bench: 5482249
This commit is contained in:
parent
4bc11984fc
commit
652199d840
1 changed files with 5 additions and 0 deletions
|
@ -182,6 +182,11 @@ Move MovePicker::next_move(bool skipQuiets) {
|
||||||
if (pos.see_ge(move))
|
if (pos.see_ge(move))
|
||||||
return move;
|
return move;
|
||||||
|
|
||||||
|
if ( type_of(pos.piece_on(to_sq(move))) == KNIGHT
|
||||||
|
&& type_of(pos.moved_piece(move)) == BISHOP
|
||||||
|
&& (cur-1)->value > 1090)
|
||||||
|
return move;
|
||||||
|
|
||||||
// Losing capture, move it to the beginning of the array
|
// Losing capture, move it to the beginning of the array
|
||||||
*endBadCaptures++ = move;
|
*endBadCaptures++ = move;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue