This file contains 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
# ----------- | |
# User Instructions: | |
# | |
# Modify the the search function so that it becomes | |
# an A* search algorithm as defined in the previous | |
# lectures. | |
# | |
# Your function should return the expanded grid | |
# which shows, for each element, the count when | |
# it was expanded or -1 if the element was never expanded. |