Inteligentna_smieciarka/state.py

11 lines
389 B
Python
Raw Normal View History

2023-04-19 21:40:40 +02:00
class State:
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
self.priority = priority
self.heuristic = heuristic
def __gt__(self, other):
return self.priority > other.priority