Skip to content

Instantly share code, notes, and snippets.

View lekeOnilude's full-sized avatar
💭
learning

Gbemileke Onilude lekeOnilude

💭
learning
View GitHub Profile
@lekeOnilude
lekeOnilude / A search.py
Created September 22, 2017 22:23
A search implimentation
# -----------
# 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.