movegen: 去除开头'如果有子节点,则返回,避免重复建立'的判断
This commit is contained in:
parent
0562672ed0
commit
4380566fa8
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue