mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +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:
parent
ee22b61f5e
commit
f72b7dc99a
1 changed files with 3 additions and 3 deletions
|
@ -654,10 +654,10 @@ namespace {
|
|||
// Step 4a. Tablebase probe
|
||||
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
|
||||
&& (piecesCnt < TB::Cardinality || depth >= TB::ProbeDepth)
|
||||
if ( piecesCount <= TB::Cardinality
|
||||
&& (piecesCount < TB::Cardinality || depth >= TB::ProbeDepth)
|
||||
&& pos.rule50_count() == 0
|
||||
&& !pos.can_castle(ANY_CASTLING))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue