|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dartra.games.x01.StaticZoneSuggestionStrategy
Simple x01 zone suggestion algorithm that uses static out-shot tables. It does not take player preferences and abilities into account.
| 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 |
public StaticZoneSuggestionStrategy(X01Game game)
| Method Detail |
public X01Game getGame()
ZoneSuggestionStrategyGet the x01 game that is using this strategy.
getGame in interface ZoneSuggestionStrategypublic Objective getObjective(Player player)
ZoneSuggestionStrategyGet 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.
getObjective in interface ZoneSuggestionStrategyprotected Zone suggestZone(int score)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||