Book: 行棋阶段不检索开局库

This commit is contained in:
CalciteM Team 2019-07-21 18:28:40 +08:00
parent 044991678f
commit f400e5be7f
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@ int NineChessAi_ab::alphaBetaPruning(int depth, int alpha, int beta, Node *node)
#ifdef BOOK_LEARNING
// 检索开局库
if (findBookHash(hash, hashValue)) {
if (chessContext->stage == NineChess::GAME_PLACING && findBookHash(hash, hashValue)) {
if (chessContext->turn == NineChess::PLAYER2) {
// 是否需对后手扣分 // TODO: 先后手都处理
hitBook = true;