mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00:00
piecesCount (#932)
All counts in search.cpp are of the form xxxCount. Conform piecesCnt to this unwritten rule. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
ee22b61f5e
commit
f72b7dc99a
+3
-3
@@ -654,10 +654,10 @@ namespace {
|
|||||||
// Step 4a. Tablebase probe
|
// Step 4a. Tablebase probe
|
||||||
if (!rootNode && TB::Cardinality)
|
if (!rootNode && TB::Cardinality)
|
||||||
{
|
{
|
||||||
int piecesCnt = pos.count<ALL_PIECES>(WHITE) + pos.count<ALL_PIECES>(BLACK);
|
int piecesCount = pos.count<ALL_PIECES>(WHITE) + pos.count<ALL_PIECES>(BLACK);
|
||||||
|
|
||||||
if ( piecesCnt <= TB::Cardinality
|
if ( piecesCount <= TB::Cardinality
|
||||||
&& (piecesCnt < TB::Cardinality || depth >= TB::ProbeDepth)
|
&& (piecesCount < TB::Cardinality || depth >= TB::ProbeDepth)
|
||||||
&& pos.rule50_count() == 0
|
&& pos.rule50_count() == 0
|
||||||
&& !pos.can_castle(ANY_CASTLING))
|
&& !pos.can_castle(ANY_CASTLING))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user