Move node class to separate AStarNode.py file
This commit is contained in:
parent
b296fbe492
commit
b6234b1a93
5
src/AI/AStarNode.py
Normal file
5
src/AI/AStarNode.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class AStarNode:
|
||||||
|
def __init__(self, parent, action, state):
|
||||||
|
self.state = state
|
||||||
|
self.parent = parent
|
||||||
|
self.action = action
|
@ -115,10 +115,3 @@ class AutomaticMovement:
|
|||||||
newState[2] = Rotations((state[2] - 1) % 4)
|
newState[2] = Rotations((state[2] - 1) % 4)
|
||||||
|
|
||||||
return newState
|
return newState
|
||||||
|
|
||||||
|
|
||||||
class node:
|
|
||||||
def __init__(self, parent, action, state):
|
|
||||||
self.state = state
|
|
||||||
self.parent = parent
|
|
||||||
self.action = action
|
|
Loading…
Reference in New Issue
Block a user