This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'hawker' | |
| import math | |
| class Node: | |
| xPos = 0 # x position | |
| yPos = 0 # y position | |
| distance = 0 # total distance already travelled to reach the node | |
| priority = 0 # priority = distance + remaining distance estimate | |
| def __init__(self, xPos, yPos, distance, priority): | |
| self.xPos = xPos | |
| self.yPos = yPos |
NewerOlder