s3games.ai

## Class AStarStrategy

- java.lang.Object
- - s3games.ai.Strategy
  - - s3games.ai.AStarStrategy

-     public class AStarStrategy
      extends Strategy

  A strategy class for the A* player

- - ### Field Summary

    - ### Fields inherited from class s3games.ai.Strategy

      `heuristic`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AStarStrategy(Heuristic h)` construct an instance of the strategy

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Player` | `getPlayer(GameSpecification specs)` get a A* player object for the specified game
    `void` | `learn(Game game)` learn a strategy for the specified game

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

      `availableStrategies, getStrategy, learnable, setHeuristic`

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

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

- - ### Constructor Detail

    - #### AStarStrategy

          public AStarStrategy(Heuristic h)

      construct an instance of the strategy
      Parameters:
        `h` - a game-specific admissible heuristic for A*

  - ### Method Detail

    - #### getPlayer

          public Player getPlayer(GameSpecification specs)

      get a A* player object for the specified game
      Specified by:
        `getPlayer` in class `Strategy`
      Parameters:
        `specs` - specification of the game to be played
      Returns:
        a new instance of A* player

    - #### learn

          public void learn(Game game)

      Description copied from class: `Strategy`
      learn a strategy for the specified game
      Specified by:
        `learn` in class `Strategy`