mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Update comments related after new see_ge()
Update comments according to changes from my patch: #822 No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
61c727fdcb
commit
0fa80c9ba3
@@ -52,7 +52,7 @@ namespace {
|
|||||||
|
|
||||||
const string PieceToChar(" PNBRQK pnbrqk");
|
const string PieceToChar(" PNBRQK pnbrqk");
|
||||||
|
|
||||||
// min_attacker() is a helper function used by see() to locate the least
|
// min_attacker() is a helper function used by see_ge() to locate the least
|
||||||
// valuable attacker for the side to move, remove the attacker we just found
|
// valuable attacker for the side to move, remove the attacker we just found
|
||||||
// from the bitboards and scan for new X-ray attacks behind it.
|
// from the bitboards and scan for new X-ray attacks behind it.
|
||||||
|
|
||||||
|
|||||||
@@ -984,8 +984,7 @@ moves_loop: // When in check search starts from here
|
|||||||
|
|
||||||
// Decrease reduction for moves that escape a capture. Filter out
|
// Decrease reduction for moves that escape a capture. Filter out
|
||||||
// castling moves, because they are coded as "king captures rook" and
|
// castling moves, because they are coded as "king captures rook" and
|
||||||
// hence break make_move(). Also use see() instead of see_sign(),
|
// hence break make_move().
|
||||||
// because the destination square is empty.
|
|
||||||
else if ( type_of(move) == NORMAL
|
else if ( type_of(move) == NORMAL
|
||||||
&& type_of(pos.piece_on(to_sq(move))) != PAWN
|
&& type_of(pos.piece_on(to_sq(move))) != PAWN
|
||||||
&& !pos.see_ge(make_move(to_sq(move), from_sq(move)), VALUE_ZERO))
|
&& !pos.see_ge(make_move(to_sq(move), from_sq(move)), VALUE_ZERO))
|
||||||
|
|||||||
Reference in New Issue
Block a user