mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Retire Position::in_check()
It is redundant with Position::checkers() No functional change.
This commit is contained in:
@@ -133,7 +133,7 @@ Value Endgame<KXK>::operator()(const Position& pos) const {
|
||||
|
||||
// Stalemate detection with lone king
|
||||
if ( pos.side_to_move() == weakerSide
|
||||
&& !pos.in_check()
|
||||
&& !pos.checkers()
|
||||
&& !MoveList<LEGAL>(pos).size()) {
|
||||
return VALUE_DRAW;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user