s3games.ai

## Class DistanceFromGoalHeuristic

- java.lang.Object
- - s3games.ai.Heuristic
  - - s3games.ai.DistanceFromGoalHeuristic

-     public class DistanceFromGoalHeuristic
      extends Heuristic

  a heuristic that compares the number of different elements from the target situation

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DistanceFromGoalHeuristic()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `heuristic(GameState gameState, int forPlayer)` takes a current state and compares it with a goal state element by element, and sums the number of differences - not implemented yet

    - ### Methods inherited from class s3games.ai.Heuristic

      `availableHeuristics, getHeuristic`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DistanceFromGoalHeuristic

          public DistanceFromGoalHeuristic()

  - ### Method Detail

    - #### heuristic

          public double heuristic(GameState gameState,
                         int forPlayer)

      takes a current state and compares it with a goal state element by element, and sums the number of differences - not implemented yet
      Specified by:
        `heuristic` in class `Heuristic`
      Parameters:
        `gameState` - current game state
        `forPlayer` - current player
      Returns:
        estimated value of the current game state