修复了规则允许提三连子的情况下电脑不会提的问题
This commit is contained in:
parent
4aacd59e08
commit
45e024c151
|
@ -147,7 +147,7 @@ void NineChessAi_ab::buildChildren(Node *node)
|
|||
// 不是全成三的情况
|
||||
for (int pos = NineChess::POS_BEGIN; pos < NineChess::POS_END; pos++) {
|
||||
if (chessTemp.board_[pos] & opponent) {
|
||||
if (!chessTemp.isInMills(pos)) {
|
||||
if (chessTemp.getRule()->allowRemoveMill || !chessTemp.isInMills(pos)) {
|
||||
addNode(node, 0, -pos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue