Retire Position::in_check()

It is redundant with Position::checkers()

No functional change.
This commit is contained in:
Marco Costalba
2012-12-25 17:59:35 +01:00
parent 3b49aeb4f2
commit e82382703c
7 changed files with 17 additions and 22 deletions

View File

@@ -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);