Lux AI SDK Javadocs For a full listing of javadoc infomation visit the Javadoc Overview. Here are some pointers to the more interesting classes for Lux agents:
Board An important data structure available through the Board is the array of Country's in the game. Available through the getCountries() method, this array contains all aspects of the current board position.
Country Each Country contains a number of integer values, namely a country-code, continent-code, owner-code, number of armies, and number of fortifyable armies. As well, each Country stores information about which other Country's are adjacent to it. The country-code is a unique number used to identify countries. The array returned by the Board.getCountries() will always be ordered by country-code.
Card
BoardHelper
CountryRoute, CountryCluster and CountryClusterSet are 3 new object oriented classes for paths, clusters, and cluster sets. As well, a number of concrete CountryIterator subclasses exist for agents to use. Use the constructor containing a CountryIterator in order to chain multiple conditions together. For example new PlayerIterator(1, new ContinentIterator(2))will give an enumeration of all countries owned by player 1 in continent 2.
ArmiesIterator
ClusterBorderIterator
ContinentIterator
NeighborIterator
PlayerIterator |