Ejemplo n.º 1
0
    def __init__(self, parent, g, h, x, y, board, heuristic, ninjaNodeMode):
        self.parent = parent
        self.gValue = g
        self.hValue = h
        self.fValue = self.gValue + self.hValue
        self.kids = []
        """Module 1 attributes"""

        self.board = board
        self.heuristic = heuristic
        self.ninjaNodeMode = ninjaNodeMode
        self.xPos = x
        self.yPos = y
        self.state = self.calculateStateIndex()
        self.goalTuple = board.goalXY

        AStarNode.__init__(self, parent)
Ejemplo n.º 2
0
    def __init__(self, parent, g, h, x, y, board, heuristic, ninjaNodeMode):
        self.parent = parent
        self.gValue = g
        self.hValue = h
        self.fValue = self.gValue + self.hValue
        self.kids = []

        """Module 1 attributes"""

        self.board = board
        self.heuristic = heuristic
        self.ninjaNodeMode = ninjaNodeMode
        self.xPos = x
        self.yPos = y
        self.state = self.calculateStateIndex()
        self.goalTuple = board.goalXY

        AStarNode.__init__(self, parent)
Ejemplo n.º 3
0
 def __init__(self, parent):
     AStarNode.__init__(self, parent)
	def __init__(self, parent):
		AStarNode.__init__(self, parent)