org.dartra.games.x01
Interface ZoneSuggestionStrategy

All Known Implementing Classes:
StaticZoneSuggestionStrategy

public interface ZoneSuggestionStrategy

Interface for all algorithms that can suggest target zones for an x01 darts game. These target zones form the objectives presented to the player by the game.

Author:
Erwin Vervaet

Method Summary
 X01Game getGame()
          Get the x01 game that is using this strategy.
 Objective getObjective(Player player)
          Get an objective for given player.
 

Method Detail

getGame

public X01Game getGame()

Get the x01 game that is using this strategy.


getObjective

public Objective getObjective(Player player)

Get an objective for given player. This boils down to suggesting a target zone.

Implementing subclasses can possibly return an Objective implementation that suggests multiple alternative target zones.