Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Initialize AStarNode class
@type graph: Map @param graph: Map that moves can be made on @type move: Move @param move: Move that resulted in the above graph @type parent: Node @param parent: Parent node of this. Contains previous moves to get the current board. """
""" Construct the path from here that it took to make it here.
@rtype: [Move] @return: array of moves to get to this point from the root node """ # initialize variables
# loop through parents
# reverse list and return result. Remove the first as it will be None |