HASH: 棋力和非HASH相当了但是效率无提升
This commit is contained in:
parent
d200ccad55
commit
a77f6b6c95
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue