original_docstring: 
          Generate the children of the passed "parent" node based on the available
          moves in the passed gamestate and add them to the tree.
  
          Returns:
              object:
          
docstring: Generate the children of the passed "parent" node based on the available
  moves in the passed gamestate and add them to the tree.
docstring_tokens: Generate the children of the passed " parent " node based on the available moves in the passed gamestate and add them to the tree .
code: def expand(parent: RaveNode, state: GameState) -> bool:
          """
          Generate the children of the passed "parent" node based on the available
          moves in the passed gamestate and add them to the tree.
  
          Returns:
              object:
          """
          children = []
          if state.winner != GameMeta.PLAYERS["none"]:
              # game is over at this node so nothing to expand
              return False
  
          for move in state.moves():
              children.append(RaveNode(move, parent))
  
          parent.add_children(children)
          return True
code_tokens: def expand ( parent : RaveNode , state : GameState ) -> bool : children = [ ] if state . winner != GameMeta . PLAYERS [ "none" ] : return False for move in state . moves ( ) : children . append ( RaveNode ( move , parent ) ) parent . add_children ( children ) return True
short_docstring: Generate the children of the passed "parent" node based on the available
  moves in the passed gamestate and add them to the tree.
short_docstring_tokens: Generate the children of the passed " parent " node based on the available moves in the passed gamestate and add them to the tree .
comment: """
          Generate the children of the passed "parent" node based on the available
          moves in the passed gamestate and add them to the tree.
  
          Returns:
              object:
          """$SEP$# game is over at this node so nothing to expand