HASH: 棋力和非HASH相当了但是效率无提升

This commit is contained in:
CalciteM Team 2019-07-20 03:09:50 +08:00
parent d200ccad55
commit a77f6b6c95
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;
}