heuristic method

  1. @override
double heuristic()
override

The heuristic (estimated cost) of this state. See https://en.wikipedia.org/wiki/Heuristic_(computer_science).

Implementation

@override
double heuristic() => position.manhattanDistance(goal);