diff --git a/include/config.h b/include/config.h index 4ea93235..cdddf769 100644 --- a/include/config.h +++ b/include/config.h @@ -57,6 +57,8 @@ #define DEPTH_ADJUST (0) //#define FIX_DEPTH (24) +//#define FIRST_MOVE_STAR_PREFERRED + //#define HARD_LEVEL_DEPTH //#define TIME_STAT diff --git a/src/ai/movegen.cpp b/src/ai/movegen.cpp index 850e4a23..aaef1b16 100644 --- a/src/ai/movegen.cpp +++ b/src/ai/movegen.cpp @@ -82,9 +82,13 @@ int StateInfo::generateMoves(Stack &moves) moves.push_back((move_t)square); } else { // 若为先手,则抢占星位 +#ifdef FIRST_MOVE_STAR_PREFERRED if (Board::isStar(square)) { moves.push_back((move_t)square); } +#else + moves.push_back((move_t)square); +#endif } #endif // MCTS_AI }