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:
parent
c769d4df84
commit
d64ffd9621
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue