Search algorithms for the 8-puzzle solution
Public Member Functions
Heuristic Class Referenceabstract

Abtract class for heuristic functions. More...

#include <Heuristic.hpp>

Inheritance diagram for Heuristic:
Collaboration diagram for Heuristic:

Public Member Functions

virtual int calc (GameState &currentState)=0
 Calculates the heuristic value for a state. More...
 

Detailed Description

Abtract class for heuristic functions.

Author
Douglas De Rizzo Meneghetti (dougl.nosp@m.asri.nosp@m.zzom@.nosp@m.gmai.nosp@m.l.com)
Date
2017-6-22Abtract class for heuristic functions.

Definition at line 13 of file Heuristic.hpp.

Member Function Documentation

◆ calc()

virtual int Heuristic::calc ( GameState currentState)
pure virtual

Calculates the heuristic value for a state.

Parameters
currentStatethe state to be evaluated
Returns
heuristic value for currentState

Implemented in TileDifference, and Manhattan.


The documentation for this class was generated from the following file: