20 lines
391 B
Python
20 lines
391 B
Python
class Node:
|
|
def __init__(self, parent, action, state_array):
|
|
self.parent = parent
|
|
self.action = action
|
|
self.position = state_array
|
|
|
|
def get_position(self):
|
|
return self.position
|
|
|
|
def get_action(self):
|
|
return self.action
|
|
|
|
def get_parent(self):
|
|
return self.parent
|
|
|
|
def set_parent(self, parent):
|
|
self.parent = parent
|
|
|
|
|