org.dartra.games.x01
Class StaticZoneSuggestionStrategy

java.lang.Object
  extended byorg.dartra.games.x01.StaticZoneSuggestionStrategy
All Implemented Interfaces:
ZoneSuggestionStrategy

public class StaticZoneSuggestionStrategy
extends java.lang.Object
implements ZoneSuggestionStrategy

Simple x01 zone suggestion algorithm that uses static out-shot tables. It does not take player preferences and abilities into account.

Author:
Erwin Vervaet

Constructor Summary
StaticZoneSuggestionStrategy(X01Game game)
           
 
Method Summary
 X01Game getGame()
          Get the x01 game that is using this strategy.
 Objective getObjective(Player player)
          Get an objective for given player.
protected  Zone suggestZone(int score)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticZoneSuggestionStrategy

public StaticZoneSuggestionStrategy(X01Game game)
Method Detail

getGame

public X01Game getGame()
Description copied from interface: ZoneSuggestionStrategy

Get the x01 game that is using this strategy.

Specified by:
getGame in interface ZoneSuggestionStrategy

getObjective

public Objective getObjective(Player player)
Description copied from interface: ZoneSuggestionStrategy

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.

Specified by:
getObjective in interface ZoneSuggestionStrategy

suggestZone

protected Zone suggestZone(int score)