movegen: 去除开头'如果有子节点,则返回,避免重复建立'的判断

This commit is contained in:
Calcitem 2019-11-24 01:52:26 +08:00
parent 0562672ed0
commit 4380566fa8
1 changed files with 0 additions and 5 deletions

View File

@ -29,11 +29,6 @@ void MoveList::generate(AIAlgorithm &ai, Game &tempGame,
{
square_t square = SQ_0;
// 如果有子节点,则返回,避免重复建立
if (node->childrenSize) {
return;
}
// 对手
player_t opponent = Player::getOpponent(tempGame.position.sideToMove);