perfect: Disable PERFECT_AI_SUPPORT macron

Only enable it when we want to test.
This commit is contained in:
Calcitem 2021-02-10 20:48:34 +08:00
parent 31b6c69363
commit 8cb285f215
3 changed files with 11 additions and 3 deletions

View File

@ -56,7 +56,7 @@
#ifndef DISABLE_PERFECT_AI
#ifdef _MSC_VER
#define PERFECT_AI_SUPPORT
//#define PERFECT_AI_SUPPORT
#ifdef PERFECT_AI_SUPPORT
#define MUEHLE_NMM

View File

@ -1271,7 +1271,11 @@ void Position::surrounded_pieces_count(Square s, int &ourPieceCount, int &theirP
}
}
bool Position::is_all_surrounded(Color c, Square from, Square to) const
bool Position::is_all_surrounded(Color c
#ifdef MUEHLE_NMM
, Square from, Square to
#endif // MUEHLE_NMM
) const
{
// Full
if (pieceOnBoardCount[BLACK] + pieceOnBoardCount[WHITE] >= EFFECTIVE_SQUARE_NB)

View File

@ -134,7 +134,11 @@ public:
bool is_all_in_mills(Color c);
void surrounded_pieces_count(Square s, int &nOurPieces, int &nTheirPieces, int &nBanned, int &nEmpty);
bool is_all_surrounded(Color c, Square from = SQ_0, Square to = SQ_0) const;
bool is_all_surrounded(Color c
#ifdef MUEHLE_NMM
, Square from = SQ_0, Square to = SQ_0
#endif // MUEHLE_NMM
) const;
static void print_board();