mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Retire Position::in_check()
It is redundant with Position::checkers() No functional change.
This commit is contained in:
@@ -188,7 +188,7 @@ void Search::think() {
|
||||
{
|
||||
RootMoves.push_back(MOVE_NONE);
|
||||
sync_cout << "info depth 0 score "
|
||||
<< score_to_uci(RootPos.in_check() ? -VALUE_MATE : VALUE_DRAW)
|
||||
<< score_to_uci(RootPos.checkers() ? -VALUE_MATE : VALUE_DRAW)
|
||||
<< sync_endl;
|
||||
|
||||
goto finalize;
|
||||
@@ -491,7 +491,7 @@ namespace {
|
||||
// Step 1. Initialize node
|
||||
Thread* thisThread = pos.this_thread();
|
||||
moveCount = playedMoveCount = 0;
|
||||
inCheck = pos.in_check();
|
||||
inCheck = pos.checkers();
|
||||
|
||||
if (SpNode)
|
||||
{
|
||||
@@ -1081,7 +1081,7 @@ split_point_start: // At split points actual search starts from here
|
||||
const bool PvNode = (NT == PV);
|
||||
|
||||
assert(NT == PV || NT == NonPV);
|
||||
assert(InCheck == pos.in_check());
|
||||
assert(InCheck == !!pos.checkers());
|
||||
assert(alpha >= -VALUE_INFINITE && alpha < beta && beta <= VALUE_INFINITE);
|
||||
assert(PvNode || (alpha == beta - 1));
|
||||
assert(depth <= DEPTH_ZERO);
|
||||
|
||||
Reference in New Issue
Block a user