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

Simplify good/bad capture detection. bench 5336313

This commit is contained in:
Stefan Geschwentner 2017-11-18 16:33:37 +01:00 committed by Marco Costalba
parent c769d4df84
commit d64ffd9621

View file

@ -179,12 +179,7 @@ Move MovePicker::next_move(bool skipQuiets) {
move = pick_best(cur++, endMoves);
if (move != ttMove)
{
if (pos.see_ge(move))
return move;
if ( type_of(pos.piece_on(to_sq(move))) == KNIGHT
&& type_of(pos.moved_piece(move)) == BISHOP
&& (cur-1)->value > 1090)
if (pos.see_ge(move, Value(-55 * (cur-1)->value / 1024)))
return move;
// Losing capture, move it to the beginning of the array