修正星位函数命名错误

This commit is contained in:
Calcitem Team 2019-08-14 00:06:06 +08:00
parent 85e9903f05
commit a6432a20ba
2 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ public:
}
// 判断位置点是否为星位 (星位是经常会先占的位置)
static bool isStartPoint(int pos)
static bool isStarPoint(int pos)
{
return (pos == 17 || pos == 19 || pos == 21 || pos == 23);
}

View File

@ -294,7 +294,7 @@ void NineChessAi_ab::generateLegalMoves(Node *node, move_t bestMove)
addNode(node, 0, pos, bestMove, chessTemp.context.turn);
} else {
// 若为先手,则抢占星位
if (NineChess::isStartPoint(pos)) {
if (NineChess::isStarPoint(pos)) {
addNode(node, INF_VALUE, pos, bestMove, chessTemp.context.turn);
}
}