mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Simplify good/bad capture detection. bench 5336313
This commit is contained in:
committed by
Marco Costalba
parent
c769d4df84
commit
d64ffd9621
@@ -179,12 +179,7 @@ Move MovePicker::next_move(bool skipQuiets) {
|
|||||||
move = pick_best(cur++, endMoves);
|
move = pick_best(cur++, endMoves);
|
||||||
if (move != ttMove)
|
if (move != ttMove)
|
||||||
{
|
{
|
||||||
if (pos.see_ge(move))
|
if (pos.see_ge(move, Value(-55 * (cur-1)->value / 1024)))
|
||||||
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;
|
return move;
|
||||||
|
|
||||||
// Losing capture, move it to the beginning of the array
|
// Losing capture, move it to the beginning of the array
|
||||||
|
|||||||
Reference in New Issue
Block a user