diff --git a/NineChess/src/config.h b/NineChess/src/config.h index 135a532f..9ec26cce 100644 --- a/NineChess/src/config.h +++ b/NineChess/src/config.h @@ -3,13 +3,13 @@ //#define DEBUG -//#define RANDOM_MOVE +#define RANDOM_MOVE #define DEAL_WITH_HORIZON_EFFECT #define IDS_SUPPORT -//#define HASH_MAP_ENABLE +#define HASH_MAP_ENABLE //#define DONOT_DELETE_TREE @@ -27,7 +27,7 @@ //#define DONOT_PLAY_SOUND #ifdef DEBUG -#define GAME_PLACING_FIXED_DEPTH 4 +#define GAME_PLACING_FIXED_DEPTH 3 #endif #ifdef DEBUG diff --git a/NineChess/src/ninechessai_ab.cpp b/NineChess/src/ninechessai_ab.cpp index 443f8154..153f60c0 100644 --- a/NineChess/src/ninechessai_ab.cpp +++ b/NineChess/src/ninechessai_ab.cpp @@ -632,7 +632,7 @@ int NineChessAi_ab::alphaBetaPruning(int depth, int alpha, int beta, Node *node) memset(&hashValue, 0, sizeof(hashValue)); // 哈希类型 - enum HashType hashf = hashfEXACT; + enum HashType hashf = hashfALPHA; // 获取哈希值 uint64_t hash = chessTemp.getHash(); @@ -814,7 +814,7 @@ int NineChessAi_ab::alphaBetaPruning(int depth, int alpha, int beta, Node *node) if (value > alpha) { #ifdef HASH_MAP_ENABLE - hashf = hashfALPHA; // ???? + hashf = hashfEXACT; // ???? #endif alpha = value; }