From b6234b1a93ef12c008d42a390e36fc51b69a1162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sun, 26 Apr 2020 00:13:31 +0200 Subject: [PATCH] Move node class to separate AStarNode.py file --- src/AI/AStarNode.py | 5 +++++ src/AI/AutomaticMovement.py | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 src/AI/AStarNode.py diff --git a/src/AI/AStarNode.py b/src/AI/AStarNode.py new file mode 100644 index 0000000..ad867c2 --- /dev/null +++ b/src/AI/AStarNode.py @@ -0,0 +1,5 @@ +class AStarNode: + def __init__(self, parent, action, state): + self.state = state + self.parent = parent + self.action = action \ No newline at end of file diff --git a/src/AI/AutomaticMovement.py b/src/AI/AutomaticMovement.py index dc0c6e1..ee8de30 100644 --- a/src/AI/AutomaticMovement.py +++ b/src/AI/AutomaticMovement.py @@ -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 \ No newline at end of file