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

Yet, when I run:

def return_values(self):
    lst = []
    for i in self.frontier:
        lst.append(i.value)
    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 .