class State: def __init__(self, parent, action, xpos, ypos, orientation, priority, heuristic): self.parent = parent self.xpos = xpos self.ypos = ypos self.orientation = orientation self.action = action self.priority = priority self.heuristic = heuristic def __gt__(self, other): return self.priority > other.priority