2023-04-19 21:40:40 +02:00
|
|
|
class State:
|
2023-05-04 20:44:35 +02:00
|
|
|
def __init__(self, parent, action, xpos, ypos, orientation, priority, heuristic):
|
2023-04-19 21:40:40 +02:00
|
|
|
self.parent = parent
|
|
|
|
self.xpos = xpos
|
|
|
|
self.ypos = ypos
|
2023-04-19 22:12:02 +02:00
|
|
|
self.orientation = orientation
|
2023-05-03 12:07:13 +02:00
|
|
|
self.action = action
|
2023-05-04 20:44:35 +02:00
|
|
|
self.priority = priority
|
|
|
|
self.heuristic = heuristic
|
|
|
|
def __gt__(self, other):
|
|
|
|
return self.priority > other.priority
|