Search algorithms for the 8-puzzle solution
|
Implementation of the Manhattan distance for the 8-puzzle. More...
#include <Heuristic.hpp>
Public Member Functions | |
int | calc (GameState ¤tState) |
Calculates the heuristic value for a state. More... | |
Implementation of the Manhattan distance for the 8-puzzle.
Definition at line 23 of file Heuristic.hpp.
|
inlinevirtual |
Calculates the heuristic value for a state.
currentState | the state to be evaluated |
Implements Heuristic.
Definition at line 26 of file Heuristic.hpp.