possible_moves = actions(current_node.value)
for moves in possible_moves:
       Added_Node = Node()
       Added_Node.value = result(current_node.value, moves)

Yet, when I run:

def return_values(self):
    lst = []
    for i in self.frontier:
    return lst

It returns a list with the EXACT same values. I've double-checked and I'm sure the result() and the actions() function DOES work.

You must log in to answer this question.

Browse other questions tagged .