修正星位函数命名错误
This commit is contained in:
parent
85e9903f05
commit
a6432a20ba
|
@ -342,7 +342,7 @@ public:
|
|||
}
|
||||
|
||||
// 判断位置点是否为星位 (星位是经常会先占的位置)
|
||||
static bool isStartPoint(int pos)
|
||||
static bool isStarPoint(int pos)
|
||||
{
|
||||
return (pos == 17 || pos == 19 || pos == 21 || pos == 23);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue