Move node class to separate AStarNode.py file

This commit is contained in:
Michał Czekański 2020-04-26 00:13:31 +02:00
parent b296fbe492
commit b6234b1a93
2 changed files with 5 additions and 7 deletions

5
src/AI/AStarNode.py Normal file
View File

@ -0,0 +1,5 @@
class AStarNode:
def __init__(self, parent, action, state):
self.state = state
self.parent = parent
self.action = action

View File

@ -115,10 +115,3 @@ class AutomaticMovement:
newState[2] = Rotations((state[2] - 1) % 4)
return newState
class node:
def __init__(self, parent, action, state):
self.state = state
self.parent = parent
self.action = action