Heuristic Functions
A heuristic function is a way to inform the search about the direction to a goal.
In the context of Adversarial Search: An evaluation function estimates the expected utility of the game from a given state. You can also call this Value Function, borrowed from the RL community.
Grid Search
Suppose you have a goal position and your current position is , then you can use some simple heuristics: