Skip to content

Commit d64ffd9

Browse files
locutus2mcostalba
authored andcommitted
Simplify good/bad capture detection. bench 5336313
1 parent c769d4d commit d64ffd9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/movepick.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,7 @@ Move MovePicker::next_move(bool skipQuiets) {
179179
move = pick_best(cur++, endMoves);
180180
if (move != ttMove)
181181
{
182-
if (pos.see_ge(move))
183-
return move;
184-
185-
if ( type_of(pos.piece_on(to_sq(move))) == KNIGHT
186-
&& type_of(pos.moved_piece(move)) == BISHOP
187-
&& (cur-1)->value > 1090)
182+
if (pos.see_ge(move, Value(-55 * (cur-1)->value / 1024)))
188183
return move;
189184

190185
// Losing capture, move it to the beginning of the array

0 commit comments

Comments
 (0)