TYPE: game.Game
TYPE JAVADOC: Defines the main ludeme that describes the players, mode, equipment and rules of a game.
NEW CTOR
(game <string> <players> [<mode>] <equipment> <rules>)
PARAM JAVADOC: <string>: The name of the game.
PARAM JAVADOC: <players>: The players of the game.
PARAM JAVADOC: [<mode>]: The mode of the game [Alternating].
PARAM JAVADOC: <equipment>: The equipment of the game.
PARAM JAVADOC: <rules>: The rules of the game.
EXAMPLE: (game "Tic-Tac-Toe" (players 2) (equipment { (board (square 3)) (piece "Disc" P1) (piece "Cross" P2) }) (rules (play (move Add (to (sites Empty)))) (end (if (is Line 3) (result Mover Win))) ) )
TYPE: game.equipment.Equipment
TYPE JAVADOC: Defines the equipment list of the game.
NEW CTOR
(equipment {<item>})
PARAM JAVADOC: {<item>}: The items (container, component etc.).
EXAMPLE: (equipment { (board (square 3)) (piece "Disc" P1) (piece "Cross" P2) })
REMARKS: To define the items (container, component etc.) of the game. Any type of component or container described in this chapter may be used as an <item> type.
TYPE: game.equipment.Item
TYPE JAVADOC: Provides a Grammar placeholder for items to go in the equipment collection.
SUBCLASS: game.equipment.component.Card
SUBCLASS: game.equipment.component.Component
SUBCLASS: game.equipment.component.Die
SUBCLASS: game.equipment.component.Piece
SUBCLASS: game.equipment.component.tile.Domino
SUBCLASS: game.equipment.component.tile.Tile
SUBCLASS: game.equipment.container.board.Board
SUBCLASS: game.equipment.container.board.Boardless
SUBCLASS: game.equipment.container.board.custom.MancalaBoard
SUBCLASS: game.equipment.container.board.custom.SurakartaBoard
SUBCLASS: game.equipment.container.Container
SUBCLASS: game.equipment.container.other.Deck
SUBCLASS: game.equipment.container.other.Dice
SUBCLASS: game.equipment.container.other.Hand
SUBCLASS: game.equipment.other.Dominoes
SUBCLASS: game.equipment.other.Hints
SUBCLASS: game.equipment.other.Map
SUBCLASS: game.equipment.other.Regions
TYPE: game.equipment.component.Card
TYPE JAVADOC: Defines a card with specific properties such as the suit or the rank of the  card in the deck.
NEW CTOR
(card <string> <roleType> <cardType> rank:int value:int trumpRank:int trumpValue:int suit:int [<moves>] [maxState:int] [maxCount:int] [maxValue:int])
PARAM JAVADOC: <string>: The name of the card.
PARAM JAVADOC: <roleType>: The owner of the card.
PARAM JAVADOC: <cardType>: The type of a card chosen from the possibilities in the CardType ludeme.
PARAM JAVADOC: rank:int: The rank of the card in the deck.
PARAM JAVADOC: value:int: The value of the card.
PARAM JAVADOC: trumpRank:int: The trump rank of the card in the deck.
PARAM JAVADOC: trumpValue:int: The trump value of the card.
PARAM JAVADOC: suit:int: The suit of the card.
PARAM JAVADOC: [<moves>]: The moves associated with the component.
PARAM JAVADOC: [maxState:int]: To set the maximum local state the game should check.
PARAM JAVADOC: [maxCount:int]: To set the maximum count the game should check.
PARAM JAVADOC: [maxValue:int]: To set the maximum value the game should check.
EXAMPLE: (card "Card" Shared King rank:6 value:4 trumpRank:3 trumpValue:4 suit:1)
REMARKS: This ludeme creates a specific card. If this ludeme is used with no deck defined, the generated card will be not included in a deck by default. See also Deck ludeme.
TYPE: game.equipment.component.Component
TYPE JAVADOC: Defines a component.
TYPE: game.equipment.component.Die
TYPE JAVADOC: Defines a single non-stochastic die used as a piece.
NEW CTOR
(die <string> <roleType> numFaces:int [<directionFacing>] [<moves>])
PARAM JAVADOC: <string>: The name of the die.
PARAM JAVADOC: <roleType>: The owner of the die.
PARAM JAVADOC: numFaces:int: The number of faces of the die.
PARAM JAVADOC: [<directionFacing>]: The direction of the component.
PARAM JAVADOC: [<moves>]: The moves associated with the component.
EXAMPLE: (die "Die6" All numFaces:6)
REMARKS: The die defined with this ludeme will be not included in a dice container and cannot be rolled with the roll ludeme, but can be turned to show each of its faces.
TYPE: game.equipment.component.Piece
TYPE JAVADOC: Defines a piece.
NEW CTOR
(piece <string> [<roleType>] [<directionFacing>] [<flips>] [<moves>] [maxState:int] [maxCount:int] [maxValue:int])
PARAM JAVADOC: <string>: The name of the piece.
PARAM JAVADOC: [<roleType>]: The owner of the piece [Each].
PARAM JAVADOC: [<directionFacing>]: The direction of the piece.
PARAM JAVADOC: [<flips>]: The corresponding values to flip, e.g. (flip 1 2) 1 is flipped to 2 and 2 is flipped to 1.
PARAM JAVADOC: [<moves>]: The moves associated with the piece.
PARAM JAVADOC: [maxState:int]: To set the maximum local state the game should check.
PARAM JAVADOC: [maxCount:int]: To set the maximum count the game should check.
PARAM JAVADOC: [maxValue:int]: To set the maximum value the game should check.
EXAMPLE: (piece "Pawn" Each)
EXAMPLE: (piece "Disc" Neutral (flips 1 2))
EXAMPLE: (piece "Dog" P1 (step (to if:(is Empty (to)))))
REMARKS: Useful to create a pawn, a disc or a representation of an animal for example.
TYPE: game.equipment.component.tile.Domino
TYPE JAVADOC: Defines a single domino.
NEW CTOR
(domino <string> <roleType> value:int value2:int [<moves>])
PARAM JAVADOC: <string>: The name of the domino.
PARAM JAVADOC: <roleType>: The owner of the domino.
PARAM JAVADOC: value:int: The first value of the domino.
PARAM JAVADOC: value2:int: The second value of the domino.
PARAM JAVADOC: [<moves>]: The moves associated with the component.
EXAMPLE: (domino "Domino45" Shared value:4 value2:5)
REMARKS: The domino defined with this ludeme will be not included in the dominoes container by default and so cannot be shuffled with other dominoes.
TYPE: game.equipment.component.tile.Path
TYPE JAVADOC: Defines the internal path of a tile component.
NEW CTOR
(path from:int [slotsFrom:int] to:int [slotsTo:int] colour:int)
PARAM JAVADOC: from:int: The "from" side of the connection.
PARAM JAVADOC: [slotsFrom:int]: The slot of the "from" side [0].
PARAM JAVADOC: to:int: The "to" side of the connection.
PARAM JAVADOC: [slotsTo:int]: The slot of the "to" side [0].
PARAM JAVADOC: colour:int: The colour of the connection.
EXAMPLE: (path from:0 to:2 colour:1)
REMARKS: To define the path of the internal connection of a tile component. The number side 0 = the first direction of the tiling, in general 0 = North.
TYPE: game.equipment.component.tile.Tile
TYPE JAVADOC: Defines a tile, a component following the tiling with internal connection.
NEW CTOR
(tile <string> [<roleType>] ([{<stepType>}]  | [{{<stepType>}}]) [numSides:int] ([slots:{int}]  | [slotsPerSide:int]) [{<path>}] [<flips>] [<moves>] [maxState:int] [maxCount:int] [maxValue:int])
PARAM JAVADOC: <string>: The name of the tile.
PARAM JAVADOC: [<roleType>]: The owner of the tile.
PARAM JAVADOC: [{<stepType>}]: A turtle graphics walk to define the shape of a large tile.
PARAM JAVADOC: [{{<stepType>}}]: Many turtle graphics walks to define the shape of a large tile.
PARAM JAVADOC: [numSides:int]: The number of sides of the tile.
PARAM JAVADOC: [slots:{int}]: The number of slots for each side.
PARAM JAVADOC: [slotsPerSide:int]: The number of slots for each side if this is the same number for each side [1].
PARAM JAVADOC: [{<path>}]: The connection in the tile.
PARAM JAVADOC: [<flips>]: The corresponding values to flip, e.g. (flip 1 2) 1 is flipped to 2 and 2 is flipped to 1.
PARAM JAVADOC: [<moves>]: The associated moves of this component.
PARAM JAVADOC: [maxState:int]: To set the maximum local state the game should check.
PARAM JAVADOC: [maxCount:int]: To set the maximum count the game should check.
PARAM JAVADOC: [maxValue:int]: To set the maximum value the game should check.
EXAMPLE: (tile "TileX" numSides:4 { (path from:0 to:2 colour:1) (path from:1 to:3 colour:2) } )
TYPE: game.equipment.container.Container
TYPE JAVADOC: Defines a container.
SUBCLASS: game.equipment.container.board.Board
SUBCLASS: game.equipment.container.board.Boardless
SUBCLASS: game.equipment.container.board.custom.MancalaBoard
SUBCLASS: game.equipment.container.board.custom.SurakartaBoard
SUBCLASS: game.equipment.container.other.Deck
SUBCLASS: game.equipment.container.other.Dice
SUBCLASS: game.equipment.container.other.Hand
TYPE: game.equipment.container.board.Board
TYPE JAVADOC: Defines a board by its graph, consisting of vertex locations and edge pairs.
NEW CTOR
(board <graphFunction> ([<track>]  | [{<track>}]) ([<values>] ([{<values>}]) [use:<siteType>] [largeStack:<boolean>])
PARAM JAVADOC: <graphFunction>: The graph function used to build the board.
PARAM JAVADOC: [<track>]: The track on the board.
PARAM JAVADOC: [{<track>}]: The tracks on the board.
PARAM JAVADOC: [<values>]: The range values of a graph element used for deduction puzzle.
PARAM JAVADOC: [{<values>}]: The range values of many graph elements used for deduction puzzle.
PARAM JAVADOC: [use:<siteType>]: Graph element type to use by default [Cell].
PARAM JAVADOC: [largeStack:<boolean>]: The game can involves stack(s) higher than 32.
EXAMPLE: (board (graph vertices:{ {1 0} {2 0} {0 1} {1 1} {2 1} {3 1} {0 2} {1 2} {2 2} {3 2} {1 3} {2 3}} edges:{ {0 2} {0 3} {3 2} {3 4} {1 4} {4 5} {1 5} {3 7} {4 8} {6 7} {7 8} {8 9} {6 10} {11 9} {10 7} {11 8}} ) )
REMARKS: The values range are used for deduction puzzles. The state model for these puzzles is a Constraint Satisfaction Problem (CSP) model, possibly with a variable for each graph element (i.e. vertex, edge and cell), each with a range of possible values.
TYPE: game.equipment.container.board.Boardless
TYPE JAVADOC: Defines a boardless container growing in function of the pieces played.
NEW CTOR
(boardless <tilingBoardlessType> [<dimFunction>] [largeStack:<boolean>])
PARAM JAVADOC: <tilingBoardlessType>: The tiling of the boardless container.
PARAM JAVADOC: [<dimFunction>]: The "fake" size of the board used for boardless [41].
PARAM JAVADOC: [largeStack:<boolean>]: The game can involves stack(s) higher than 32.
EXAMPLE: (boardless Hexagonal)
REMARKS: The playable sites of the board will be all the sites adjacent to the places already played/placed. No pregeneration is computed on the graph except the centre.
TYPE: game.equipment.container.board.Track
TYPE JAVADOC: Defines a named track for a container, which is typically the board.
NEW CTOR
(track <string> ({int}  | <string>  | {<trackStep>}) [loop:<boolean>] ([int]  | [<roleType>]) [directed:<boolean>])
PARAM JAVADOC: <string>: The name of the track.
PARAM JAVADOC: {int}: List of integers describing board site indices.
PARAM JAVADOC: <string>: Description including site indices and cardinal.
PARAM JAVADOC: {<trackStep>}: Description using track steps. directions (N, E, S, W).
PARAM JAVADOC: [loop:<boolean>]: True if the track is a loop [False].
PARAM JAVADOC: [int]: The owner of the track [0].
PARAM JAVADOC: [<roleType>]: The role of the owner of the track [Neutral].
PARAM JAVADOC: [directed:<boolean>]: True if the track is directed [False].
EXAMPLE: (track "Track" "1,E,N,W" loop:True)
EXAMPLE: (track "Track1" {6 12..7 5..0 13..18 20..25 End} P1 directed:True)
EXAMPLE: (track "Track1" "20,3,W,N1,E,End" P1 directed:True)
REMARKS: Tracks are typically used for race games, or any game in which pieces move around a track. A number after a direction indicates the number of steps in that direction. For example, "N1,E3" means that track goes North for one step then turns East for three steps.
TYPE: game.equipment.container.board.custom.MancalaBoard
TYPE JAVADOC: Defines a Mancala-style board.
NEW CTOR
(mancalaBoard int int [store:<storeType>] [numStores:int] [largeStack:<boolean>] ([<track>]  | [{<track>}]))
PARAM JAVADOC: int: The number of rows.
PARAM JAVADOC: int: The number of columns.
PARAM JAVADOC: [store:<storeType>]: The type of the store.
PARAM JAVADOC: [numStores:int]: The number of store.
PARAM JAVADOC: [largeStack:<boolean>]: The game can involves stack(s) higher than 32.
PARAM JAVADOC: [<track>]: The track on the board.
PARAM JAVADOC: [{<track>}]: The tracks on the board.
EXAMPLE: (mancalaBoard 2 6)
TYPE: game.equipment.container.board.custom.SurakartaBoard
TYPE JAVADOC: Defines a Surakarta-style board.
NEW CTOR
(surakartaBoard <graphFunction> [loops:int] [from:int] [largeStack:<boolean>])
PARAM JAVADOC: <graphFunction>: The graph function used to build the board.
PARAM JAVADOC: [loops:int]: Number of loops, i.e. special capture tracks [(minDim - 1) / 2].
PARAM JAVADOC: [from:int]: Which row to start loops from [1].
PARAM JAVADOC: [largeStack:<boolean>]: The game can involves stack(s) higher than 32.
EXAMPLE: (surakartaBoard (square 6) loops:2)
REMARKS: Surakata-style boards have loops that pieces must travel around in order to capture other pieces. The following board shapes are supported: Square, Rectangle, Hexagon, Triangle.
TYPE: game.equipment.container.other.Deck
TYPE JAVADOC: Generates a deck of cards.
NEW CTOR
(deck [<roleType>] [cardsBySuit:int] [suits:int] [{<card>}])
PARAM JAVADOC: [<roleType>]: The owner of the deck [Shared].
PARAM JAVADOC: [cardsBySuit:int]: The number of cards per suit [13].
PARAM JAVADOC: [suits:int]: The number of suits in the deck [4].
PARAM JAVADOC: [{<card>}]: Specific data about each kind of card for each suit.
EXAMPLE: (deck)
EXAMPLE: (deck { (card Seven rank:0 value:0 trumpRank:0 trumpValue:0) (card Eight rank:1 value:0 trumpRank:1 trumpValue:0) (card Nine rank:2 value:0 trumpRank:6 trumpValue:14) (card Ten rank:3 value:10 trumpRank:4 trumpValue:10) (card Jack rank:4 value:2 trumpRank:7 trumpValue:20) (card Queen rank:5 value:3 trumpRank:2 trumpValue:3) (card King rank:6 value:4 trumpRank:3 trumpValue:4) (card Ace rank:7 value:11 trumpRank:5 trumpValue:11) })
TYPE: game.equipment.container.other.Dice
TYPE JAVADOC: Generates a set of dice.
NEW CTOR
(dice [d:int] ([faces:{int}]  | [facesByDie:{{int}}]  | [from:int]) [<roleType>] num:int [biased:{int}])
PARAM JAVADOC: [d:int]: The number of faces of the die [6].
PARAM JAVADOC: [faces:{int}]: The values of each face.
PARAM JAVADOC: [facesByDie:{{int}}]: The values of each face for each die.
PARAM JAVADOC: [from:int]: The starting value of each die [1].
PARAM JAVADOC: [<roleType>]: The owner of the dice [Shared].
PARAM JAVADOC: num:int: The number of dice in the set.
PARAM JAVADOC: [biased:{int}]: The biased values of each die.
EXAMPLE: (dice d:2 from:0 num:4)
REMARKS: Used for any dice game to define a set of dice. Only the set of dice can be rolled.
TYPE: game.equipment.container.other.Hand
TYPE JAVADOC: Defines a hand of a player.
NEW CTOR
(hand <roleType> [size:int])
PARAM JAVADOC: <roleType>: The owner of the hand.
PARAM JAVADOC: [size:int]: The numbers of sites in the hand.
EXAMPLE: (hand Each size:5)
REMARKS: For any game with components outside of the board.
TYPE: game.equipment.other.Dominoes
TYPE JAVADOC: Defines a dominoes set.
NEW CTOR
(dominoes [upTo:int])
PARAM JAVADOC: [upTo:int]: The number of dominoes [6].
EXAMPLE: (dominoes)
TYPE: game.equipment.other.Hints
TYPE JAVADOC: Defines the hints of a deduction puzzle.
NEW CTOR
(hints [<string>] {<hint>} [<siteType>])
PARAM JAVADOC: [<string>]: The name of these hints.
PARAM JAVADOC: {<hint>}: The different hints.
PARAM JAVADOC: [<siteType>]: The graph element type of the sites.
EXAMPLE: (hints { (hint {0 5 10 15} 3 ) (hint {1 2 3 4} 4 ) (hint {6 11 16} 3 ) (hint {7 8 9 12 13 14} 4 ) (hint {17 18 19} 3 ) (hint {20 21 22} 3 ) (hint {23 24} 1 ) })*
REMARKS: Used for any deduction puzzle with hints.
TYPE: game.equipment.other.Map
TYPE JAVADOC: Defines a map between two locations or integers.
NEW CTOR
(map [<string>] {<pair>})
PARAM JAVADOC: [<string>]: The name of the map ["Map"].
PARAM JAVADOC: {<pair>}: The pairs of each map.
EXAMPLE: (map "Entry" { (pair P1 "D1") (pair P2 "E8") (pair P3 "H4") (pair P4 "A5")})
EXAMPLE: (map { (pair 5 19) (pair 7 9) (pair 34 48) (pair 36 38) } )
EXAMPLE: (map {(pair P1 P4) (pair P2 P5) (pair P3 P6) (pair P4 P1) (pair P5 P2) (pair P6 P3)})
NEW CTOR
(map [<string>] {<int>} {<int>})
PARAM JAVADOC: [<string>]: The name of the map ["Map"].
PARAM JAVADOC: {<int>}: The keys of the map.
PARAM JAVADOC: {<int>}: The values of the map.
EXAMPLE: (map {1..9} {1 2 4 8 16 32 64 128 256})
REMARKS: Used to map a site to another or to map an integer to another.
TYPE: game.equipment.other.Regions
TYPE JAVADOC: Defines a static region on the board.
NEW CTOR
(regions [<string>] [<roleType>] ({int}  | <region>  | {<region>}  | <regionTypeStatic>  | {<regionTypeStatic>}) [<string>])
PARAM JAVADOC: [<string>]: The name of the region ["Region" + owner index].
PARAM JAVADOC: [<roleType>]: The owner of the region [P1].
PARAM JAVADOC: {int}: The sites included in the region.
PARAM JAVADOC: <region>: The region function corresponding to the region.
PARAM JAVADOC: {<region>}: The region functions corresponding to the region.
PARAM JAVADOC: <regionTypeStatic>: Pre-computed static region corresponding to this region.
PARAM JAVADOC: {<regionTypeStatic>}: Pre-computed static regions corresponding to this region.
PARAM JAVADOC: [<string>]: Name of this hint region (for deduction puzzles).
EXAMPLE: (regions P1 { (sites Side NE) (sites Side SW) } )
EXAMPLE: (regions "Replay" {14 24 43 53})
EXAMPLE: (regions "Traps" (sites {"C3" "C6" "F3" "F6"}))
TYPE: game.functions.booleans.ToBool
TYPE JAVADOC: Converts a IntFunction or a FloatFunction to a boolean (false if 0, else  true).
NEW CTOR
(toBool (<int>  | <floatFunction>))
PARAM JAVADOC: <int>: The int function.
PARAM JAVADOC: <floatFunction>: The float function.
EXAMPLE: (toBool (count Moves))
EXAMPLE: (toBool (sqrt 2))
TYPE: game.functions.booleans.all.All
TYPE JAVADOC: Returns whether all aspects of the specified query are true.
NEW CTOR
(all Groups [<siteType>] [<direction>] [of:<boolean>] If:<boolean>)
PARAM JAVADOC: [<siteType>]: The type of the graph elements of the group.
PARAM JAVADOC: [<direction>]: The directions of the connection between elements in the group [Adjacent].
PARAM JAVADOC: [of:<boolean>]: The condition on the pieces to include in the group [(= (to) (mover))].
PARAM JAVADOC: If:<boolean>: The condition for each group to verify.
EXAMPLE: (all Groups if:(= 3 (count Sites in:(sites))))
NEW CTOR
(all Values <intArrayFunction> If:<boolean>)
PARAM JAVADOC: <intArrayFunction>: The array to check.
PARAM JAVADOC: If:<boolean>: The condition to check.
EXAMPLE: (all Values (values Remembered) if:(> 2 (value)))
NEW CTOR
(all <allSitesType> <region> If:<boolean>)
PARAM JAVADOC: <allSitesType>: The query type to perform.
PARAM JAVADOC: <region>: The region to check.
PARAM JAVADOC: If:<boolean>: The condition to check.
EXAMPLE: (all Sites (sites Occupied by:Mover) if:(= 2 (size Stack at:(site))))
NEW CTOR
(all <allSimpleType>)
PARAM JAVADOC: <allSimpleType>: The query type to perform.
EXAMPLE: (all DiceUsed)
EXAMPLE: (all Passed)
EXAMPLE: (all DiceEqual)
TYPE: game.functions.booleans.all.AllSimpleType
TYPE JAVADOC: Defines the query types that can be used for an {\tt (all ...)} test with no parameter.
CONST JAVADOC: DiceUsed: Returns whether all the dice have been used in the current turn.
CONST JAVADOC: DiceEqual: Returns whether all the dice are equal when they are rolled.
CONST JAVADOC: Passed: Returns whether all players have passed in succession.
TYPE: game.functions.booleans.all.AllSitesType
TYPE JAVADOC: Defines the query types that can be used for an {\tt (all ...)} test related to sites.
CONST JAVADOC: Sites: Returns whether all the sites satisfy a condition.
CONST JAVADOC: Different: Returns whether all the sites are different.
TYPE: game.functions.booleans.can.Can
TYPE JAVADOC: Returns whether a given property can be achieved in the current game state.
NEW CTOR
(can Move <moves>)
PARAM JAVADOC: <moves>: List of moves.
EXAMPLE: (can Move (forEach Piece))
TYPE: game.functions.booleans.deductionPuzzle.ForAll
TYPE JAVADOC: Returns true if the constraint is satisfied for each element.
NEW CTOR
(forAll <puzzleElementType> <boolean>)
PARAM JAVADOC: <puzzleElementType>: The type of the graph element.
PARAM JAVADOC: <boolean>: The constraint to check.
EXAMPLE: (forAll Hint (is Count (sites Around (from) includeSelf:True) of:1 (hint) ) )
REMARKS: This is used to test a constraint on each vertex, edge, face or site with a hint. This works only for deduction puzzles.
TYPE: game.functions.booleans.deductionPuzzle.all.All
TYPE JAVADOC: Whether the specified query is all true for a deduction puzzle.
NEW CTOR
(all Different [<siteType>] [<region>] ([except:<int>]  | [excepts:{<int>}]))
PARAM JAVADOC: [<siteType>]: Type of graph elements to return [Cell].
PARAM JAVADOC: [<region>]: The region to check [Regions].
PARAM JAVADOC: [except:<int>]: The exception on the test.
PARAM JAVADOC: [excepts:{<int>}]: The exceptions on the test.
EXAMPLE: (all Different)
EXAMPLE: (all Different except:0)
TYPE: game.functions.booleans.deductionPuzzle.is.Is
TYPE JAVADOC: Whether the specified query is true for a deduction puzzle.
NEW CTOR
(is Solved)
EXAMPLE: (is Solved)
NEW CTOR
(is Unique [<siteType>])
PARAM JAVADOC: [<siteType>]: The graph element type [Cell].
EXAMPLE: (is Unique)
NEW CTOR
(is <isPuzzleRegionResultType> [<siteType>] [<region>] [of:<int>] [<string>] <int>)
PARAM JAVADOC: <isPuzzleRegionResultType>: The query type to perform.
PARAM JAVADOC: [<siteType>]: The graph element of the region [Default SiteType of the board].
PARAM JAVADOC: [<region>]: The region [Regions].
PARAM JAVADOC: [of:<int>]: The index of the piece [1].
PARAM JAVADOC: [<string>]: The name of the region to check.
PARAM JAVADOC: <int>: The result to check.
EXAMPLE: (is Count (sites All) of:1 8)
EXAMPLE: (is Sum 5)
TYPE: game.functions.booleans.deductionPuzzle.is.IsPuzzleRegionResultType
TYPE JAVADOC: Defines the types of Is test for puzzle according to region and a specific result to check.
CONST JAVADOC: Count: To check if the count of a region is equal to the result.
CONST JAVADOC: Sum: To check if the sum of a region is equal to the result.
TYPE: game.functions.booleans.is.Is
TYPE JAVADOC: Returns whether the specified query about the game state is true or not.
NEW CTOR
(is <isAngleType> [<siteType>] at:<int> <boolean> <boolean>)
PARAM JAVADOC: <isAngleType>: The type of query to perform.
PARAM JAVADOC: [<siteType>]: The graph element type [default of the board].
PARAM JAVADOC: at:<int>: The site to look the angle.
PARAM JAVADOC: <boolean>: The condition on the left site.
PARAM JAVADOC: <boolean>: The condition on the right site.
EXAMPLE: (is Acute at:(last To) (is Enemy (who at:(site))) (is Enemy (who at:(site))))
NEW CTOR
(is Hidden [<hiddenData>] [<siteType>] at:<int> [level:<int>] (to:<player>  | To:<roleType>))
PARAM JAVADOC: [<hiddenData>]: The type of hidden data [Invisible].
PARAM JAVADOC: [<siteType>]: The graph element type [default of the board].
PARAM JAVADOC: at:<int>: The site to set the hidden information.
PARAM JAVADOC: [level:<int>]: The level to set the hidden information [0].
PARAM JAVADOC: to:<player>: The player with these hidden information.
PARAM JAVADOC: To:<roleType>: The roleType with these hidden information.
EXAMPLE: (is Hidden at:(to) to:Mover)
NEW CTOR
(is Repeat [<repetitionType>])
PARAM JAVADOC: [<repetitionType>]: The type of repetition [Positional].
EXAMPLE: (is Repeat Positional)
NEW CTOR
(is Pattern {<stepType>} [<siteType>] [from:<int>] ([what:<int>]  | [whats:{<int>}]))
PARAM JAVADOC: {<stepType>}: The walk describing the pattern.
PARAM JAVADOC: [<siteType>]: The type of the site from to detect the pattern.
PARAM JAVADOC: [from:<int>]: The site from to detect the pattern [(last To)].
PARAM JAVADOC: [what:<int>]: The piece to check in the pattern [piece in from].
PARAM JAVADOC: [whats:{<int>}]: The sequence of pieces to check in the pattern [piece in from].
EXAMPLE: (is Pattern {F R F R F})
NEW CTOR
(is <isTreeType> (<player>  | <roleType>))
PARAM JAVADOC: <isTreeType>: The type of query to perform.
PARAM JAVADOC: <player>: Data about the owner of the tree.
PARAM JAVADOC: <roleType>: RoleType of the owner of the tree.
EXAMPLE: (is Tree Mover)
EXAMPLE: (is SpanningTree Mover)
EXAMPLE: (is CaterpillarTree Mover)
EXAMPLE: (is TreeCentre Mover)
NEW CTOR
(is RegularGraph (<player>  | <roleType>) ([k:<int>] ([odd:<boolean>]  | [even:<boolean>]))
PARAM JAVADOC: <player>: The owner of the tree.
PARAM JAVADOC: <roleType>: RoleType of the owner of the tree.
PARAM JAVADOC: [k:<int>]: The parameter of k-regular graph.
PARAM JAVADOC: [odd:<boolean>]: Flag to recognise the k (in k-regular graph) is odd or not.
PARAM JAVADOC: [even:<boolean>]: Flag to recognise the k (in k-regular graph) is even or not.
EXAMPLE: (is RegularGraph Mover)
NEW CTOR
(is <isPlayerType> (<int>  | <roleType>))
PARAM JAVADOC: <isPlayerType>: The type of query to perform.
PARAM JAVADOC: <int>: Index of the player or the component.
PARAM JAVADOC: <roleType>: The Role type corresponding to the index.
EXAMPLE: (is Enemy (who at:(last To)))
EXAMPLE: (is Prev Mover)
NEW CTOR
(is Triggered <string> (<int>  | <roleType>))
PARAM JAVADOC: <string>: The event triggered.
PARAM JAVADOC: <int>: Index of the player or the component.
PARAM JAVADOC: <roleType>: The Role type corresponding to the index.
EXAMPLE: (is Triggered "Lost" Next)
NEW CTOR
(is <isSimpleType>)
PARAM JAVADOC: <isSimpleType>: The type of query to perform.
EXAMPLE: (is Cycle)
EXAMPLE: (is Full)
NEW CTOR
(is Crossing <int> <int>)
PARAM JAVADOC: <int>: The index of the first edge.
PARAM JAVADOC: <int>: The index of the second edge.
EXAMPLE: (is Crossing (last To) (to))
NEW CTOR
(is <isStringType> <string>)
PARAM JAVADOC: <isStringType>: The type of query to perform.
PARAM JAVADOC: <string>: The string to check.
EXAMPLE: (is Decided "End")
EXAMPLE: (is Proposed "End")
NEW CTOR
(is <isGraphType> <siteType>)
PARAM JAVADOC: <isGraphType>: The type of query to perform.
PARAM JAVADOC: <siteType>: The graph element type [default SiteType of the board].
EXAMPLE: (is LastFrom Vertex)
NEW CTOR
(is <isIntegerType> [<int>])
PARAM JAVADOC: <isIntegerType>: The type of query to perform.
PARAM JAVADOC: [<int>]: The value.
EXAMPLE: (is Even (last To))
EXAMPLE: (is Visited (last To))
NEW CTOR
(is <isComponentType> [<int>] [<siteType>] ([at:<int>]  | [in:<region>]) [<moves>])
PARAM JAVADOC: <isComponentType>: The type of query to perform.
PARAM JAVADOC: [<int>]: The piece possibly under threat.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [at:<int>]: The location of the piece to check.
PARAM JAVADOC: [in:<region>]: The locations of the piece to check.
PARAM JAVADOC: [<moves>]: The specific moves used to threat.
EXAMPLE: (is Threatened (id "King" Mover) at:(to))
NEW CTOR
(is Related <relationType> [<siteType>] <int> (<int>  | <region>))
PARAM JAVADOC: <relationType>: The type of relation to check between the graph elements.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: <int>: The first site.
PARAM JAVADOC: <int>: The second site.
PARAM JAVADOC: <region>: The region of the second site.
EXAMPLE: (is Related Adjacent (from) (sites Occupied by:Next))
NEW CTOR
(is Target ([<int>]  | [<string>]) {int} ([int]  | [{int}]))
PARAM JAVADOC: [<int>]: The index of the container [0].
PARAM JAVADOC: [<string>]: The name of the container ["Board"].
PARAM JAVADOC: {int}: The configuration defined by the indices of each piece.
PARAM JAVADOC: [int]: The specific site of the configuration.
PARAM JAVADOC: [{int}]: The specific sites of the configuration.
EXAMPLE: (is Target {2 2 2 2 0 0 1 1 1 1})
NEW CTOR
(is <isConnectType> [<int>] [<siteType>] [at:<int>] [<direction>] ({<region>}  | <roleType>  | <regionTypeStatic>))
PARAM JAVADOC: <isConnectType>: The type of query to perform.
PARAM JAVADOC: [<int>]: The minimum number of regions to connect [All of them].
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [at:<int>]: The specific starting position need to connect.
PARAM JAVADOC: [<direction>]: The directions of the connected pieces used to connect the region [Adjacent].
PARAM JAVADOC: {<region>}: The disjointed regions set, which need to use for connection.
PARAM JAVADOC: <roleType>: The role of the player.
PARAM JAVADOC: <regionTypeStatic>: Type of the regions to connect.
EXAMPLE: (is Blocked Mover)
EXAMPLE: (is Connected Mover)
EXAMPLE: (is Connected { (sites Side S) (sites Side NW) (sites Side NE)})
NEW CTOR
(is Line [<siteType>] <int> [<absoluteDirection>] ([through:<int>]  | [throughAny:<region>]) ([<roleType>] ([what:<int>]  | [whats:{<int>}]) [exact:<boolean>] [contiguous:<boolean>] [If:<boolean>] [byLevel:<boolean>] [top:<boolean>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: <int>: Minimum length of lines.
PARAM JAVADOC: [<absoluteDirection>]: Direction category to which potential lines must belong [Adjacent].
PARAM JAVADOC: [through:<int>]: Location through which the line must pass.
PARAM JAVADOC: [throughAny:<region>]: The line must pass through at least one of these sites.
PARAM JAVADOC: [<roleType>]: The owner of the pieces making a line [Mover].
PARAM JAVADOC: [what:<int>]: The index of the component composing the line [(mover)].
PARAM JAVADOC: [whats:{<int>}]: The indices of the components composing the line.
PARAM JAVADOC: [exact:<boolean>]: If true, then lines cannot exceed minimum length [False].
PARAM JAVADOC: [contiguous:<boolean>]: If true, the line has to be contiguous [True].
PARAM JAVADOC: [If:<boolean>]: The condition on each site on the line [True].
PARAM JAVADOC: [byLevel:<boolean>]: If true, then lines are detected in using the level in a stack [False].
PARAM JAVADOC: [top:<boolean>]: If true, then lines are detected in using only the top level in a stack [False].
EXAMPLE: (is Line 3)
EXAMPLE: (is Line 5 Orthogonal if:(not (is In (to) (sites Mover))))
NEW CTOR
(is Loop [<siteType>] ([surround:<roleType>]  | [{<roleType>}]) [<direction>] [<int>] ([<int>]  | [<region>]) [path:<boolean>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [surround:<roleType>]: Used to define the inside condition of the loop.
PARAM JAVADOC: [{<roleType>}]: The list of items inside the loop.
PARAM JAVADOC: [<direction>]: The direction of the connection [Adjacent].
PARAM JAVADOC: [<int>]: The owner of the looping pieces [Mover].
PARAM JAVADOC: [<int>]: The starting point of the loop [(last To)].
PARAM JAVADOC: [<region>]: The region to start to detect the loop.
PARAM JAVADOC: [path:<boolean>]: Whether to detect loops in the paths of pieces (e.g. Trax).
EXAMPLE: (is Loop)
EXAMPLE: (is Loop (mover) path:True)
NEW CTOR
(is Path <siteType> [from:<int>] (<player>  | <roleType>) length:<rangeFunction> [closed:<boolean>])
PARAM JAVADOC: <siteType>: The graph element type [default SiteType of the board].
PARAM JAVADOC: [from:<int>]: The site to look the path [(last To)].
PARAM JAVADOC: <player>: The owner of the pieces on the path.
PARAM JAVADOC: <roleType>: The role of the player owning the pieces on the path.
PARAM JAVADOC: length:<rangeFunction>: The range size of the path.
PARAM JAVADOC: [closed:<boolean>]: Is used to detect closed components [False].
EXAMPLE: (is Path Edge Mover length:(exact 4))
NEW CTOR
(is <isSiteType> [<siteType>] <int>)
PARAM JAVADOC: <isSiteType>: The type of query to perform.
PARAM JAVADOC: [<siteType>]: Graph element type [default SiteType of the board].
PARAM JAVADOC: <int>: The index of the site.
EXAMPLE: (is Empty (to))
EXAMPLE: (is Occupied Vertex (to))
NEW CTOR
(is In ([<int>]  | [{<int>}]) (<region> (<intArrayFunction>))
PARAM JAVADOC: [<int>]: The site [(to)].
PARAM JAVADOC: [{<int>}]: The sites.
PARAM JAVADOC: <region>: The region.
PARAM JAVADOC: <intArrayFunction>: The array of integers.
EXAMPLE: (is In {(last To) (last From)} (sites Mover))
EXAMPLE: (is In (last To) (sites Mover))
TYPE: game.functions.booleans.is.IsAngleType
TYPE JAVADOC: Defines the types of Is for a connected or blocked test.
CONST JAVADOC: Acute: To check if a site and two other sites checking conditions form an acute angle (< 90 degrees).
CONST JAVADOC: Right: To check if a site and two other sites checking conditions form a right angle (= 90 degrees).
CONST JAVADOC: Obtuse: To check if a site and two other sites checking conditions form an obtuse angle (> 90 degrees).
CONST JAVADOC: Reflex: To check if a site and two other sites checking conditions form a reflex angle (> 180 degrees).
TYPE: game.functions.booleans.is.IsComponentType
TYPE JAVADOC: Defines the types of Is test according to a component and a site/region.
CONST JAVADOC: Threatened: To check if a location is under threat.
CONST JAVADOC: Within: To check if a specific piece is on the designed region.
TYPE: game.functions.booleans.is.IsConnectType
TYPE JAVADOC: Defines the types of Is for a connected or blocked test.
CONST JAVADOC: Connected: To check if regions are connected by pieces owned by a player.
CONST JAVADOC: Blocked: To check if a player can not connect regions with his pieces.
TYPE: game.functions.booleans.is.IsGraphType
TYPE JAVADOC: Defines the types of Is test according to a graph element.
CONST JAVADOC: LastFrom: Check the graph element type of the ``from'' location of the last move.
CONST JAVADOC: LastTo: Check the graph element type of the ``to'' location of the last move.
TYPE: game.functions.booleans.is.IsIntegerType
TYPE JAVADOC: Defines the types of Is test according to an integer.
CONST JAVADOC: Odd: To check if a value is odd.
CONST JAVADOC: Even: To check if a value is even.
CONST JAVADOC: Visited: To check if a site was already visited by a piece in the same turn.
CONST JAVADOC: SidesMatch: To detect whether the terminus of a tile matches with its neighbors.
CONST JAVADOC: PipsMatch: To detect whether the pips of a domino match its neighbours.
CONST JAVADOC: Flat: To Ensures that in a 3D board, all the pieces in the bottom layer must be  placed so that they do not fall.
CONST JAVADOC: AnyDie: To check if any current die is equal to a specific value.
TYPE: game.functions.booleans.is.IsPlayerType
TYPE JAVADOC: Defines the types of Is test for a player.
CONST JAVADOC: Mover: To check if a player is the mover.
CONST JAVADOC: Next: To check if a player is the next mover.
CONST JAVADOC: Prev: To check if a player is the previous mover.
CONST JAVADOC: Friend: To check if a player is the friend of the mover.
CONST JAVADOC: Enemy: To check if a player is the enemy of the mover.
CONST JAVADOC: Active: To check if a player is active.
TYPE: game.functions.booleans.is.IsSimpleType
TYPE JAVADOC: Defines the types of Is test for a player with no parameter.
CONST JAVADOC: Cycle: To check if the game is repeating the same set of states three times with  exactly the same moves during these states.
CONST JAVADOC: Pending: To check if the state is in pending.
CONST JAVADOC: Full: To check if the board is full.
TYPE: game.functions.booleans.is.IsSiteType
TYPE JAVADOC: Defines the types of Is test for a site.
CONST JAVADOC: Empty: To check if a site is empty.
CONST JAVADOC: Occupied: To check if a site is occupied.
TYPE: game.functions.booleans.is.IsStringType
TYPE JAVADOC: Defines the types of Is test according to a String parameter.
CONST JAVADOC: Proposed: To check if a specific proposition was made.
CONST JAVADOC: Decided: To check if a specific proposition was decided.
TYPE: game.functions.booleans.is.IsTreeType
TYPE JAVADOC: Defines the types of Is test for a regular graph.
CONST JAVADOC: Tree: To check if the induced graph (by adding or deleting edges) is a tree or not.
CONST JAVADOC: SpanningTree: To check if the induced graph (by adding or deleting edges) is a spanning  tree or not.
CONST JAVADOC: CaterpillarTree: To check if the induced graph (by adding or deleting edges) is the largest  caterpillar Tree or not.
CONST JAVADOC: TreeCentre: To check whether the last vertex is the centre of the tree (or sub tree).
TYPE: game.functions.booleans.math.And
TYPE JAVADOC: Returns whether all specified conditions are true.
NEW CTOR
(and <boolean> <boolean>)
PARAM JAVADOC: <boolean>: First condition.
PARAM JAVADOC: <boolean>: Second condition.
EXAMPLE: (and (= (who at:(last To)) (mover)) (!= (who at:(last From)) (mover)))
NEW CTOR
(and {<boolean>})
PARAM JAVADOC: {<boolean>}: The list of conditions to check.
EXAMPLE: (and {(= (who at:(last To)) (mover)) (!= (who at:(last From)) (mover)) (is Pending)})
REMARKS: This test returns false as soon as any of its conditions return false, so it pays to test conditions that are faster and more likely to fail first.
TYPE: game.functions.booleans.math.Equals
TYPE JAVADOC: Tests if valueA = valueB, if all the integers in the list are equals, or if  the result of the two regions functions are equals.
NEW CTOR
(= <int> (<int>  | <roleType>))
PARAM JAVADOC: <int>: The first value.
PARAM JAVADOC: <int>: The second value.
PARAM JAVADOC: <roleType>: The second owner value of this role.
EXAMPLE: (= (mover) 1)
NEW CTOR
(= <region> <region>)
PARAM JAVADOC: <region>: The first region function.
PARAM JAVADOC: <region>: The second region function.
EXAMPLE: (= (sites Occupied by:Mover) (sites Next))
TYPE: game.functions.booleans.math.Ge
TYPE JAVADOC: Tests if valueA >= valueB.
NEW CTOR
(>= <int> <int>)
PARAM JAVADOC: <int>: The left value.
PARAM JAVADOC: <int>: The right value.
EXAMPLE: (>= (mover) (next))
TYPE: game.functions.booleans.math.Gt
TYPE JAVADOC: Tests if valueA $>$ valueB.
NEW CTOR
(> <int> <int>)
PARAM JAVADOC: <int>: The left value.
PARAM JAVADOC: <int>: The right value.
EXAMPLE: (> (mover) (next))
TYPE: game.functions.booleans.math.If
TYPE JAVADOC: Tests if the condition is true, the function returns the first value, if not  it returns the second value.
NEW CTOR
(if <boolean> <boolean> [<boolean>])
PARAM JAVADOC: <boolean>: The condition to check.
PARAM JAVADOC: <boolean>: The boolean returned if the condition is true.
PARAM JAVADOC: [<boolean>]: The boolean returned if the condition is false.
EXAMPLE: (if (is Mover (next)) (is Pending))
TYPE: game.functions.booleans.math.Le
TYPE JAVADOC: Tests if valueA <= valueB.
NEW CTOR
(<= <int> <int>)
PARAM JAVADOC: <int>: The left value.
PARAM JAVADOC: <int>: The right value.
EXAMPLE: (<= (mover) (next))
TYPE: game.functions.booleans.math.Lt
TYPE JAVADOC: Tests if valueA $<$ valueB.
NEW CTOR
(< <int> <int>)
PARAM JAVADOC: <int>: The left value.
PARAM JAVADOC: <int>: The right value.
EXAMPLE: (< (mover) (next))
TYPE: game.functions.booleans.math.Not
TYPE JAVADOC: Tests the not condition.
NEW CTOR
(not <boolean>)
PARAM JAVADOC: <boolean>: The condition.
EXAMPLE: (not (is In (last To) (sites Mover)))
TYPE: game.functions.booleans.math.NotEqual
TYPE JAVADOC: Tests if valueA $=/= valueB.
NEW CTOR
(!= <int> (<int>  | <roleType>))
PARAM JAVADOC: <int>: The first value.
PARAM JAVADOC: <int>: The second value.
PARAM JAVADOC: <roleType>: The second owner value of this role.
EXAMPLE: (!= (mover) (next))
NEW CTOR
(!= <region> <region>)
PARAM JAVADOC: <region>: The left value.
PARAM JAVADOC: <region>: The right value.
EXAMPLE: (!= (sites Occupied by:Mover) (sites Mover))
TYPE: game.functions.booleans.math.Or
TYPE JAVADOC: Tests the Or boolean node. True if at least one condition is true between the two conditions.
NEW CTOR
(or <boolean> <boolean>)
PARAM JAVADOC: <boolean>: First condition.
PARAM JAVADOC: <boolean>: Second condition.
EXAMPLE: (or (= (who at:(last To)) (mover) )(!= (who at:(last From)) (mover)))
NEW CTOR
(or {<boolean>})
PARAM JAVADOC: {<boolean>}: The list of conditions.
EXAMPLE: (or {(= (who at:(last To)) (mover)) (!= (who at:(last From)) (mover)) (is Pending)})
TYPE: game.functions.booleans.math.Xor
TYPE JAVADOC: Tests the Xor boolean node.
NEW CTOR
(xor <boolean> <boolean>)
PARAM JAVADOC: <boolean>: First condition.
PARAM JAVADOC: <boolean>: Second condition.
EXAMPLE: (xor (= (who at:(last To)) (mover)) (!= (who at:(last From)) (mover)))
TYPE: game.functions.booleans.no.No
TYPE JAVADOC: Returns whether a certain query about the game state is false.
NEW CTOR
(no Pieces [<siteType>] ([<roleType>]  | [of:<int>]) [<string>] [in:<region>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<roleType>]: The role of the player [All].
PARAM JAVADOC: [of:<int>]: The index of the player.
PARAM JAVADOC: [<string>]: The name of the container from which to count the number of sites or the name of the piece to count only pieces of that type.
PARAM JAVADOC: [in:<region>]: The region where to count the pieces.
EXAMPLE: (no Pieces Mover)
NEW CTOR
(no Moves <roleType>)
PARAM JAVADOC: <roleType>: The role of the player.
EXAMPLE: (no Moves Mover)
TYPE: game.functions.booleans.was.Was
TYPE JAVADOC: Returns whether a specified event has occurred in the game.
NEW CTOR
(was Pass)
EXAMPLE: (was Pass)
TYPE: game.functions.dim.BaseDimFunction
TYPE JAVADOC: Common functionality for DimFunction - override where necessary.
SUBCLASS: game.functions.dim.math.Abs
SUBCLASS: game.functions.dim.math.Add
SUBCLASS: game.functions.dim.math.Div
SUBCLASS: game.functions.dim.math.Max
SUBCLASS: game.functions.dim.math.Min
SUBCLASS: game.functions.dim.math.Mul
SUBCLASS: game.functions.dim.math.Pow
SUBCLASS: game.functions.dim.math.Sub
TYPE: game.functions.dim.math.Abs
TYPE JAVADOC: Return the absolute value of a dim.
NEW CTOR
(abs <dimFunction>)
PARAM JAVADOC: <dimFunction>: The value.
EXAMPLE: (abs (- 8 5))
TYPE: game.functions.dim.math.Add
TYPE JAVADOC: Adds many values.
NEW CTOR
(+ <dimFunction> <dimFunction>)
PARAM JAVADOC: <dimFunction>: The first value.
PARAM JAVADOC: <dimFunction>: The second value.
EXAMPLE: (+ 5 2)
NEW CTOR
(+ {<dimFunction>})
PARAM JAVADOC: {<dimFunction>}: The list of the values.
EXAMPLE: (+ {10 2 5})
TYPE: game.functions.dim.math.Div
TYPE JAVADOC: To divide a value by another.
NEW CTOR
(/ <dimFunction> <dimFunction>)
PARAM JAVADOC: <dimFunction>: The value to divide.
PARAM JAVADOC: <dimFunction>: To divide by b.
EXAMPLE: (/ 4 2)
REMARKS: The result will be an integer and round down the result.
TYPE: game.functions.dim.math.Max
TYPE JAVADOC: Returns the maximum of two specified values.
NEW CTOR
(max <dimFunction> <dimFunction>)
PARAM JAVADOC: <dimFunction>: The first value.
PARAM JAVADOC: <dimFunction>: The second value.
EXAMPLE: (max 9 3)
TYPE: game.functions.dim.math.Min
TYPE JAVADOC: Returns the minimum of two specified values.
NEW CTOR
(min <dimFunction> <dimFunction>)
PARAM JAVADOC: <dimFunction>: The first value.
PARAM JAVADOC: <dimFunction>: The second value.
EXAMPLE: (min 20 3)
TYPE: game.functions.dim.math.Mul
TYPE JAVADOC: Returns to multiple of values.
NEW CTOR
(* <dimFunction> <dimFunction>)
PARAM JAVADOC: <dimFunction>: The first value.
PARAM JAVADOC: <dimFunction>: The second value.
EXAMPLE: (* 6 2)
NEW CTOR
(* {<dimFunction>})
PARAM JAVADOC: {<dimFunction>}: The list of values.
EXAMPLE: (* {3 2 5})
TYPE: game.functions.dim.math.Pow
TYPE JAVADOC: Computes the first parameter to the power of the second parameter.
NEW CTOR
(^ <dimFunction> <dimFunction>)
PARAM JAVADOC: <dimFunction>: The value.
PARAM JAVADOC: <dimFunction>: The power.
EXAMPLE: (^ 2 2)
TYPE: game.functions.dim.math.Sub
TYPE JAVADOC: Returns the subtraction A minus B.
NEW CTOR
(- <dimFunction> <dimFunction>)
PARAM JAVADOC: <dimFunction>: The value A.
PARAM JAVADOC: <dimFunction>: The value B.
EXAMPLE: (- 5 1)
TYPE: game.functions.directions.Difference
TYPE JAVADOC: Returns the difference of two set of directions.
NEW CTOR
(difference <direction> <direction>)
PARAM JAVADOC: <direction>: The original directions.
PARAM JAVADOC: <direction>: The directions to remove.
EXAMPLE: (difference Orthogonal N)
TYPE: game.functions.directions.Directions
TYPE JAVADOC: Converts the directions with absolute directions or relative directions  according to the direction of the piece/player to a list of integers.
NEW CTOR
(directions (<absoluteDirection>  | {<absoluteDirection>}))
PARAM JAVADOC: <absoluteDirection>: The absolute direction.
PARAM JAVADOC: {<absoluteDirection>}: The absolute directions.
EXAMPLE: (directions Orthogonal)
NEW CTOR
(directions ([<relativeDirection>]  | [{<relativeDirection>}]) [of:<relationType>] [bySite:<boolean>])
PARAM JAVADOC: [<relativeDirection>]: The relative direction.
PARAM JAVADOC: [{<relativeDirection>}]: The relative directions.
PARAM JAVADOC: [of:<relationType>]: The type of directions to return [Adjacent].
PARAM JAVADOC: [bySite:<boolean>]: If true, the directions to return are computed according to the supported directions of the site and if not according to all the directions supported by the board [False].
EXAMPLE: (directions Forwards)
NEW CTOR
(directions <siteType> from:<int> to:<int>)
PARAM JAVADOC: <siteType>: The type of the graph element.
PARAM JAVADOC: from:<int>: The 'from' site.
PARAM JAVADOC: to:<int>: The 'to' site.
EXAMPLE: (directions Cell from:(last To) to:(last From)))
NEW CTOR
(directions Random <direction> num:<int>)
PARAM JAVADOC: <direction>: The direction function.
PARAM JAVADOC: num:<int>: The number of directions to return (if possible).
EXAMPLE: (directions Random Orthogonal num:2)
TYPE: game.functions.directions.If
TYPE JAVADOC: Returns whether the specified directions are satisfied for the current game.
NEW CTOR
(if <boolean> <direction> <direction>)
PARAM JAVADOC: <boolean>: The condition to verify.
PARAM JAVADOC: <direction>: The directions if the condition is verified.
PARAM JAVADOC: <direction>: The directions if the condition is not verified.
EXAMPLE: (if (is Mover P1) Orthogonal Diagonal)
TYPE: game.functions.directions.Union
TYPE JAVADOC: Returns the union of two set of directions.
NEW CTOR
(union <direction> <direction>)
PARAM JAVADOC: <direction>: The first set of directions.
PARAM JAVADOC: <direction>: The second set of directions.
EXAMPLE: (union Orthogonal Diagonal)
TYPE: game.functions.floats.ToFloat
TYPE JAVADOC: Converts a BooleanFunction or an IntFunction to a float.
NEW CTOR
(toFloat (<boolean>  | <int>))
PARAM JAVADOC: <boolean>: The boolean function.
PARAM JAVADOC: <int>: The int function.
EXAMPLE: (toFloat (is Full))
EXAMPLE: (toFloat (count Moves))
TYPE: game.functions.floats.math.Abs
TYPE JAVADOC: Return the absolute value of a float.
NEW CTOR
(abs <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value.
EXAMPLE: (abs (- 8.2 5.1))
TYPE: game.functions.floats.math.Add
TYPE JAVADOC: Adds many values.
NEW CTOR
(+ <floatFunction> <floatFunction>)
PARAM JAVADOC: <floatFunction>: The first value.
PARAM JAVADOC: <floatFunction>: The second value.
EXAMPLE: (+ 5.5 2.32)
NEW CTOR
(+ {<floatFunction>})
PARAM JAVADOC: {<floatFunction>}: The list of the values.
EXAMPLE: (+ {10.1 2.8 5.1})
TYPE: game.functions.floats.math.Cos
TYPE JAVADOC: Computes the cosine of a value.
NEW CTOR
(cos <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value.
EXAMPLE: (cos 5.5)
TYPE: game.functions.floats.math.Div
TYPE JAVADOC: To divide a value by another.
NEW CTOR
(/ <floatFunction> <floatFunction>)
PARAM JAVADOC: <floatFunction>: The first value.
PARAM JAVADOC: <floatFunction>: The second value.
EXAMPLE: (/ 5.5 2.32)
TYPE: game.functions.floats.math.Exp
TYPE JAVADOC: Computes the exponential of a value.
NEW CTOR
(exp <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value.
EXAMPLE: (exp 5.5)
TYPE: game.functions.floats.math.Log
TYPE JAVADOC: Computes the logarithm of a value.
NEW CTOR
(log <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value.
EXAMPLE: (log 5.5)
TYPE: game.functions.floats.math.Log10
TYPE JAVADOC: Computes the logarithm 10 of a value.
NEW CTOR
(log10 <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value.
EXAMPLE: (log10 5.5)
TYPE: game.functions.floats.math.Max
TYPE JAVADOC: Returns the maximum of specified values.
NEW CTOR
(max <floatFunction> <floatFunction>)
PARAM JAVADOC: <floatFunction>: The first value.
PARAM JAVADOC: <floatFunction>: The second value.
EXAMPLE: (max 5.5 2.32)
NEW CTOR
(max {<floatFunction>})
PARAM JAVADOC: {<floatFunction>}: The list of the values.
EXAMPLE: (max {10.1 2.8 5.1})
TYPE: game.functions.floats.math.Min
TYPE JAVADOC: Returns the minimum of specified values.
NEW CTOR
(min <floatFunction> <floatFunction>)
PARAM JAVADOC: <floatFunction>: The first value.
PARAM JAVADOC: <floatFunction>: The second value.
EXAMPLE: (min 5.5 2.32)
NEW CTOR
(min {<floatFunction>})
PARAM JAVADOC: {<floatFunction>}: The list of the values.
EXAMPLE: (min {10.1 2.8 5.1})
TYPE: game.functions.floats.math.Mul
TYPE JAVADOC: Multiply many values.
NEW CTOR
(* <floatFunction> <floatFunction>)
PARAM JAVADOC: <floatFunction>: The first value.
PARAM JAVADOC: <floatFunction>: The second value.
EXAMPLE: (* 5.5 2.32)
NEW CTOR
(* {<floatFunction>})
PARAM JAVADOC: {<floatFunction>}: The list of the values.
EXAMPLE: (* {10.1 2.8 5.1})
TYPE: game.functions.floats.math.Pow
TYPE JAVADOC: Computes the first parameter to the power of the second parameter.
NEW CTOR
(^ <floatFunction> <floatFunction>)
PARAM JAVADOC: <floatFunction>: The first value.
PARAM JAVADOC: <floatFunction>: The second value.
EXAMPLE: (^ 5.5 2.32)
TYPE: game.functions.floats.math.Sin
TYPE JAVADOC: Computes the sine of a value.
NEW CTOR
(sin <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value.
EXAMPLE: (sin 5.5)
TYPE: game.functions.floats.math.Sqrt
TYPE JAVADOC: Computes the square root of a value.
NEW CTOR
(sqrt <floatFunction>)
PARAM JAVADOC: <floatFunction>: The first value.
EXAMPLE: (sqrt 5.5)
TYPE: game.functions.floats.math.Sub
TYPE JAVADOC: Returns the subtraction A minus B.
NEW CTOR
(- <floatFunction> <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value A.
PARAM JAVADOC: <floatFunction>: The value B.
EXAMPLE: (- 5.6 1.1)
TYPE: game.functions.floats.math.Tan
TYPE JAVADOC: Computes the tangent of a value.
NEW CTOR
(tan <floatFunction>)
PARAM JAVADOC: <floatFunction>: The value.
EXAMPLE: (tan 5.5)
TYPE: game.functions.graph.generators.basis.Basis
TYPE JAVADOC: Defines known basis types (i.e. tilings) for board graphs.
SUBCLASS: game.functions.graph.generators.basis.brick.Brick
SUBCLASS: game.functions.graph.generators.basis.celtic.Celtic
SUBCLASS: game.functions.graph.generators.basis.hex.Hex
SUBCLASS: game.functions.graph.generators.basis.quadhex.Quadhex
SUBCLASS: game.functions.graph.generators.basis.square.Square
SUBCLASS: game.functions.graph.generators.basis.tiling.Tiling
SUBCLASS: game.functions.graph.generators.basis.tri.Tri
SUBCLASS: game.functions.graph.generators.shape.concentric.Concentric
SUBCLASS: game.functions.graph.generators.shape.Rectangle
SUBCLASS: game.functions.graph.generators.shape.Spiral
SUBCLASS: game.functions.graph.generators.shape.Wedge
TYPE: game.functions.graph.generators.basis.brick.Brick
TYPE JAVADOC: Defines a board on a brick tiling using 1x2 rectangular brick tiles.
NEW CTOR
(brick [<brickShapeType>] <dimFunction> [<dimFunction>] [trim:<boolean>])
PARAM JAVADOC: [<brickShapeType>]: Board shape [Square].
PARAM JAVADOC: <dimFunction>: First board dimension (size or number of rows).
PARAM JAVADOC: [<dimFunction>]: Second dimension (columns) [rows].
PARAM JAVADOC: [trim:<boolean>]: Whether to clip exposed half bricks [False].
EXAMPLE: (brick Diamond 4 trim:True)
TYPE: game.functions.graph.generators.basis.brick.BrickShapeType
TYPE JAVADOC: Defines known shapes for the square tiling.
CONST JAVADOC: Square: Square board shape.
CONST JAVADOC: Rectangle: Rectangular board shape.
CONST JAVADOC: Diamond: Diamond board shape.
CONST JAVADOC: Prism: Prism board shape.
CONST JAVADOC: Spiral: Spiral board shape.
CONST JAVADOC: Limping: Alternating sides are staggered.
TYPE: game.functions.graph.generators.basis.celtic.Celtic
TYPE JAVADOC: Defines a board based on Celtic knotwork.
NEW CTOR
(celtic <dimFunction> [<dimFunction>])
PARAM JAVADOC: <dimFunction>: Number of rows.
PARAM JAVADOC: [<dimFunction>]: Number of columns.
EXAMPLE: (celtic 3)
NEW CTOR
(celtic (<poly>  | {<dimFunction>}))
PARAM JAVADOC: <poly>: Points defining the board shape.
PARAM JAVADOC: {<dimFunction>}: Length of consecutive sides of outline shape.
EXAMPLE: (celtic (poly { {1 2} {1 6} {3 6} {3 4} {4 4} {4 2} }))
EXAMPLE: (celtic { 4 3 -1 2 3 })
REMARKS: Celtic knotwork typically has a small number of continuous paths crossing the entire area -- usually just one -- making these designs an interesting choice for path-based games.
TYPE: game.functions.graph.generators.basis.hex.Hex
TYPE JAVADOC: Defines a board on a hexagonal tiling.
NEW CTOR
(hex [<hexShapeType>] <dimFunction> [<dimFunction>])
PARAM JAVADOC: [<hexShapeType>]: Board shape [Hexagon].
PARAM JAVADOC: <dimFunction>: Primary board dimension; cells or vertices per side.
PARAM JAVADOC: [<dimFunction>]: Secondary Board dimension; cells or vertices per side.
EXAMPLE: (hex 5)
EXAMPLE: (hex Diamond 11)
EXAMPLE: (hex Rectangle 4 6)
NEW CTOR
(hex (<poly>  | {<dimFunction>}))
PARAM JAVADOC: <poly>: Points defining the board shape.
PARAM JAVADOC: {<dimFunction>}: Side lengths around board in clockwise order.
EXAMPLE: (hex (poly { {1 2} {1 6} {3 6} } ))
EXAMPLE: (hex { 4 3 -1 2 3 })
TYPE: game.functions.graph.generators.basis.hex.HexShapeType
TYPE JAVADOC: Defines known shapes for the hexagonal tiling.
CONST JAVADOC: NoShape: No shape; custom graph.
CONST JAVADOC: Square: Square board shape.
CONST JAVADOC: Rectangle: Rectangular board shape.
CONST JAVADOC: Diamond: Diamond board shape.
CONST JAVADOC: Triangle: Triangular board shape.
CONST JAVADOC: Hexagon: Hexagonal board shape.
CONST JAVADOC: Star: Multi-pointed star shape.
CONST JAVADOC: Limping: Alternating sides are staggered.
CONST JAVADOC: Prism: Diamond shape extended vertically.
TYPE: game.functions.graph.generators.basis.quadhex.Quadhex
TYPE JAVADOC: Defines a ``quadhex'' board.
NEW CTOR
(quadhex <dimFunction> [thirds:<boolean>])
PARAM JAVADOC: <dimFunction>: Number of layers.
PARAM JAVADOC: [thirds:<boolean>]: Whether to split the board into three-subsections [False].
EXAMPLE: (quadhex 4)
REMARKS: The quadhex board is a hexagon tessellated by quadrilaterals, as used for the Three Player Chess board. The number of cells per side will be twice the number of layers.
TYPE: game.functions.graph.generators.basis.square.DiagonalsType
TYPE JAVADOC: Defines how to handle diagonal relations on the Square tiling.
CONST JAVADOC: Implied: Diagonal connections (not edges) between opposite corners.
CONST JAVADOC: Solid: Solid edges between opposite diagonals, which split the square into four triangles.
CONST JAVADOC: SolidNoSplit: Solid edges between opposite diagonals, but do not split the square into four triangles.
CONST JAVADOC: Alternating: Every second diagonal is a solid edge, as per Alquerque boards.
CONST JAVADOC: Concentric: Concentric diagonal rings from the centre.
CONST JAVADOC: Radiating: Diagonals radiating from the centre.
TYPE: game.functions.graph.generators.basis.square.Square
TYPE JAVADOC: Defines a board on a square tiling.
NEW CTOR
(square [<squareShapeType>] <dimFunction> ([diagonals:<diagonalsType>]  | [pyramidal:<boolean>]))
PARAM JAVADOC: [<squareShapeType>]: Board shape [Square].
PARAM JAVADOC: <dimFunction>: Board dimension; cells or vertices per side.
PARAM JAVADOC: [diagonals:<diagonalsType>]: How to handle diagonals between opposite corners [Implied].
PARAM JAVADOC: [pyramidal:<boolean>]: Whether this board allows a square pyramidal stacking.
EXAMPLE: (square Diamond 4)
NEW CTOR
(square (<poly>  | {<dimFunction>}) [diagonals:<diagonalsType>])
PARAM JAVADOC: <poly>: Points defining the board shape.
PARAM JAVADOC: {<dimFunction>}: Length of consecutive sides of outline shape.
PARAM JAVADOC: [diagonals:<diagonalsType>]: How to handle diagonals between opposite corners [Implied].
EXAMPLE: (square (poly { {1 2} {1 6} {3 6} {3 4} {4 4} {4 2} }))
EXAMPLE: (square { 4 3 -1 2 3 })
TYPE: game.functions.graph.generators.basis.square.SquareShapeType
TYPE JAVADOC: Defines known shapes for the square tiling.
CONST JAVADOC: NoShape: No shape; custom graph.
CONST JAVADOC: Square: Square board shape.
CONST JAVADOC: Rectangle: Rectangular board shape.
CONST JAVADOC: Diamond: Diamond board shape.
CONST JAVADOC: Limping: Alternating sides are staggered.
TYPE: game.functions.graph.generators.basis.tiling.Tiling
TYPE JAVADOC: Defines a board graph by a known tiling and size.
NEW CTOR
(tiling <tilingType> <dimFunction> [<dimFunction>])
PARAM JAVADOC: <tilingType>: Tiling type.
PARAM JAVADOC: <dimFunction>: Number of sites along primary board dimension.
PARAM JAVADOC: [<dimFunction>]: Number of sites along secondary board dimension [same as primary].
EXAMPLE: (tiling T3636 3)
NEW CTOR
(tiling <tilingType> (<poly>  | {<dimFunction>}))
PARAM JAVADOC: <tilingType>: Tiling type.
PARAM JAVADOC: <poly>: Points defining the board shape.
PARAM JAVADOC: {<dimFunction>}: Side lengths around board in clockwise order.
EXAMPLE: (tiling T3636 (poly { {1 2} {1 6} {3 6} } ))
EXAMPLE: (tiling T3636 { 4 3 -1 2 3 })
TYPE: game.functions.graph.generators.basis.tiling.TilingType
TYPE JAVADOC: Defines known tiling types for boards (apart from regular tilings).
CONST JAVADOC: T31212: Semi-regular tiling made up of triangles and dodecagons.
CONST JAVADOC: T3464: Rhombitrihexahedral tiling (e.g. Kensington).
CONST JAVADOC: T488: Semi-regular tiling made up of octagons with squares in the interstitial gaps.
CONST JAVADOC: T33434: Semi-regular tiling made up of squares and pairs of triangles.
CONST JAVADOC: T33336: Semi-regular tiling made up of triangles around hexagons.
CONST JAVADOC: T33344: Semi-regular tiling made up of alternating rows of squares and triangles.
CONST JAVADOC: T3636: Semi-regular tiling made up of triangles and hexagons.
CONST JAVADOC: T4612: Semi-regular tiling made up of squares, hexagons and dodecagons.
CONST JAVADOC: T333333_33434: Tiling 3.3.3.3.3.3,3.3.4.3.4.
TYPE: game.functions.graph.generators.basis.tiling.tiling3464.Tiling3464ShapeType
TYPE JAVADOC: Defines known shapes for the rhombitrihexahedral (semi-regular 3.4.6.4) tiling.
CONST JAVADOC: Custom: Custom board shape.
CONST JAVADOC: Square: Square board shape.
CONST JAVADOC: Rectangle: Rectangular board shape.
CONST JAVADOC: Diamond: Diamond board shape.
CONST JAVADOC: Prism: Diamond board shape extended vertically.
CONST JAVADOC: Triangle: Triangular board shape.
CONST JAVADOC: Hexagon: Hexagonal board shape.
CONST JAVADOC: Star: Multi-pointed star shape.
CONST JAVADOC: Limping: Alternating sides are staggered.
TYPE: game.functions.graph.generators.basis.tri.Tri
TYPE JAVADOC: Defines a board on a triangular tiling.
NEW CTOR
(tri [<triShapeType>] <dimFunction> [<dimFunction>])
PARAM JAVADOC: [<triShapeType>]: Board shape [Triangle].
PARAM JAVADOC: <dimFunction>: Board dimension; cells or vertices per side.
PARAM JAVADOC: [<dimFunction>]: Board dimension; cells or vertices per side.
EXAMPLE: (tri 8)
EXAMPLE: (tri Hexagon 3)
NEW CTOR
(tri (<poly>  | {<dimFunction>}))
PARAM JAVADOC: <poly>: Points defining the board shape.
PARAM JAVADOC: {<dimFunction>}: Side lengths around board in clockwise order.
EXAMPLE: (tri (poly { {1 2} {1 6} {3 6} {3 4} } ))
EXAMPLE: (tri { 4 3 -1 2 3 })
TYPE: game.functions.graph.generators.basis.tri.TriShapeType
TYPE JAVADOC: Defines known shapes for the triangular tiling.
CONST JAVADOC: NoShape: No shape; custom graph.
CONST JAVADOC: Square: Square board shape.
CONST JAVADOC: Rectangle: Rectangular board shape.
CONST JAVADOC: Diamond: Diamond board shape.
CONST JAVADOC: Triangle: Triangular board shape.
CONST JAVADOC: Hexagon: Hexagonal board shape.
CONST JAVADOC: Star: Multi-pointed star shape.
CONST JAVADOC: Limping: Alternating sides are staggered.
CONST JAVADOC: Prism: Diamond shape extended vertically.
TYPE: game.functions.graph.generators.shape.Rectangle
TYPE JAVADOC: Defines a rectangular board.
NEW CTOR
(rectangle <dimFunction> [<dimFunction>] [diagonals:<diagonalsType>])
PARAM JAVADOC: <dimFunction>: Number of rows.
PARAM JAVADOC: [<dimFunction>]: Number of columns.
PARAM JAVADOC: [diagonals:<diagonalsType>]: Which type of diagonals to create, if any.
EXAMPLE: (rectangle 4 6)
TYPE: game.functions.graph.generators.shape.Regular
TYPE JAVADOC: Defines a regular polygon.
NEW CTOR
(regular [Star] <dimFunction>)
PARAM JAVADOC: <dimFunction>: Number of sides.
EXAMPLE: (regular 3)
TYPE: game.functions.graph.generators.shape.Repeat
TYPE JAVADOC: Repeats specified shape(s) to define the board tiling.
NEW CTOR
(repeat <dimFunction> <dimFunction> step:{{<float>}} (<poly>  | {<poly>}))
PARAM JAVADOC: <dimFunction>: Number of rows to repeat.
PARAM JAVADOC: <dimFunction>: Number of columns to repeat.
PARAM JAVADOC: step:{{<float>}}: Vectors defining steps to the next column and row.
PARAM JAVADOC: <poly>: The shape to repeat.
PARAM JAVADOC: {<poly>}: The set of shapes to repeat.
EXAMPLE: (repeat 3 4 step:{{-.5 .75} {1 0}} (poly {{0 0} {0 1} {1 1} {1 0}}))
TYPE: game.functions.graph.generators.shape.Spiral
TYPE JAVADOC: Defines a board based on a spiral tiling, e.g. the Mehen board.
NEW CTOR
(spiral turns:<dimFunction> sites:<dimFunction> [clockwise:<boolean>])
PARAM JAVADOC: turns:<dimFunction>: Number of turns of the spiral.
PARAM JAVADOC: sites:<dimFunction>: Number of sites to generate in total.
PARAM JAVADOC: [clockwise:<boolean>]: Whether the spiral should turn clockwise or not [True].
EXAMPLE: (spiral turns:4 sites:80)
TYPE: game.functions.graph.generators.shape.Wedge
TYPE JAVADOC: Defines a triangular wedge shaped graph, with one vertex at the top and   three vertices along the bottom.
NEW CTOR
(wedge <dimFunction> [<dimFunction>])
PARAM JAVADOC: <dimFunction>: Number of rows.
PARAM JAVADOC: [<dimFunction>]: Number of columns.
EXAMPLE: (wedge 3)
REMARKS: Wedges can be used to add triangular arms to Alquerque boards.
TYPE: game.functions.graph.generators.shape.concentric.Concentric
TYPE JAVADOC: Defines a board based on a tiling of concentric shapes.
NEW CTOR
(concentric (<concentricShapeType>  | sides:<dimFunction>  | {<dimFunction>}) [rings:<dimFunction>] [steps:<dimFunction>] [midpoints:<boolean>] [joinMidpoints:<boolean>] [joinCorners:<boolean>] [stagger:<boolean>])
PARAM JAVADOC: <concentricShapeType>: Shape of board rings.
PARAM JAVADOC: sides:<dimFunction>: Number of sides (for polygonal shapes).
PARAM JAVADOC: {<dimFunction>}: Number of cells per circular ring.
PARAM JAVADOC: [rings:<dimFunction>]: Number of rings [3].
PARAM JAVADOC: [steps:<dimFunction>]: Number of steps for target boards with multiple sites per ring [null].
PARAM JAVADOC: [midpoints:<boolean>]: Whether to add vertices at edge midpoints [True].
PARAM JAVADOC: [joinMidpoints:<boolean>]: Whether to join concentric midpoints [True].
PARAM JAVADOC: [joinCorners:<boolean>]: Whether to join concentric corners [False].
PARAM JAVADOC: [stagger:<boolean>]: Whether to stagger cells in concentric circular rings [False].
EXAMPLE: (concentric Square rings:3)
EXAMPLE: (concentric Triangle rings:3 joinMidpoints:False joinCorners:True)
EXAMPLE: (concentric Hexagon rings:3 joinMidpoints:False joinCorners:True)
EXAMPLE: (concentric sides:5 rings:3)
EXAMPLE: (concentric { 8 })
EXAMPLE: (concentric { 0 8 })
EXAMPLE: (concentric { 1 4 8 } stagger:True)
EXAMPLE: (concentric Target rings:4)
EXAMPLE: (concentric Target rings:4 steps:16)
REMARKS: Morris or Merels boards are examples of square concentric boards. Circular tilings are centred around a ``pivot'' point. For circular boards defined by a list of cell counts, the first count should be 0 (centre point) or 1 (centre cell).
TYPE: game.functions.graph.generators.shape.concentric.ConcentricShapeType
TYPE JAVADOC: Defines star shape types for known board types.
CONST JAVADOC: Square: Concentric squares rings, e.g. Morris boards.
CONST JAVADOC: Triangle: Concentric triangles.
CONST JAVADOC: Hexagon: Concentric hexagons.
CONST JAVADOC: Target: Concentric circles, like a target.
TYPE: game.functions.graph.operators.Add
TYPE JAVADOC: Adds elements to a graph.
NEW CTOR
(add [<graphFunction>] [vertices:{{<floatFunction>}}] ([edges:{{{<floatFunction>}}}]  | [Edges:{{<dimFunction>}}]) [edgesCurved:{{{<floatFunction>}}}] ([cells:{{{<floatFunction>}}}]  | [Cells:{{<dimFunction>}}]) [connect:<boolean>])
PARAM JAVADOC: [<graphFunction>]: The graph to remove elements from.
PARAM JAVADOC: [vertices:{{<floatFunction>}}]: Locations of vertices to add.
PARAM JAVADOC: [edges:{{{<floatFunction>}}}]: Locations of end points of edges to add.
PARAM JAVADOC: [Edges:{{<dimFunction>}}]: Indices of end point vertices to add.
PARAM JAVADOC: [edgesCurved:{{{<floatFunction>}}}]: Locations of end points and tangents of edges to add.
PARAM JAVADOC: [cells:{{{<floatFunction>}}}]: Locations of vertices of faces to add.
PARAM JAVADOC: [Cells:{{<dimFunction>}}]: Indices of vertices of faces to add.
PARAM JAVADOC: [connect:<boolean>]: Whether to connect newly added vertices to nearby neighbours [False].
EXAMPLE: (add (square 4) vertices:{ {1 2} })
EXAMPLE: (add edges:{ {{0 0} {1 1}} })
EXAMPLE: (add (square 4) cells:{ {{1 1} {1 2} {3 2} {3 1}} })
EXAMPLE: (add (square 2) edgesCurved:{ {{0 0} {1 0} {1 2} {-1 2}} })
REMARKS: The elements to be added can be vertices, edges or faces. Edges and faces will create the specified vertices if they don't already exist. When defining curved edges, the first and second set of numbers are the end points locations and the third and fourth set of numbers are the tangent directions for the edge end points.
TYPE: game.functions.graph.operators.Clip
TYPE JAVADOC: Returns the result of clipping a graph to a specified shape.
NEW CTOR
(clip <graphFunction> <poly>)
PARAM JAVADOC: <graphFunction>: Graph to clip.
PARAM JAVADOC: <poly>: Float points defining clip region.
EXAMPLE: (clip (square 4) (poly { { 1 1 } { 1 3 } { 4 0 } }))
TYPE: game.functions.graph.operators.Complete
TYPE JAVADOC: Creates an edge between each pair of vertices in the graph.
NEW CTOR
(complete <graphFunction> [eachCell:<boolean>])
PARAM JAVADOC: <graphFunction>: The graph to complete.
PARAM JAVADOC: [eachCell:<boolean>]: Whether to complete each cell individually.
EXAMPLE: (complete (hex 1))
EXAMPLE: (complete (hex 3) eachCell:True)
TYPE: game.functions.graph.operators.Dual
TYPE JAVADOC: Returns the weak dual of the specified graph.
NEW CTOR
(dual <graphFunction>)
PARAM JAVADOC: <graphFunction>: The graph to take the weak dual of.
EXAMPLE: (dual (square 5))
REMARKS: The weak dual of a graph is obtained by creating a vertex at the midpoint of each face, then connecting with an edge vertices corresponding to adjacent faces. This is equivalent to the dual of the graph without the single ``outside'' vertex. The weak dual is non-transitive and always produces a smaller graph; applying (dual (dual <graph>)) does not restore the original graph.
TYPE: game.functions.graph.operators.Hole
TYPE JAVADOC: Cuts a hole in a graph according to a specified shape.
NEW CTOR
(hole <graphFunction> <poly>)
PARAM JAVADOC: <graphFunction>: Graph to clip.
PARAM JAVADOC: <poly>: Float points defining hole region.
EXAMPLE: (hole (square 8) (poly { { 2.5 2.5 } { 2.5 5.5 } { 4.5 5.5 } { 4.5 4.5 } {5.5 4.5 } { 5.5 2.5 } }))
REMARKS: Any face of the graph whose midpoint falls within the hole is removed, as are any edges or vertices isolated as a result.
TYPE: game.functions.graph.operators.Intersect
TYPE JAVADOC: Returns the intersection of two or more graphs.
NEW CTOR
(intersect <graphFunction> <graphFunction>)
PARAM JAVADOC: <graphFunction>: First graph to intersect.
PARAM JAVADOC: <graphFunction>: Second graph to intersect.
EXAMPLE: (intersect (square 4) (rectangle 2 5))
NEW CTOR
(intersect {<graphFunction>})
PARAM JAVADOC: {<graphFunction>}: Graphs to intersect.
EXAMPLE: (intersect { (rectangle 6 2) (square 4) (rectangle 7 2) })
REMARKS: The intersection of two or more graphs is composed of the vertices and edges that occur in all of those graphs.
TYPE: game.functions.graph.operators.Keep
TYPE JAVADOC: Keeps a specified shape within a graph and discards the remainder.
NEW CTOR
(keep <graphFunction> <poly>)
PARAM JAVADOC: <graphFunction>: Graph to modify.
PARAM JAVADOC: <poly>: Float points defining keep region.
EXAMPLE: (keep (square 4) (poly { { 1 1 } { 1 3 } { 4 0 } }))
TYPE: game.functions.graph.operators.Layers
TYPE JAVADOC: Makes multiple layers of the specified graph for 3D games.
NEW CTOR
(layers <dimFunction> <graphFunction>)
PARAM JAVADOC: <dimFunction>: Number of layers.
PARAM JAVADOC: <graphFunction>: The graph to layer.
EXAMPLE: (layers 3 (square 3)))
REMARKS: The layers are stacked upon each one 1 unit apart. Layers will be shown in isometric view from the side in a future version.
TYPE: game.functions.graph.operators.MakeFaces
TYPE JAVADOC: Recreates all possible non-overlapping faces for the given graph.
NEW CTOR
(makeFaces <graphFunction>)
PARAM JAVADOC: <graphFunction>: The graph to be modified.
EXAMPLE: (makeFaces (square 5))
TYPE: game.functions.graph.operators.Merge
TYPE JAVADOC: Returns the result of merging two or more graphs.
NEW CTOR
(merge <graphFunction> <graphFunction> [connect:<boolean>])
PARAM JAVADOC: <graphFunction>: First graph to merge.
PARAM JAVADOC: <graphFunction>: Second graph to merge.
PARAM JAVADOC: [connect:<boolean>]: Whether to connect newly added vertices to nearby neighbours [False].
EXAMPLE: (merge (rectangle 6 2) (rectangle 3 5))
NEW CTOR
(merge {<graphFunction>} [connect:<boolean>])
PARAM JAVADOC: {<graphFunction>}: Graphs to merge.
PARAM JAVADOC: [connect:<boolean>]: Whether to connect newly added vertices to nearby neighbours [False].
EXAMPLE: (merge { (rectangle 6 2) (square 4) (rectangle 7 2) })
REMARKS: The graphs are overlaid with each other, such that incident vertices (i.e. those with the same location) are merged into a single vertex.
TYPE: game.functions.graph.operators.Recoordinate
TYPE JAVADOC: Regenerates the coordinate labels for the elements of a graph.
NEW CTOR
(recoordinate [<siteType>] [<siteType>] [<siteType>] <graphFunction>)
PARAM JAVADOC: [<siteType>]: First site type to recoordinate (Vertex/Edge/Cell).
PARAM JAVADOC: [<siteType>]: Second site type to recoordinate (Vertex/Edge/Cell).
PARAM JAVADOC: [<siteType>]: Third site type to recoordinate (Vertex/Edge/Cell).
PARAM JAVADOC: <graphFunction>: The graph whose vertices are to be renumbered.
EXAMPLE: (recoordinate (merge (rectangle 2 5) (square 5)))
EXAMPLE: (recoordinate Vertex (merge (rectangle 2 5) (square 5)))
TYPE: game.functions.graph.operators.Remove
TYPE JAVADOC: Removes elements from a graph.
NEW CTOR
(remove <graphFunction> ([cells:{{{<float>}}}]  | [Cells:{<dimFunction>}]) ([edges:{{{<float>}}}] ([Edges:{{<dimFunction>}}]) ([vertices:{{<float>}}] ([Vertices:{<dimFunction>}]) [trimEdges:<boolean>])
PARAM JAVADOC: <graphFunction>: The graph to remove elements from.
PARAM JAVADOC: [cells:{{{<float>}}}]: Locations of vertices of faces to remove.
PARAM JAVADOC: [Cells:{<dimFunction>}]: Indices of faces to remove.
PARAM JAVADOC: [edges:{{{<float>}}}]: Locations of end points of edges to remove.
PARAM JAVADOC: [Edges:{{<dimFunction>}}]: Indices of end points of edges to remove.
PARAM JAVADOC: [vertices:{{<float>}}]: Locations of vertices to remove.
PARAM JAVADOC: [Vertices:{<dimFunction>}]: Indices of vertices to remove.
PARAM JAVADOC: [trimEdges:<boolean>]: Whether to trim edges orphaned by removing faces [True].
EXAMPLE: (remove (square 4) vertices:{ { 0.0 3.0 } { 0.5 2 } })
EXAMPLE: (remove (square 4) cells:{ 0 1 2 } edges:{ {0 1} {1 2} } vertices:{ 1 4 })
NEW CTOR
(remove <graphFunction> <poly> [trimEdges:<boolean>])
PARAM JAVADOC: <graphFunction>: Graph to clip.
PARAM JAVADOC: <poly>: Float points defining hole region.
PARAM JAVADOC: [trimEdges:<boolean>]: Whether to trim edges orphaned by removing faces [True].
EXAMPLE: (remove (square 8) (poly { { 2.5 2.5 } { 2.5 5.5 } { 4.5 5.5 } { 4.5 4.5 } {5.5 4.5 } { 5.5 2.5 } }))
REMARKS: The elements to be removed can be vertices, edges or faces. Elements whose vertices can't be found will be ignored. Be careful when removing by index, as the graph is modified and renumbered with each removal. It is recommended to specify indices in decreasing order and to avoid removing vertices, edges and/or faces by index on the same call (instead, you can chain multiple removals by index together, one for each element type).
TYPE: game.functions.graph.operators.Renumber
TYPE JAVADOC: Renumbers the vertices of a graph into sequential order.
NEW CTOR
(renumber [<siteType>] [<siteType>] [<siteType>] <graphFunction>)
PARAM JAVADOC: [<siteType>]: First site type to renumber (Vertex/Edge/Cell).
PARAM JAVADOC: [<siteType>]: Second site type to renumber (Vertex/Edge/Cell).
PARAM JAVADOC: [<siteType>]: Third site type to renumber (Vertex/Edge/Cell).
PARAM JAVADOC: <graphFunction>: The graph whose vertices are to be renumbered.
EXAMPLE: (renumber (merge (rectangle 2 5) (square 5)))
EXAMPLE: (renumber Vertex (merge (rectangle 2 5) (square 5)))
REMARKS: Vertices are renumbered from the lower left rightwards and upwards, in an upwards reading order. Renumbering can be useful after a union or merge operation combines different graphs.
TYPE: game.functions.graph.operators.Rotate
TYPE JAVADOC: Rotates a graph by the specified number of degrees anticlockwise.
NEW CTOR
(rotate <floatFunction> <graphFunction>)
PARAM JAVADOC: <floatFunction>: Number of degrees to rotate anticlockwise.
PARAM JAVADOC: <graphFunction>: The graph to rotate.
EXAMPLE: (rotate 45 (square 5))
REMARKS: The vertices within the graph are rotated about the graph's midpoint.
TYPE: game.functions.graph.operators.Scale
TYPE JAVADOC: Scales a graph by the specified amount.
NEW CTOR
(scale <floatFunction> [<floatFunction>] [<floatFunction>] <graphFunction>)
PARAM JAVADOC: <floatFunction>: Amount to scale in the x direction.
PARAM JAVADOC: [<floatFunction>]: Amount to scale in the y direction [scaleX].
PARAM JAVADOC: [<floatFunction>]: Amount to scale in the z direction [1].
PARAM JAVADOC: <graphFunction>: The graph to scale.
EXAMPLE: (scale 2 (square 5))
EXAMPLE: (scale 2 3.5 (square 5))
TYPE: game.functions.graph.operators.Shift
TYPE JAVADOC: Translate a graph by the specified x, y and z amounts.
NEW CTOR
(shift <floatFunction> <floatFunction> [<floatFunction>] <graphFunction>)
PARAM JAVADOC: <floatFunction>: Amount to translate in the x direction.
PARAM JAVADOC: <floatFunction>: Amount to translate in the y direction.
PARAM JAVADOC: [<floatFunction>]: Amount to translate in the z direction [0].
PARAM JAVADOC: <graphFunction>: The graph to rotate.
EXAMPLE: (shift 0 10 (square 5))
REMARKS: This operation modifies the locations of vertices within the graph.
TYPE: game.functions.graph.operators.Skew
TYPE JAVADOC: Skews a graph by the specified amount.
NEW CTOR
(skew <float> <graphFunction>)
PARAM JAVADOC: <float>: Amount to skew (1 gives a 45 degree skew).
PARAM JAVADOC: <graphFunction>: The graph to scale.
EXAMPLE: (skew .5 (square 5))
TYPE: game.functions.graph.operators.SplitCrossings
TYPE JAVADOC: Splits edge crossings within a graph to create a new vertex at each crossing point.
NEW CTOR
(splitCrossings <graphFunction>)
PARAM JAVADOC: <graphFunction>: The graph to split edge crossings.
EXAMPLE: (splitCrossings (merge (rectangle 2 5) (square 5)))
TYPE: game.functions.graph.operators.Subdivide
TYPE JAVADOC: Subdivides graph cells about their midpoint.
NEW CTOR
(subdivide <graphFunction> [min:<dimFunction>])
PARAM JAVADOC: <graphFunction>: The graph to subdivide.
PARAM JAVADOC: [min:<dimFunction>]: Minimum cell size to subdivide [1].
EXAMPLE: (subdivide (tiling T3464 2) min:6)
REMARKS: Each cell with N sides, where N > min, will be split into N cells.
TYPE: game.functions.graph.operators.Trim
TYPE JAVADOC: Trims orphan vertices and edges from a graph.
NEW CTOR
(trim <graphFunction>)
PARAM JAVADOC: <graphFunction>: The graph to be trimmed.
EXAMPLE: (trim (dual (square 5)))
REMARKS: An orphan vertex is a vertex with no incident edge (note that pivot vertices are not removed). An orphan edge is an edge with an end point that has no incident edges apart from the edge itself.
TYPE: game.functions.graph.operators.Union
TYPE JAVADOC: Returns the union of two or more graphs.
NEW CTOR
(union <graphFunction> <graphFunction> [connect:<boolean>])
PARAM JAVADOC: <graphFunction>: First graph to combine.
PARAM JAVADOC: <graphFunction>: Second graph to combine.
PARAM JAVADOC: [connect:<boolean>]: Whether to connect newly added vertices to nearby neighbours [False].
EXAMPLE: (union (square 5) (square 3))
NEW CTOR
(union {<graphFunction>} [connect:<boolean>])
PARAM JAVADOC: {<graphFunction>}: Graphs to merge.
PARAM JAVADOC: [connect:<boolean>]: Whether to connect newly added vertices to nearby neighbours [False].
EXAMPLE: (union { (rectangle 6 2) (square 4) (rectangle 7 2) })
REMARKS: The graphs are simply combined with each other, with no connection between them.
TYPE: game.functions.intArray.array.Array
TYPE JAVADOC: Converts a Region Function to an Int Array.
NEW CTOR
(array <region>)
PARAM JAVADOC: <region>: The region function to be converted into an int array.
EXAMPLE: (array (sites Board)))
NEW CTOR
(array {<int>})
PARAM JAVADOC: {<int>}: The int functions composing the array.
EXAMPLE: (array {5 3 2})
TYPE: game.functions.intArray.iteraror.Team
TYPE JAVADOC: Returns the team iterator.
NEW CTOR
(team)
EXAMPLE: (team)
TYPE: game.functions.intArray.math.Difference
TYPE JAVADOC: Returns the difference between two arrays of integers, i.e. the elements in A  that are not in B.
NEW CTOR
(difference <intArrayFunction> (<intArrayFunction>  | <int>))
PARAM JAVADOC: <intArrayFunction>: The original array.
PARAM JAVADOC: <intArrayFunction>: The array to remove from the original array.
PARAM JAVADOC: <int>: The integer to remove from the original array.
EXAMPLE: (difference (values Remembered) 2)
TYPE: game.functions.intArray.math.If
TYPE JAVADOC: Returns an array when the condition is satisfied and another when it is not.
NEW CTOR
(if <boolean> <intArrayFunction> [<intArrayFunction>])
PARAM JAVADOC: <boolean>: The condition to satisfy.
PARAM JAVADOC: <intArrayFunction>: The array returned when the condition is satisfied.
PARAM JAVADOC: [<intArrayFunction>]: The array returned when the condition is not satisfied.
EXAMPLE: (if (is Mover P1) (values Remembered "RememberedP1") (values Remembered "RememberedP2"))
TYPE: game.functions.intArray.math.Intersection
TYPE JAVADOC: Returns the intersection of many regions.
NEW CTOR
(intersection <intArrayFunction> <intArrayFunction>)
PARAM JAVADOC: <intArrayFunction>: The first array.
PARAM JAVADOC: <intArrayFunction>: The second array.
EXAMPLE: (intersection (values Remembered "Earth") (values Remembered "Sea"))
NEW CTOR
(intersection {<intArrayFunction>})
PARAM JAVADOC: {<intArrayFunction>}: The different arrays.
EXAMPLE: (intersection {(values Remembered "Earth") (values Remembered "Sea") (values Remembered "Sky")})
TYPE: game.functions.intArray.math.Results
TYPE JAVADOC: Returns an array of all the results of the function for each site 'from' to each site 'to'.
NEW CTOR
(results (from:<int>  | From:<region>) (to:<int> (To:<region>) <int>)
PARAM JAVADOC: from:<int>: The 'from' site.
PARAM JAVADOC: From:<region>: The 'from' region.
PARAM JAVADOC: to:<int>: The 'to' site.
PARAM JAVADOC: To:<region>: The 'to' region.
PARAM JAVADOC: <int>: The function to compute for each site 'from' and each site 'to'.
EXAMPLE: (results from:(last To) to:(sites LineOfSight at:(from) All) (count Steps All (from) (to)))
TYPE: game.functions.intArray.math.Union
TYPE JAVADOC: Merges many integer arrays into one.
NEW CTOR
(union <intArrayFunction> <intArrayFunction>)
PARAM JAVADOC: <intArrayFunction>: The first array.
PARAM JAVADOC: <intArrayFunction>: The second array.
EXAMPLE: (union (values Remembered "Forest") (values Remembered "Sea"))
NEW CTOR
(union {<intArrayFunction>})
PARAM JAVADOC: {<intArrayFunction>}: The different arrays.
EXAMPLE: (union {(values Remembered "Forest") (values Remembered "Sea") (values Remembered "Sky")})
TYPE: game.functions.intArray.players.Players
TYPE JAVADOC: Returns an array of players indices.
NEW CTOR
(players <playersTeamType> [If:<boolean>])
PARAM JAVADOC: <playersTeamType>: The player type to return.
PARAM JAVADOC: [If:<boolean>]: The condition to keep the players [True].
EXAMPLE: (players Team1)
NEW CTOR
(players <playersManyType> [of:<int>] [If:<boolean>])
PARAM JAVADOC: <playersManyType>: The player type to return.
PARAM JAVADOC: [of:<int>]: The index of the related player.
PARAM JAVADOC: [If:<boolean>]: The condition to keep the players.
EXAMPLE: (players Team1)
TYPE: game.functions.intArray.players.PlayersManyType
TYPE JAVADOC: Defines the types of set of players which can be iterated.
CONST JAVADOC: All: All players.
CONST JAVADOC: NonMover: Players who are not moving.
CONST JAVADOC: Enemy: Enemy players.
CONST JAVADOC: Friend: Friend players (Mover + Allies).
CONST JAVADOC: Ally: Ally players.
TYPE: game.functions.intArray.players.PlayersTeamType
TYPE JAVADOC: Defines the types of team which can be iterated.
CONST JAVADOC: Team1: Team 1.
CONST JAVADOC: Team2: Team 2.
CONST JAVADOC: Team3: Team 3.
CONST JAVADOC: Team4: Team 4.
CONST JAVADOC: Team5: Team 5.
CONST JAVADOC: Team6: Team 6.
CONST JAVADOC: Team7: Team 7.
CONST JAVADOC: Team8: Team 8.
CONST JAVADOC: Team9: Team 9.
CONST JAVADOC: Team10: Team 10.
CONST JAVADOC: Team11: Team 11.
CONST JAVADOC: Team12: Team 12.
CONST JAVADOC: Team13: Team 13.
CONST JAVADOC: Team14: Team 14.
CONST JAVADOC: Team15: Team 15.
CONST JAVADOC: Team16: Team 16.
TYPE: game.functions.intArray.sizes.Sizes
TYPE JAVADOC: Returns an array of sizes of many regions.
NEW CTOR
(sizes Group [<siteType>] [<direction>] ([<roleType>]  | [of:<int>]  | [If:<boolean>]) [min:<int>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<direction>]: The directions of the connection between elements in the group [Adjacent].
PARAM JAVADOC: [<roleType>]: The role of the player [All].
PARAM JAVADOC: [of:<int>]: The index of the player.
PARAM JAVADOC: [If:<boolean>]: The condition on the pieces to include in the group.
PARAM JAVADOC: [min:<int>]: Minimum size of each group [0].
EXAMPLE: (sizes Group Orthogonal P1)
TYPE: game.functions.intArray.state.Rotations
TYPE JAVADOC: Returns the list of rotation indices according to a tiling type.
NEW CTOR
(rotations (<absoluteDirection>  | {<absoluteDirection>}))
PARAM JAVADOC: <absoluteDirection>: The direction of the possible rotations.
PARAM JAVADOC: {<absoluteDirection>}: The directions of the possible rotations.
EXAMPLE: (rotations Orthogonal)
TYPE: game.functions.intArray.values.Values
TYPE JAVADOC: Returns an array of values.
NEW CTOR
(values Remembered [<string>])
PARAM JAVADOC: [<string>]: The name of the remembering values.
EXAMPLE: (values Remembered)
TYPE: game.functions.ints.ToInt
TYPE JAVADOC: Converts a BooleanFunction or a FloatFunction to an integer.
NEW CTOR
(toInt (<boolean>  | <floatFunction>))
PARAM JAVADOC: <boolean>: The boolean function.
PARAM JAVADOC: <floatFunction>: The float function.
EXAMPLE: (toInt (is Full))
EXAMPLE: (toInt (sqrt 2))
TYPE: game.functions.ints.board.Ahead
TYPE JAVADOC: Returns the site in a given direction from a specified site.
NEW CTOR
(ahead [<siteType>] <int> [steps:<int>] [<direction>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: <int>: Source site.
PARAM JAVADOC: [steps:<int>]: Distance to travel [1].
PARAM JAVADOC: [<direction>]: The direction.
EXAMPLE: (ahead (centrePoint) E)
EXAMPLE: (ahead (last To) steps:3 N)
REMARKS: If there is no site in the specified direction, then the index of the source site is returned.
TYPE: game.functions.ints.board.ArrayValue
TYPE JAVADOC: Returns one value of an array.
NEW CTOR
(arrayValue <intArrayFunction> index:<int>)
PARAM JAVADOC: <intArrayFunction>: The array.
PARAM JAVADOC: index:<int>: The index of the site in the region.
EXAMPLE: (arrayValue (results from:(last To) to:(sites Empty) (who at:(to))) index:(value))
TYPE: game.functions.ints.board.CentrePoint
TYPE JAVADOC: Returns the index of the central board site.
NEW CTOR
(centrePoint [<siteType>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (centrePoint)
TYPE: game.functions.ints.board.Column
TYPE JAVADOC: Returns the column number in which a given site lies.
NEW CTOR
(column [<siteType>] of:<int>)
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: of:<int>: The site to check.
EXAMPLE: (column of:(to))
REMARKS: Returns OFF (-1) if the site does not belong to any column.
TYPE: game.functions.ints.board.Coord
TYPE JAVADOC: Returns the site index of a given board coordinate.
NEW CTOR
(coord [<siteType>] <string>)
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: <string>: The coordinates of the site.
EXAMPLE: (coord "A1")
NEW CTOR
(coord [<siteType>] row:<int> column:<int>)
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: row:<int>: The row index.
PARAM JAVADOC: column:<int>: The column index.
EXAMPLE: (coord row:1 column:5)
TYPE: game.functions.ints.board.Cost
TYPE JAVADOC: Returns the cost of graph element(s).
NEW CTOR
(cost [<siteType>] (at:<int>  | in:<region>))
PARAM JAVADOC: [<siteType>]: The type of the graph element [Cell].
PARAM JAVADOC: at:<int>: The index of the graph element.
PARAM JAVADOC: in:<region>: The region of the graph elements.
EXAMPLE: (cost at:(to))
TYPE: game.functions.ints.board.HandSite
TYPE JAVADOC: Returns one site of one hand.
NEW CTOR
(handSite (<int>  | <roleType>) [<int>])
PARAM JAVADOC: <int>: The index of the owner of the hand.
PARAM JAVADOC: <roleType>: The roleType of the owner of the hand.
PARAM JAVADOC: [<int>]: The site on the hand.
EXAMPLE: (handSite Mover)
REMARKS: To check a specific site of a specific hand.
TYPE: game.functions.ints.board.Id
TYPE JAVADOC: Returns the index of a component, player or region.
NEW CTOR
(id [<string>] <roleType>)
PARAM JAVADOC: [<string>]: The name of the component.
PARAM JAVADOC: <roleType>: The owner of the component.
EXAMPLE: (id "Pawn" Mover)
EXAMPLE: (id P1)
NEW CTOR
(id <string>)
PARAM JAVADOC: <string>: The name of the component.
EXAMPLE: (id "Pawn1")
REMARKS: To translate a component, a player or a region to an index.
TYPE: game.functions.ints.board.Layer
TYPE JAVADOC: Returns the layer of a site.
NEW CTOR
(layer of:<int> [<siteType>])
PARAM JAVADOC: of:<int>: The site to check.
PARAM JAVADOC: [<siteType>]: The graph element type of the site.
EXAMPLE: (layer of:(to))
REMARKS: This ludeme returns the layer of a site for 3D boards. If the board is flat (2D), then 0 is returned to indicate the board layer.
TYPE: game.functions.ints.board.MapEntry
TYPE JAVADOC: Returns the value corresponding to a specified entry in a map.
NEW CTOR
(mapEntry [<string>] (<int>  | <roleType>))
PARAM JAVADOC: [<string>]: The name of the map.
PARAM JAVADOC: <int>: The key value to check.
PARAM JAVADOC: <roleType>: The roleType corresponding to an integer value to check.
EXAMPLE: (mapEntry (last To))
EXAMPLE: (mapEntry (trackSite Move steps:(count Pips) ) )
REMARKS: Maps are used to stored mappings from one set of numbers to another. These maps are defined in the equipment.
TYPE: game.functions.ints.board.Phase
TYPE JAVADOC: Returns the phase of a graph element on the board.
NEW CTOR
(phase [<siteType>] of:<int>)
PARAM JAVADOC: [<siteType>]: Type of graph element.
PARAM JAVADOC: of:<int>: The index of the element.
EXAMPLE: (phase of:(last To))
REMARKS: If the graph element is not on the main board, the ludeme returns (Undefined) -1.
TYPE: game.functions.ints.board.RegionSite
TYPE JAVADOC: Returns one site of a region.
NEW CTOR
(regionSite <region> index:<int>)
PARAM JAVADOC: <region>: The region.
PARAM JAVADOC: index:<int>: The index of the site in the region.
EXAMPLE: (regionSite (sites Empty) index:(value))
TYPE: game.functions.ints.board.Row
TYPE JAVADOC: Returns the row of a site.
NEW CTOR
(row [<siteType>] of:<int>)
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: of:<int>: The site to check.
EXAMPLE: (row of:(to))
TYPE: game.functions.ints.board.where.Where
TYPE JAVADOC: Returns the site (or level) of a piece if it is on the board/site, else OFF  (-1).
NEW CTOR
(where <string> (<int>  | <roleType>) [state:<int>] [<siteType>])
PARAM JAVADOC: <string>: The name of the piece (without the number at the end).
PARAM JAVADOC: <int>: The index of the owner.
PARAM JAVADOC: <roleType>: The roleType of the owner.
PARAM JAVADOC: [state:<int>]: The local state of the piece.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (where "Pawn" Mover)
NEW CTOR
(where <int> [<siteType>])
PARAM JAVADOC: <int>: The index of the piece.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (where (what at:(last To)))
NEW CTOR
(where Level <string> (<int>  | <roleType>) [state:<int>] [<siteType>] at:<int> [fromTop:<boolean>])
PARAM JAVADOC: <string>: The name of the piece (without the number at the end).
PARAM JAVADOC: <int>: The index of the owner.
PARAM JAVADOC: <roleType>: The roleType of the owner.
PARAM JAVADOC: [state:<int>]: The local state of the piece.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The site to check.
PARAM JAVADOC: [fromTop:<boolean>]: If true, check the stack from the top [True].
EXAMPLE: (where Level "Pawn" Mover at:(last To))
NEW CTOR
(where Level <int> [<siteType>] at:<int> [fromTop:<boolean>])
PARAM JAVADOC: <int>: The index of the piece.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The site to check.
PARAM JAVADOC: [fromTop:<boolean>]: If true, check the stack from the top [True].
EXAMPLE: (where Level (what at:(last To)) at:(last To))
REMARKS: The name of the piece can be specific without the number on it because the owner is also specified in the ludeme.
TYPE: game.functions.ints.card.Card
TYPE JAVADOC: Returns a site related to the last move.
NEW CTOR
(card TrumpSuit)
EXAMPLE: (card TrumpSuit)
NEW CTOR
(card <cardSiteType> at:<int> [level:<int>])
PARAM JAVADOC: <cardSiteType>: The property to return.
PARAM JAVADOC: at:<int>: The site where the card is.
PARAM JAVADOC: [level:<int>]: The level where the card is.
EXAMPLE: (card TrumpValue at:(from) level:(level))
EXAMPLE: (card TrumpRank at:(from) level:(level))
EXAMPLE: (card Rank at:(from) level:(level))
EXAMPLE: (card Suit at:(from) level:(level))
TYPE: game.functions.ints.card.CardSiteType
TYPE JAVADOC: Defines the types of properties which can be returned for the Card super ludeme according an index and optionally a level.
CONST JAVADOC: Rank: To return the rank of a card.
CONST JAVADOC: Suit: To return the suit of a card.
CONST JAVADOC: TrumpValue: To return the value of the trump of a card.
CONST JAVADOC: TrumpRank: To return the rank of the trump of a card.
TYPE: game.functions.ints.count.Count
TYPE JAVADOC: Returns the count of the specified property.
NEW CTOR
(count Value <int> in:<intArrayFunction>)
PARAM JAVADOC: <int>: The value to count.
PARAM JAVADOC: in:<intArrayFunction>: The array.
EXAMPLE: (count Value 1 in:(values Remembered))
NEW CTOR
(count Stack [<stackDirection>] [<siteType>] (at:<int>  | to:<region>) [If:<boolean>] [stop:<boolean>])
PARAM JAVADOC: [<stackDirection>]: The direction to count in the stack [FromBottom].
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The site where is the stack.
PARAM JAVADOC: to:<region>: The region where are the stacks.
PARAM JAVADOC: [If:<boolean>]: The condition to count in the stack [True].
PARAM JAVADOC: [stop:<boolean>]: The condition to stop to count in the stack [False].
EXAMPLE: (count Stack FromTop at:(last To) if:(= (what at:(to) level:(level)) (id "Disc" P1)) stop:(= (what at:(to) level:(level)) (id "Disc" P2)))
NEW CTOR
(count <countSimpleType> [<siteType>])
PARAM JAVADOC: <countSimpleType>: The property to count.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (count Players)
EXAMPLE: (count Vertices)
EXAMPLE: (count Moves)
NEW CTOR
(count [<countSiteType>] [<siteType>] ([in:<region>]  | [at:<int>]  | [<string>]))
PARAM JAVADOC: [<countSiteType>]: The property to count.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [in:<region>]: The region to count.
PARAM JAVADOC: [at:<int>]: The site from which to compute the count [(last To)].
PARAM JAVADOC: [<string>]: The name of the container from which to count the number of sites or the name of the piece to count only pieces of that type.
EXAMPLE: (count at:(last To))
EXAMPLE: (count Sites in:(sites Empty))
NEW CTOR
(count <countComponentType> [<siteType>] ([<roleType>]  | [of:<int>]) [<string>] [in:<region>] [If:<boolean>])
PARAM JAVADOC: <countComponentType>: The property to count.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<roleType>]: The role of the player [All].
PARAM JAVADOC: [of:<int>]: The index of the player.
PARAM JAVADOC: [<string>]: The name of the container from which to count the number of sites or the name of the piece to count only pieces of that type.
PARAM JAVADOC: [in:<region>]: The region where to count the pieces.
PARAM JAVADOC: [If:<boolean>]: The condition to check for each site where is the piece [True].
EXAMPLE: (count Pieces Mover)
EXAMPLE: (count Pips)
NEW CTOR
(count Groups [<siteType>] [<direction>] [If:<boolean>] [min:<int>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<direction>]: The directions of the connection between elements in the group [Adjacent].
PARAM JAVADOC: [If:<boolean>]: The condition on the pieces to include in the group [(is Occupied (to))].
PARAM JAVADOC: [min:<int>]: Minimum size of each group [0].
EXAMPLE: (count Groups Orthogonal)
NEW CTOR
(count Liberties [<siteType>] [at:<int>] [<direction>] [If:<boolean>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [at:<int>]: The site to compute the group [(last To)].
PARAM JAVADOC: [<direction>]: The type of directions from the site to compute the group [Adjacent].
PARAM JAVADOC: [If:<boolean>]: The condition of the members of the group [(= (mover) (who at:(to)))].
EXAMPLE: (count Liberties Orthogonal)
NEW CTOR
(count Steps [<siteType>] [<relationType>] [<step>] [newRotation:<int>] <int> (<int>  | <region>))
PARAM JAVADOC: [<siteType>]: Graph element type [default SiteType of the board].
PARAM JAVADOC: [<relationType>]: The relation type of the steps [Adjacent].
PARAM JAVADOC: [<step>]: Define a particular step move to step.
PARAM JAVADOC: [newRotation:<int>]: Define a new rotation at each step move in using the (value) iterator for the rotation.
PARAM JAVADOC: <int>: The first site.
PARAM JAVADOC: <int>: The second site.
PARAM JAVADOC: <region>: The second region.
EXAMPLE: (count Steps (where (id "King")) (where (id "Queen")))
NEW CTOR
(count StepsOnTrack ([<roleType>]  | [<player>]  | [<string>]) [<int>] [<int>])
PARAM JAVADOC: [<roleType>]: The role of the owner of the track [Mover].
PARAM JAVADOC: [<player>]: The owner of the track [(mover)].
PARAM JAVADOC: [<string>]: The name of the track.
PARAM JAVADOC: [<int>]: The first site.
PARAM JAVADOC: [<int>]: The second site.
EXAMPLE: (count StepsOnTrack (last From) (last To))
TYPE: game.functions.ints.count.CountComponentType
TYPE JAVADOC: Defines the types of components that can be counted within a game.
CONST JAVADOC: Pieces: Number of pieces on the board (or in hand), per player or over all players.
CONST JAVADOC: Pips: The number of pips showing on all dice, or dice owned by a specified player.
TYPE: game.functions.ints.count.CountSimpleType
TYPE JAVADOC: Defines the types of properties that can be counted without a parameter (apart from the graph element type, where relevant).
CONST JAVADOC: Rows: Number of rows on the board.
CONST JAVADOC: Columns: Number of columns on the board.
CONST JAVADOC: Turns: Number of turns played so far in this trial.
CONST JAVADOC: Moves: Number of moves made so far in this trial.
CONST JAVADOC: Trials: Number of completed games within a match.
CONST JAVADOC: MovesThisTurn: Number of moves made so far this turn.
CONST JAVADOC: Phases: Number of phase changes during this trial.
CONST JAVADOC: Vertices: Number of adjacent (connected) elements.
CONST JAVADOC: Edges: Number of edges on the board.
CONST JAVADOC: Cells: Number of cells on the board.
CONST JAVADOC: Players: Number of players.
CONST JAVADOC: Active: Number of active players.
CONST JAVADOC: LegalMoves: Number of legal moves.
TYPE: game.functions.ints.count.CountSiteType
TYPE JAVADOC: Defines the types of sites that can be counted within a game.
CONST JAVADOC: Sites: Number of playable sites within a region or container.
CONST JAVADOC: Adjacent: Number of adjacent (connected) elements.
CONST JAVADOC: Neighbours: Number of neighbours (not necessarily connected).
CONST JAVADOC: Orthogonal: Number of orthogonal elements.
CONST JAVADOC: Diagonal: Number of diagonal elements.
CONST JAVADOC: Off: Number of off-diagonal elements.
TYPE: game.functions.ints.dice.Face
TYPE JAVADOC: Returns the face of the die according to the current state of the position of  the die.
NEW CTOR
(face <int>)
PARAM JAVADOC: <int>: The location of the die.
EXAMPLE: (face (handSite P1))
TYPE: game.functions.ints.iterator.Between
TYPE JAVADOC: Returns the ``between'' value of the context.
NEW CTOR
(between)
EXAMPLE: (between)
REMARKS: This ludeme identifies the location(s) between the current position of a component and its destination location of a move. It can also represent each site (iteratively) surrounded by other sites or inside a loop. This ludeme is typically used to test a condition or apply an effect to each site ``between'' other specified sites.
TYPE: game.functions.ints.iterator.Edge
TYPE JAVADOC: Returns the corresponding edge if both vertices are specified, else returns  the current ``edge'' value from the context.
NEW CTOR
(edge <int> <int>)
PARAM JAVADOC: <int>: The first vertex of the edge.
PARAM JAVADOC: <int>: The second vertex of the edge.
EXAMPLE: (edge (from) (to))
NEW CTOR
(edge)
EXAMPLE: (edge)
REMARKS: This ludeme identifies the value of a move applied to an edge.
TYPE: game.functions.ints.iterator.From
TYPE JAVADOC: Returns the ``from'' value of the context.
NEW CTOR
(from [at:<whenType>])
PARAM JAVADOC: [at:<whenType>]: To return the ``from'' location at a specific time within the game.
EXAMPLE: (from)
REMARKS: This ludeme identifies the current position of a specified component. It is used for the component's move generator and for all the decision moves.
TYPE: game.functions.ints.iterator.Hint
TYPE JAVADOC: Returns the ``hint'' value of the context.
NEW CTOR
(hint [<siteType>] [at:<int>])
PARAM JAVADOC: [<siteType>]: The type of the site to look.
PARAM JAVADOC: [at:<int>]: The index of the site.
EXAMPLE: (hint)
REMARKS: This ludeme identifies the hint position of a deduction puzzle stored in the context.
TYPE: game.functions.ints.iterator.Level
TYPE JAVADOC: Returns the ``level'' value of the context.
NEW CTOR
(level)
EXAMPLE: (level)
REMARKS: This ludeme identifies the level of the current position of a component on a site that is stored in the context. It is used for stacking games and to generate the moves of the components and for all decision moves.
TYPE: game.functions.ints.iterator.Pips
TYPE JAVADOC: Returns the number of pips of a die.
NEW CTOR
(pips)
EXAMPLE: (pips)
TYPE: game.functions.ints.iterator.Player
TYPE JAVADOC: Returns the ``player'' value of the context.
NEW CTOR
(player)
EXAMPLE: (player)
REMARKS: This ludeme corresponds to the index of a player. It is used to iterate through the players with a (forEach Player ...) ludeme.
TYPE: game.functions.ints.iterator.Site
TYPE JAVADOC: Returns the ``site'' value stored in the context.
NEW CTOR
(site)
EXAMPLE: (site)
REMARKS: This ludeme is used by {\tt (forEach Site ...)} to iterate over a set of sites.
TYPE: game.functions.ints.iterator.To
TYPE JAVADOC: Returns the ``to'' value of the context.
NEW CTOR
(to)
EXAMPLE: (to)
REMARKS: This ludeme returns the destination location the current component is moving to. It is used to generate component moves and for all decision moves.
TYPE: game.functions.ints.iterator.Track
TYPE JAVADOC: Returns the ``track'' value of the context.
NEW CTOR
(track)
EXAMPLE: (track)
REMARKS: Used in a (forEach Track ...) ludeme to set the value to the index of each track.
TYPE: game.functions.ints.last.Last
TYPE JAVADOC: Returns a site related to the last move.
NEW CTOR
(last <lastType> [afterConsequence:<boolean>])
PARAM JAVADOC: <lastType>: The site to return.
PARAM JAVADOC: [afterConsequence:<boolean>]: True, to check the location related to the last decision; False, to check the to location related to the last consequence. [False].
EXAMPLE: (last To)
EXAMPLE: (last From)
EXAMPLE: (last LevelFrom)
EXAMPLE: (last LevelTo)
TYPE: game.functions.ints.last.LastType
TYPE JAVADOC: Defines the types of Last integer ludeme.
CONST JAVADOC: From: To return the ``from'' site of the last move.
CONST JAVADOC: LevelFrom: To return the ``level from''  of the last move.
CONST JAVADOC: To: To return the ``to'' site of the last move.
CONST JAVADOC: LevelTo: To return the ``level to'' site of the last move.
TYPE: game.functions.ints.match.MatchScore
TYPE JAVADOC: Returns the match score of a player.
NEW CTOR
(matchScore <roleType>)
PARAM JAVADOC: <roleType>: The roleType of the player.
EXAMPLE: (matchScore P1)
TYPE: game.functions.ints.math.Abs
TYPE JAVADOC: Return the absolute value of a value.
NEW CTOR
(abs <int>)
PARAM JAVADOC: <int>: The value.
EXAMPLE: (abs (value Piece at:(to)))
TYPE: game.functions.ints.math.Add
TYPE JAVADOC: Adds many values.
NEW CTOR
(+ <int> <int>)
PARAM JAVADOC: <int>: The first value.
PARAM JAVADOC: <int>: The second value.
EXAMPLE: (+ (value Piece at:(from)) (value Piece at:(to)))
NEW CTOR
(+ ({<int>}  | <intArrayFunction>))
PARAM JAVADOC: {<int>}: The list of the values.
PARAM JAVADOC: <intArrayFunction>: The array of values to sum.
EXAMPLE: (+ {(value Piece at:(from)) (value Piece at:(to)) (value Piece at:(between))})
TYPE: game.functions.ints.math.Div
TYPE JAVADOC: To divide a value by another.
NEW CTOR
(/ <int> <int>)
PARAM JAVADOC: <int>: The value to divide.
PARAM JAVADOC: <int>: To divide by b.
EXAMPLE: (/ (value Piece at:(from)) (value Piece at:(to)))
REMARKS: The result will be an integer and round down the result.
TYPE: game.functions.ints.math.If
TYPE JAVADOC: Returns a value according to a condition.
NEW CTOR
(if <boolean> <int> <int>)
PARAM JAVADOC: <boolean>: The condition.
PARAM JAVADOC: <int>: The integer returned if the condition is true.
PARAM JAVADOC: <int>: The integer returned if the condition is false.
EXAMPLE: (if (is Mover P1) 1 2)
REMARKS: This ludeme is used to get a different int depending on a condition in a value of a ludeme.
TYPE: game.functions.ints.math.Max
TYPE JAVADOC: Returns the maximum of specified values.
NEW CTOR
(max <int> <int>)
PARAM JAVADOC: <int>: The first value.
PARAM JAVADOC: <int>: The second value.
EXAMPLE: (max (mover) (next))
NEW CTOR
(max <intArrayFunction>)
PARAM JAVADOC: <intArrayFunction>: The array of values to maximise.
EXAMPLE: (max (results from:(last To) to:(sites LineOfSight at:(from) All) (count Steps All (from) (to))))
TYPE: game.functions.ints.math.Min
TYPE JAVADOC: Returns the minimum of specified values.
NEW CTOR
(min <int> <int>)
PARAM JAVADOC: <int>: The first value.
PARAM JAVADOC: <int>: The second value.
EXAMPLE: (min (mover) (next))
NEW CTOR
(min <intArrayFunction>)
PARAM JAVADOC: <intArrayFunction>: The array of values to minimise.
EXAMPLE: (min (results from:(last To) to:(sites LineOfSight at:(from) All) (count Steps All (from) (to))))
TYPE: game.functions.ints.math.Mod
TYPE JAVADOC: Returns the modulo of a value.
NEW CTOR
(% <int> <int>)
PARAM JAVADOC: <int>: The value.
PARAM JAVADOC: <int>: The modulo.
EXAMPLE: (% (count Moves) 3)
TYPE: game.functions.ints.math.Mul
TYPE JAVADOC: Returns the product of values.
NEW CTOR
(* <int> <int>)
PARAM JAVADOC: <int>: The first value.
PARAM JAVADOC: <int>: The second value.
EXAMPLE: (* (mover) (next))
NEW CTOR
(* ({<int>}  | <intArrayFunction>))
PARAM JAVADOC: {<int>}: The list of the values.
PARAM JAVADOC: <intArrayFunction>: The array of values to multiply.
EXAMPLE: (* { (mover) (next) (prev) })
TYPE: game.functions.ints.math.Pow
TYPE JAVADOC: Computes the first parameter to the power of the second parameter.
NEW CTOR
(^ <int> <int>)
PARAM JAVADOC: <int>: The value.
PARAM JAVADOC: <int>: The power.
EXAMPLE: (^ (value Piece at:(last To)) 2)
TYPE: game.functions.ints.math.Sub
TYPE JAVADOC: Returns the subtraction A minus B.
NEW CTOR
(- [<int>] <int>)
PARAM JAVADOC: [<int>]: The first value (to subtract from) [0].
PARAM JAVADOC: <int>: The second value (to be subtracted from the first value).
EXAMPLE: (- 1)
EXAMPLE: (- (value Piece at:(last To)) (value Piece at:(last From)))
TYPE: game.functions.ints.size.Size
TYPE JAVADOC: Returns the size of the specified property.
NEW CTOR
(size Array <intArrayFunction>)
PARAM JAVADOC: <intArrayFunction>: The array.
EXAMPLE: (size Array (values Remembered))
NEW CTOR
(size Stack [<siteType>] ([in:<region>]  | [at:<int>]))
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [in:<region>]: The region to count.
PARAM JAVADOC: [at:<int>]: The site from which to compute the count [(last To)].
EXAMPLE: (size Stack at:(last To))
NEW CTOR
(size LargePiece [<siteType>] (in:<region>  | at:<int>))
PARAM JAVADOC: [<siteType>]: The graph element type [default site type of the board].
PARAM JAVADOC: in:<region>: The region to look for large pieces.
PARAM JAVADOC: at:<int>: The site to look for large piece.
EXAMPLE: (size LargePiece at:(last To))
NEW CTOR
(size Group [<siteType>] at:<int> [<direction>] [If:<boolean>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The site to compute the group [(last To)].
PARAM JAVADOC: [<direction>]: The type of directions from the site to compute the group [Adjacent].
PARAM JAVADOC: [If:<boolean>]: The condition of the members of the group [(= (mover) (who at:(to)))].
EXAMPLE: (size Group at:(last To) Orthogonal)
NEW CTOR
(size Territory [<siteType>] (<roleType>  | <player>) [<absoluteDirection>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: <roleType>: The roleType of the player owning the components in the territory.
PARAM JAVADOC: <player>: The index of the player owning the components in the territory.
PARAM JAVADOC: [<absoluteDirection>]: The type of directions from the site to compute the group [Adjacent].
EXAMPLE: (size Territory P1)
TYPE: game.functions.ints.stacking.TopLevel
TYPE JAVADOC: Returns the top level of a stack.
NEW CTOR
(topLevel [<siteType>] at:<int>)
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The site of the stack.
EXAMPLE: (topLevel at:(last To))
REMARKS: If the game is not a stacking game, then level 0 is returned.
TYPE: game.functions.ints.state.Amount
TYPE JAVADOC: Returns the amount of a player.
NEW CTOR
(amount (<roleType>  | <player>))
PARAM JAVADOC: <roleType>: The role of the player.
PARAM JAVADOC: <player>: The index of the player.
EXAMPLE: (amount Mover)
TYPE: game.functions.ints.state.Counter
TYPE JAVADOC: Returns the automatic counter of the game.
NEW CTOR
(counter)
EXAMPLE: (counter)
REMARKS: To use a counter automatically incremented at each move done, this can be set to another value by the move (setCounter).
TYPE: game.functions.ints.state.Mover
TYPE JAVADOC: Returns the index of the current player.
NEW CTOR
(mover)
EXAMPLE: (mover)
REMARKS: To apply some specific condition/rules to the current player.
TYPE: game.functions.ints.state.Next
TYPE JAVADOC: Returns the index of the next player.
NEW CTOR
(next)
EXAMPLE: (next)
REMARKS: This ludeme is used to apply some specific condition or rule to the next player.
TYPE: game.functions.ints.state.Pot
TYPE JAVADOC: Returns the pot of the game.
NEW CTOR
(pot)
EXAMPLE: (pot)
TYPE: game.functions.ints.state.Prev
TYPE JAVADOC: Returns the index of the previous player.
NEW CTOR
(prev [<prevType>])
PARAM JAVADOC: [<prevType>]: The type of the previous state [Mover].
EXAMPLE: (prev)
REMARKS: To apply some specific conditions/rules to the previous player.
TYPE: game.functions.ints.state.Rotation
TYPE JAVADOC: Returns the rotation value of a specified site.
NEW CTOR
(rotation [<siteType>] at:<int> [level:<int>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The location to check.
PARAM JAVADOC: [level:<int>]: The level to check [0].
EXAMPLE: (rotation at:(last To))
TYPE: game.functions.ints.state.Score
TYPE JAVADOC: Returns the score of one specific player.
NEW CTOR
(score (<player>  | <roleType>))
PARAM JAVADOC: <player>: The index of the player.
PARAM JAVADOC: <roleType>: The roleType of the player.
EXAMPLE: (score Mover)
TYPE: game.functions.ints.state.State
TYPE JAVADOC: Returns the local state value of a specified site.
NEW CTOR
(state [<siteType>] at:<int> [level:<int>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The location to check.
PARAM JAVADOC: [level:<int>]: The level to check [0].
EXAMPLE: (state at:(last To))
REMARKS: This ludeme is used for games with local state values associated with pieces.
TYPE: game.functions.ints.state.Var
TYPE JAVADOC: Returns the value stored in the var variable from the context.
NEW CTOR
(var [<string>])
PARAM JAVADOC: [<string>]: The key String value to check.
EXAMPLE: (var "current")
REMARKS: To identify the value stored previously with a key in the context. If no key specified, the var variable of the context is returned.
TYPE: game.functions.ints.state.What
TYPE JAVADOC: Returns the index of the component at a specific location/level.
NEW CTOR
(what [<siteType>] at:<int> [level:<int>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The location to check.
PARAM JAVADOC: [level:<int>]: The level to check [0].
EXAMPLE: (what at:(last To))
TYPE: game.functions.ints.state.Who
TYPE JAVADOC: Returns the index of the owner at a specific location/level.
NEW CTOR
(who [<siteType>] at:<int> [level:<int>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The location to check.
PARAM JAVADOC: [level:<int>]: The level to check.
EXAMPLE: (who at:(last To))
TYPE: game.functions.ints.tile.PathExtent
TYPE JAVADOC: Returns the maximum extent of a path.
NEW CTOR
(pathExtent [<int>] ([<int>]  | [<region>]))
PARAM JAVADOC: [<int>]: The colour of the path [(mover)].
PARAM JAVADOC: [<int>]: The starting point of the path [(lastTo)].
PARAM JAVADOC: [<region>]: The starting points of the path [(regionLastToMove)].
EXAMPLE: (pathExtent (mover))
REMARKS: The path extent is the maximum board width and/or height that the path extends to. This is used in tile-based games with paths, such as Trax.
TYPE: game.functions.ints.trackSite.TrackSite
TYPE JAVADOC: Returns a site on a track.
NEW CTOR
(trackSite FirstSite ([<player>]  | [<roleType>]) [<string>] [from:<int>] [If:<boolean>])
PARAM JAVADOC: [<player>]: The index of the player.
PARAM JAVADOC: [<roleType>]: The role of the player.
PARAM JAVADOC: [<string>]: The name of the track ["Track"].
PARAM JAVADOC: [from:<int>]: The site from where to look [First site of the track].
PARAM JAVADOC: [If:<boolean>]: The condition to verify for that site [True].
EXAMPLE: (trackSite FirstSite if:(is Empty (to)))
NEW CTOR
(trackSite EndSite ([<player>]  | [<roleType>]) [<string>])
PARAM JAVADOC: [<player>]: The index of the player.
PARAM JAVADOC: [<roleType>]: The role of the player.
PARAM JAVADOC: [<string>]: The name of the track ["Track"].
EXAMPLE: (trackSite EndSite)
NEW CTOR
(trackSite Move [from:<int>] ([<roleType>]  | [<player>]  | [<string>]) steps:<int>)
PARAM JAVADOC: [from:<int>]: The current location [(from)].
PARAM JAVADOC: [<roleType>]: The role of the owner of the track [Mover].
PARAM JAVADOC: [<player>]: The owner of the track [(mover)].
PARAM JAVADOC: [<string>]: The name of the track.
PARAM JAVADOC: steps:<int>: The distance to move on the track.
EXAMPLE: (trackSite Move steps:(count Pips))
TYPE: game.functions.ints.value.Value
TYPE JAVADOC: Returns the value of the specified property.
NEW CTOR
(value Random <rangeFunction>)
PARAM JAVADOC: <rangeFunction>: The range.
EXAMPLE: (value Random (range 3 5))
NEW CTOR
(value <valueSimpleType>)
PARAM JAVADOC: <valueSimpleType>: The property to return the value.
EXAMPLE: (value Pending)
NEW CTOR
(value Player (<int>  | <roleType>))
PARAM JAVADOC: <int>: The index of the player.
PARAM JAVADOC: <roleType>: The roleType of the player.
EXAMPLE: (value Player (who at:(to)))
NEW CTOR
(value Piece [<siteType>] at:<int> [level:<int>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The location to check.
PARAM JAVADOC: [level:<int>]: The level to check.
EXAMPLE: (value Piece at:(to))
NEW CTOR
(value)
EXAMPLE: (value)
TYPE: game.functions.ints.value.ValueSimpleType
TYPE JAVADOC: Defines the types of properties than can be returned by the super ludeme value with no parameter.
CONST JAVADOC: Pending: To get the pending value if the previous state causes the current state to be  pending with a specific value.
CONST JAVADOC: MoveLimit: To get the move limit of a game.
CONST JAVADOC: TurnLimit: To get the turn limit of a game.
TYPE: game.functions.range.Range
TYPE JAVADOC: Returns a range of values (inclusive) according to some specified condition.
NEW CTOR
(range <int> [<int>])
PARAM JAVADOC: <int>: Lower extent of range (inclusive).
PARAM JAVADOC: [<int>]: Upper extent of range (inclusive) [same as min].
EXAMPLE: (range (from) (to))
TYPE: game.functions.range.math.Exact
TYPE JAVADOC: Returns a range of exactly one value.
NEW CTOR
(exact <int>)
PARAM JAVADOC: <int>: The value in question.
EXAMPLE: (exact 4)
REMARKS: The exact value is both the minimum and maximum of its range.
TYPE: game.functions.range.math.Max
TYPE JAVADOC: Returns a range with a specified maximum (inclusive).
NEW CTOR
(max <int>)
PARAM JAVADOC: <int>: Upper extent of range (inclusive).
EXAMPLE: (max 4)
TYPE: game.functions.range.math.Min
TYPE JAVADOC: Returns a range with a specified minimum (inclusive).
NEW CTOR
(min <int>)
PARAM JAVADOC: <int>: Lower extent of range (inclusive).
EXAMPLE: (min 4)
TYPE: game.functions.region.foreach.ForEach
TYPE JAVADOC: Returns a region filtering with a condition or build according to different player indices.
NEW CTOR
(forEach Level [<siteType>] at:<int> [<stackDirection>] [If:<boolean>] [startAt:<int>])
PARAM JAVADOC: [<siteType>]: The type of graph element.
PARAM JAVADOC: at:<int>: The site.
PARAM JAVADOC: [<stackDirection>]: The direction to count in the stack [FromTop].
PARAM JAVADOC: [If:<boolean>]: The condition to satisfy.
PARAM JAVADOC: [startAt:<int>]: The level to start to look at.
EXAMPLE: (forEach Level at:(site))
NEW CTOR
(forEach Team <region>)
PARAM JAVADOC: <region>: The region.
EXAMPLE: (forEach Team (forEach (team) (sites Occupied by:Player)))
NEW CTOR
(forEach <region> If:<boolean>)
PARAM JAVADOC: <region>: The original region.
PARAM JAVADOC: If:<boolean>: The condition to satisfy.
EXAMPLE: (forEach (sites Occupied by:P1) if:(= (what at:(site)) (id "Pawn1")))
NEW CTOR
(forEach of:<region> <region>)
PARAM JAVADOC: of:<region>: The region of sites.
PARAM JAVADOC: <region>: The region to compute with each site of the first region.
EXAMPLE: (forEach of:(sites Occupied by:Mover) (sites To (slide (from (site)))))
NEW CTOR
(forEach <intArrayFunction> <region>)
PARAM JAVADOC: <intArrayFunction>: The list of players.
PARAM JAVADOC: <region>: The region.
EXAMPLE: (forEach (players Ally of:(next)) (sites Occupied by:Player))
TYPE: game.functions.region.last.Last
TYPE JAVADOC: Returns sites related to the last move.
NEW CTOR
(last Between)
EXAMPLE: (last Between)
TYPE: game.functions.region.math.Difference
TYPE JAVADOC: Returns the set difference, i.e. elements of the source region are not in the  subtraction region.
NEW CTOR
(difference <region> (<region>  | <int>))
PARAM JAVADOC: <region>: The original region.
PARAM JAVADOC: <region>: The region to remove from the original.
PARAM JAVADOC: <int>: The site to remove from the original.
EXAMPLE: (difference (sites Occupied by:Mover) (sites Mover))
TYPE: game.functions.region.math.Expand
TYPE JAVADOC: Expands a given region/site in all directions the specified number of steps.
NEW CTOR
(expand ([<int>]  | [<string>]) (<region> (origin:<int>) [steps:<int>] [<absoluteDirection>] [<siteType>])
PARAM JAVADOC: [<int>]: The index of the container.
PARAM JAVADOC: [<string>]: The name of the container.
PARAM JAVADOC: <region>: The region.
PARAM JAVADOC: origin:<int>: The site.
PARAM JAVADOC: [steps:<int>]: The distance to expand [steps:1].
PARAM JAVADOC: [<absoluteDirection>]: The absolute direction to expand.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (expand (sites Bottom) steps:2)
TYPE: game.functions.region.math.If
TYPE JAVADOC: Returns a region when the condition is satisfied and another when it is not.
NEW CTOR
(if <boolean> <region> [<region>])
PARAM JAVADOC: <boolean>: The condition to satisfy.
PARAM JAVADOC: <region>: The region returned when the condition is satisfied.
PARAM JAVADOC: [<region>]: The region returned when the condition is not satisfied.
EXAMPLE: (if (is Mover P1) (sites P1) (sites P2))
TYPE: game.functions.region.math.Intersection
TYPE JAVADOC: Returns the intersection of many regions.
NEW CTOR
(intersection <region> <region>)
PARAM JAVADOC: <region>: The first region.
PARAM JAVADOC: <region>: The second region.
EXAMPLE: (intersection (sites Mover) (sites Occupied by:Mover))
NEW CTOR
(intersection {<region>})
PARAM JAVADOC: {<region>}: The different regions.
EXAMPLE: (intersection {(sites Mover) (sites Occupied by:Mover) (sites Occupied by:Next)})
TYPE: game.functions.region.math.Union
TYPE JAVADOC: Merges many regions into one.
NEW CTOR
(union <region> <region>)
PARAM JAVADOC: <region>: The first region.
PARAM JAVADOC: <region>: The second region.
EXAMPLE: (union (sites P1) (sites P2))
NEW CTOR
(union {<region>})
PARAM JAVADOC: {<region>}: The different regions.
EXAMPLE: (union {(sites P1) (sites P2) (sites P3)})
TYPE: game.functions.region.sites.LineOfSightType
TYPE JAVADOC: Specifies the expected types of line of sight tests.
CONST JAVADOC: Empty: Empty sites in line of sight along each direction.
CONST JAVADOC: Farthest: Farthest empty site in line of sight along each direction.
CONST JAVADOC: Piece: First piece (of any type) in line of sight along each direction.
TYPE: game.functions.region.sites.Sites
TYPE JAVADOC: Returns the specified set of sites.
NEW CTOR
(sites)
EXAMPLE: (sites)
NEW CTOR
(sites Loop [inside:<boolean>] [<siteType>] ([surround:<roleType>]  | [{<roleType>}]) [<direction>] [<int>] ([<int>]  | [<region>]))
PARAM JAVADOC: [inside:<boolean>]: True to return the sites inside the loop [False].
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [surround:<roleType>]: Used to define the inside condition of the loop.
PARAM JAVADOC: [{<roleType>}]: The list of items inside the loop.
PARAM JAVADOC: [<direction>]: The direction of the connection [Adjacent].
PARAM JAVADOC: [<int>]: The owner of the looping pieces [Mover].
PARAM JAVADOC: [<int>]: The starting point of the loop [(last To)].
PARAM JAVADOC: [<region>]: The region to start to detect the loop.
EXAMPLE: (sites Loop)
NEW CTOR
(sites Pattern {<stepType>} [<siteType>] [from:<int>] ([what:<int>]  | [whats:{<int>}]))
PARAM JAVADOC: {<stepType>}: The walk describing the pattern.
PARAM JAVADOC: [<siteType>]: The type of the site from to detect the pattern.
PARAM JAVADOC: [from:<int>]: The site from to detect the pattern [(last To)].
PARAM JAVADOC: [what:<int>]: The piece to check in the pattern [piece in from].
PARAM JAVADOC: [whats:{<int>}]: The sequence of pieces to check in the pattern [piece in from].
EXAMPLE: (sites Pattern {F R F R F})
NEW CTOR
(sites Hidden [<hiddenData>] [<siteType>] (to:<player>  | To:<roleType>))
PARAM JAVADOC: [<hiddenData>]: The type of hidden data [Invisible].
PARAM JAVADOC: [<siteType>]: The graph element type [default of the board].
PARAM JAVADOC: to:<player>: The player with these hidden information.
PARAM JAVADOC: To:<roleType>: The roleType with these hidden information.
EXAMPLE: (sites Hidden to:Mover)
EXAMPLE: (sites Hidden What to:(player (next)))
EXAMPLE: (sites Hidden Rotation Vertex to:Next)
NEW CTOR
(sites Between [<direction>] [<siteType>] from:<int> [fromIncluded:<boolean>] to:<int> [toIncluded:<boolean>] [cond:<boolean>])
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: [<siteType>]: The type of the graph element [Default SiteType].
PARAM JAVADOC: from:<int>: The 'from' site.
PARAM JAVADOC: [fromIncluded:<boolean>]: True if the 'from' site is included in the result [False].
PARAM JAVADOC: to:<int>: The 'to' site.
PARAM JAVADOC: [toIncluded:<boolean>]: True if the 'to' site is included in the result [False].
PARAM JAVADOC: [cond:<boolean>]: The condition to include the site in between [True].
EXAMPLE: (sites Between from:(last From) to:(last To))
NEW CTOR
(sites LargePiece [<siteType>] at:<int>)
PARAM JAVADOC: [<siteType>]: The type of the graph element [Default SiteType].
PARAM JAVADOC: at:<int>: The site to look (the root).
EXAMPLE: (sites LargePiece at:(last To))
NEW CTOR
(sites Random [<region>] [num:<int>])
PARAM JAVADOC: [<region>]: The region to get [(sites Empty Cell)].
PARAM JAVADOC: [num:<int>]: The number of sites to return [1].
EXAMPLE: (sites Random)
NEW CTOR
(sites Crossing at:<int> ([<player>]  | [<roleType>]))
PARAM JAVADOC: at:<int>: The specific starting position needs to crossing check.
PARAM JAVADOC: [<player>]: The returned crossing items player type.
PARAM JAVADOC: [<roleType>]: The returned crossing items player role type.
EXAMPLE: (sites Crossing at:(last To) All)
NEW CTOR
(sites Group [<siteType>] (at:<int>  | From:<region>) [<direction>] [If:<boolean>])
PARAM JAVADOC: [<siteType>]: The type of the graph elements of the group.
PARAM JAVADOC: at:<int>: The specific starting position of the group.
PARAM JAVADOC: From:<region>: The specific starting positions of the groups.
PARAM JAVADOC: [<direction>]: The directions of the connection between elements in the group [Adjacent].
PARAM JAVADOC: [If:<boolean>]: The condition on the pieces to include in the group.
EXAMPLE: (sites Group Vertex at:(site))
NEW CTOR
(sites <sitesEdgeType>)
PARAM JAVADOC: <sitesEdgeType>: Type of sites to return.
EXAMPLE: (sites Axial)
NEW CTOR
(sites <sitesSimpleType> [<siteType>])
PARAM JAVADOC: <sitesSimpleType>: Type of sites to return.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (sites Top)
EXAMPLE: (sites Playable)
EXAMPLE: (sites Right Vertex)
NEW CTOR
(sites [<siteType>] {<string>})
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: {<string>}: The sites corresponding to these coordinates.
EXAMPLE: (sites {"A1" "B1" "A2" "B2"})
NEW CTOR
(sites <sitesMoveType> <moves>)
PARAM JAVADOC: <sitesMoveType>: Type of sites to return.
PARAM JAVADOC: <moves>: The moves for which to collect the positions.
EXAMPLE: (sites From (forEach Piece))
EXAMPLE: (sites To (forEach Piece))
NEW CTOR
(sites ({<int>}  | <intArrayFunction>))
PARAM JAVADOC: {<int>}: The list of the sites.
PARAM JAVADOC: <intArrayFunction>: The IntArrayFunction.
EXAMPLE: (sites {1..10})
EXAMPLE: (sites {1 5 10})
NEW CTOR
(sites [<siteType>] [<int>] {{<stepType>}} [rotations:<boolean>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The location from which to compute the walk [(from)].
PARAM JAVADOC: {{<stepType>}}: The different turtle steps defining a graphic turtle walk.
PARAM JAVADOC: [rotations:<boolean>]: True if the move includes all the rotations of the walk [True].
EXAMPLE: (sites { {F F R F} {F F L F} })
NEW CTOR
(sites <sitesIndexType> [<siteType>] [<int>])
PARAM JAVADOC: <sitesIndexType>: Type of sites to return.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: Index of the row, column or phase to return. This can also be the value of the local state for the State SitesIndexType or the container to search for the Empty SitesIndexType.
EXAMPLE: (sites Row 1)
NEW CTOR
(sites Side [<siteType>] ([<player>]  | [<roleType>]  | [<compassDirection>]))
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<player>]: Index of the player or the component.
PARAM JAVADOC: [<roleType>]: The Role type corresponding to the index.
PARAM JAVADOC: [<compassDirection>]: Direction of the side to return.
EXAMPLE: (sites Side NE)
NEW CTOR
(sites Distance [<siteType>] [<relationType>] [<step>] [newRotation:<int>] from:<int> <rangeFunction>)
PARAM JAVADOC: [<siteType>]: The graph element type [default site type of the board].
PARAM JAVADOC: [<relationType>]: The relation type of the steps [Adjacent].
PARAM JAVADOC: [<step>]: Define a particular step move to step.
PARAM JAVADOC: [newRotation:<int>]: Define a new rotation at each step move in using the (value) iterator for the rotation.
PARAM JAVADOC: from:<int>: Index of the site.
PARAM JAVADOC: <rangeFunction>: Distance from the site.
EXAMPLE: (sites Distance from:(last To) (exact 5))
EXAMPLE: (sites Distance (step Forward (to if:(is Empty (to)))) newRotation:(+ (value) 1) from:(from) (range 1 Infinity))
NEW CTOR
(sites ([<player>]  | [<roleType>]) [<siteType>] [<string>])
PARAM JAVADOC: [<player>]: Index of the player or the component.
PARAM JAVADOC: [<roleType>]: The Role type corresponding to the index.
PARAM JAVADOC: [<siteType>]: The graph element type of the coordinate is specified.
PARAM JAVADOC: [<string>]: The name of the region to return or of a single coordinate.
EXAMPLE: (sites P1)
EXAMPLE: (sites "E5")
NEW CTOR
(sites Track ([<player>]  | [<roleType>]) [<string>] [from:<int>] [to:<int>])
PARAM JAVADOC: [<player>]: Index of the player owned the track.
PARAM JAVADOC: [<roleType>]: The Role type corresponding to the index.
PARAM JAVADOC: [<string>]: The name of the track.
PARAM JAVADOC: [from:<int>]: Only the sites in the track from that site (included).
PARAM JAVADOC: [to:<int>]: Only the sites in the track until to reach that site (included).
EXAMPLE: (sites Track)
NEW CTOR
(sites <sitesPlayerType> [<siteType>] ([<player>]  | [<roleType>]) [<nonDecision>] [<string>])
PARAM JAVADOC: <sitesPlayerType>: Type of sites to return.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType].
PARAM JAVADOC: [<player>]: Index of the player or the component.
PARAM JAVADOC: [<roleType>]: The Role type corresponding to the index.
PARAM JAVADOC: [<nonDecision>]: Rules used to generate moves for finding winning sites.
PARAM JAVADOC: [<string>]: The name of the board or region to return.
EXAMPLE: (sites Hand Mover)
EXAMPLE: (sites Winning Next (add (to (sites Empty))))
NEW CTOR
(sites Start <piece>)
PARAM JAVADOC: <piece>: Index of the player or the component.
EXAMPLE: (sites Start (piece (what at:(from))))
NEW CTOR
(sites Occupied (by:<player>  | By:<roleType>) ([container:<int>] ([Container:<string>]) ([component:<int>] ([Component:<string>]  | [components:{<string>}]) [top:<boolean>] [on:<siteType>])
PARAM JAVADOC: by:<player>: The index of the owner.
PARAM JAVADOC: By:<roleType>: The roleType of the owner.
PARAM JAVADOC: [container:<int>]: The index of the container.
PARAM JAVADOC: [Container:<string>]: The name of the container.
PARAM JAVADOC: [component:<int>]: The index of the component.
PARAM JAVADOC: [Component:<string>]: The name of the component.
PARAM JAVADOC: [components:{<string>}]: The names of the component.
PARAM JAVADOC: [top:<boolean>]: True to look only the top of the stack [True].
PARAM JAVADOC: [on:<siteType>]: The type of the graph element.
EXAMPLE: (sites Occupied by:Mover)
NEW CTOR
(sites Incident <siteType> of:<siteType> at:<int> ([owner:<player>]  | [<roleType>]))
PARAM JAVADOC: <siteType>: The graph type of the result.
PARAM JAVADOC: of:<siteType>: The graph type of the index.
PARAM JAVADOC: at:<int>: Index of the element to check.
PARAM JAVADOC: [owner:<player>]: The owner of the site to return.
PARAM JAVADOC: [<roleType>]: The role of the owner of the site to return.
EXAMPLE: (sites Incident Edge of:Vertex at:(last To))
EXAMPLE: (sites Incident Cell of:Edge at:(last To) Mover)
NEW CTOR
(sites Around [<siteType>] (<int>  | <region>) [<regionTypeDynamic>] [distance:<int>] [<absoluteDirection>] [If:<boolean>] [includeSelf:<boolean>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: <int>: The location to check.
PARAM JAVADOC: <region>: The region to check.
PARAM JAVADOC: [<regionTypeDynamic>]: The type of the dynamic region.
PARAM JAVADOC: [distance:<int>]: The distance around which to check [1].
PARAM JAVADOC: [<absoluteDirection>]: The directions to use [Adjacent].
PARAM JAVADOC: [If:<boolean>]: The condition to satisfy around the site to be included in the result.
PARAM JAVADOC: [includeSelf:<boolean>]: True if the origin site/region is included in the result [False].
EXAMPLE: (sites Around (last To))
EXAMPLE: (sites Around (to) Orthogonal if:(is Empty (to)))
NEW CTOR
(sites Direction (from:<int>  | From:<region>) [<direction>] [included:<boolean>] [stop:<boolean>] [stopIncluded:<boolean>] [distance:<int>] [<siteType>])
PARAM JAVADOC: from:<int>: The origin location.
PARAM JAVADOC: From:<region>: The origin region location.
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: [included:<boolean>]: True if the origin is included in the result [False].
PARAM JAVADOC: [stop:<boolean>]: When the condition is true in one specific direction, sites are no longer added to the result [False].
PARAM JAVADOC: [stopIncluded:<boolean>]: True if the site stopping the radial in each direction is included in the result [False].
PARAM JAVADOC: [distance:<int>]: The distance around which to check [Infinite].
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (sites Direction from:(last To) Diagonal)
NEW CTOR
(sites LineOfSight [<lineOfSightType>] [<siteType>] [at:<int>] [<direction>])
PARAM JAVADOC: [<lineOfSightType>]: The line-of-sight test to apply [Piece].
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [at:<int>]: The location [(last To)].
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
EXAMPLE: (sites LineOfSight Orthogonal)
TYPE: game.functions.region.sites.SitesEdgeType
TYPE JAVADOC: Specifies set of edge sites.
CONST JAVADOC: Axial: The axials edges sites.
CONST JAVADOC: Horizontal: The horizontal edges sites.
CONST JAVADOC: Vertical: The vertical edges sites.
CONST JAVADOC: Angled: The angled edges sites.
CONST JAVADOC: Slash: The slash edges sites.
CONST JAVADOC: Slosh: The slosh edges sites.
TYPE: game.functions.region.sites.SitesIndexType
TYPE JAVADOC: Specifies sets of board sites by some indexed property.
CONST JAVADOC: Row: Sites in a specified row.
CONST JAVADOC: Column: Sites in a specified column.
CONST JAVADOC: Phase: Sites in a specified phase.
CONST JAVADOC: Cell: Vertices that make up a cell.
CONST JAVADOC: Edge: End points of an edge.
CONST JAVADOC: State: Sites with a specified state value.
CONST JAVADOC: Empty: Empty (i.e. unoccupied) sites of a container.
CONST JAVADOC: Layer: Sites in a specified layer.
TYPE: game.functions.region.sites.SitesMoveType
TYPE JAVADOC: Specifies sets of sites based on the positions of moves.
CONST JAVADOC: From: From-positions of a collection of moves as a set of sites.
CONST JAVADOC: Between: Between-positions of a collection of moves as a set of sites.
CONST JAVADOC: To: To-positions of a collection of moves as a set of sites.
TYPE: game.functions.region.sites.SitesPlayerType
TYPE JAVADOC: Specifies sets of sites associated with given players.
CONST JAVADOC: Hand: Sites in a player's hand.
CONST JAVADOC: Winning: Sites that would be winning moves for the current player.
TYPE: game.functions.region.sites.SitesSimpleType
TYPE JAVADOC: Specifies set of sites that do not require any parameters (apart from the graph element type).
CONST JAVADOC: Board: All board sites.
CONST JAVADOC: Top: Sites on the top side of the board.
CONST JAVADOC: Bottom: Sites on the bottom side of the board.
CONST JAVADOC: Left: Sites on the left side of the board.
CONST JAVADOC: Right: Sites on the right side of the board.
CONST JAVADOC: Inner: Interior board sites.
CONST JAVADOC: Outer: Outer board sites.
CONST JAVADOC: Perimeter: Perimeter board sites.
CONST JAVADOC: Corners: Corner board sites.
CONST JAVADOC: ConcaveCorners: Concave corner board sites.
CONST JAVADOC: ConvexCorners: Convex corner board sites.
CONST JAVADOC: Major: Major generator board sites.
CONST JAVADOC: Minor: Minor generator board sites.
CONST JAVADOC: Centre: Centre board site(s).
CONST JAVADOC: Hint: Sites that contain a puzzle hint.
CONST JAVADOC: ToClear: Sites to remove at the end of a capture sequence.
CONST JAVADOC: LineOfPlay: Sites in the line of play. Applies to domino game   (returns an empty region for other games).
CONST JAVADOC: Pending: Sites with a non-zero ``pending'' value in the game state.
CONST JAVADOC: Playable: Playable sites of a boardless game. For other games, returns the set of   empty sites adjacent to occupied sites.
CONST JAVADOC: LastTo: The set of ``to'' sites of the last move.
CONST JAVADOC: LastFrom: The set of ``from'' sites of the last move.
TYPE: game.match.Games
TYPE JAVADOC: Defines the games used in a match.
NEW CTOR
(games (<subgame>  | {<subgame>}))
PARAM JAVADOC: <subgame>: The game that makes up the subgames of the match.
PARAM JAVADOC: {<subgame>}: The games that make up the subgames of the match.
EXAMPLE: (games { (subgame "Tic-Tac-Toe" next:1) (subgame "Yavalath" next:2) (subgame "Breakthrough" next:0) })
TYPE: game.match.Match
TYPE JAVADOC: Defines a match made up of a series of subgames.
NEW CTOR
(match <string> [<players>] <games> <end>)
PARAM JAVADOC: <string>: The name of the match.
PARAM JAVADOC: [<players>]: The players of the match [(players 2)].
PARAM JAVADOC: <games>: The different subgames that make up the match.
PARAM JAVADOC: <end>: The end rules of the match.
EXAMPLE: (match "Match" (players 2) (games { (subgame "Tic-Tac-Toe" next:1) (subgame "Yavalath" next:2) (subgame "Breakthrough" next:0) } ) (end { (if (and (= (count Trials) 3) (> (matchScore P1) (matchScore P2))) (result P1 Win)) (if (and (= (count Trials) 3) (< (matchScore P1) (matchScore P2))) (result P2 Win)) (if (and (= (count Trials) 3) (= (matchScore P1) (matchScore P2))) (result P1 Draw)) }) )
TYPE: game.match.Subgame
TYPE JAVADOC: Defines an instance game of a match.
NEW CTOR
(subgame <string> [<string>] [next:<int>] [result:<int>])
PARAM JAVADOC: <string>: The name of the game instance.
PARAM JAVADOC: [<string>]: The option of the game instance.
PARAM JAVADOC: [next:<int>]: The index of the next instance.
PARAM JAVADOC: [result:<int>]: The score result for the match when game instance is over.
EXAMPLE: (subgame "Tic-Tac-Toe")
TYPE: game.mode.Mode
TYPE JAVADOC: Describes the mode of play.
NEW CTOR
(mode <modeType>)
PARAM JAVADOC: <modeType>: The mode of the game.
EXAMPLE: (mode Simultaneous)
TYPE: game.players.Player
TYPE JAVADOC: A player of the game.
NEW CTOR
(player <directionFacing>)
PARAM JAVADOC: <directionFacing>: The direction of the pieces of the player.
EXAMPLE: (player N)
REMARKS: Defines a player with a specific name or direction.
TYPE: game.players.Players
TYPE JAVADOC: Defines the players of the game.
NEW CTOR
(players {<player>})
PARAM JAVADOC: {<player>}: The list of players.
EXAMPLE: (players {(player N) (player S)})
NEW CTOR
(players int)
PARAM JAVADOC: int: The number of players.
EXAMPLE: (players 2)
TYPE: game.rules.Rules
TYPE JAVADOC: Sets the game's rules.
NEW CTOR
(rules [<meta>] [<start>] <play> <end>)
PARAM JAVADOC: [<meta>]: Metarules defined before play that supersede all other rules.
PARAM JAVADOC: [<start>]: Rules defining the starting position.
PARAM JAVADOC: <play>: Rules of play.
PARAM JAVADOC: <end>: Ending rules.
EXAMPLE: (rules (play (move Add (to (sites Empty)))) (end (if (is Line 3) (result Mover Win))) )
NEW CTOR
(rules [<meta>] [<start>] [<play>] phases:{<phase>} [<end>])
PARAM JAVADOC: [<meta>]: Metarules defined before play that supersede all other rules.
PARAM JAVADOC: [<start>]: The starting rules.
PARAM JAVADOC: [<play>]: The playing rules shared between each phase.
PARAM JAVADOC: phases:{<phase>}: The phases of the game.
PARAM JAVADOC: [<end>]: The ending rules shared between each phase.
EXAMPLE: (rules (start (place "Ball" "Hand" count:3)) phases:{ (phase "Placement" (play (fromTo (from (handSite Mover)) (to (sites Empty))) ) (nextPhase ("HandEmpty" P2) "Movement") ) (phase "Movement" (play (forEach Piece)) ) } (end (if (is Line 3) (result Mover Win))) )
TYPE: game.rules.end.ByScore
TYPE JAVADOC: Is used to end a game based on the score of each player.
NEW CTOR
(byScore [{<score>}] [misere:<boolean>])
PARAM JAVADOC: [{<score>}]: The final score of each player.
PARAM JAVADOC: [misere:<boolean>]: Misere version of the ludeme [False].
EXAMPLE: (byScore)
TYPE: game.rules.end.End
TYPE JAVADOC: Defines the rules for ending a game.
NEW CTOR
(end (<endRule>  | {<endRule>}))
PARAM JAVADOC: <endRule>: The ending rule.
PARAM JAVADOC: {<endRule>}: The ending rules.
EXAMPLE: (end (if (no Moves Next) (result Mover Win) ) )
TYPE: game.rules.end.EndRule
TYPE JAVADOC: Declares a generic end rule.
SUBCLASS: game.rules.end.ForEach
SUBCLASS: game.rules.end.If
TYPE: game.rules.end.ForEach
TYPE JAVADOC: Applies the end condition to each player of a certain type.
NEW CTOR
(forEach ([<roleType>]  | [Track]) If:<boolean> <result>)
PARAM JAVADOC: [<roleType>]: Role type to iterate through [Shared].
PARAM JAVADOC: If:<boolean>: Condition to apply.
PARAM JAVADOC: <result>: Result to return.
EXAMPLE: (forEach NonMover if:(is Blocked Player) (result Player Loss))
TYPE: game.rules.end.If
TYPE JAVADOC: Implements the condition(s) for ending the game, and deciding its result.
NEW CTOR
(if <boolean> ([<if>]  | [{<if>}]) [<result>])
PARAM JAVADOC: <boolean>: Condition to end the game.
PARAM JAVADOC: [<if>]: Sub-condition to check.
PARAM JAVADOC: [{<if>}]: Sub-conditions to check.
PARAM JAVADOC: [<result>]: Default result to return if no sub-condition is satisfied.
EXAMPLE: (if (is Mover (next)) (result Mover Win))
REMARKS: If the stopping condition is met then this rule will return a result, whether any sub-conditions are defined or not.
TYPE: game.rules.end.Payoffs
TYPE JAVADOC: Is used to end a game based on the payoff of each player.
NEW CTOR
(payoffs {<payoff>})
PARAM JAVADOC: {<payoff>}: The final score of each player.
EXAMPLE: (payoffs {(payoff P1 5.5) (payoff P2 1.2)})
TYPE: game.rules.end.Result
TYPE JAVADOC: Gives the result when an ending rule is reached for a specific player/team.
NEW CTOR
(result <roleType> <resultType>)
PARAM JAVADOC: <roleType>: The player or the team.
PARAM JAVADOC: <resultType>: The result type of the player or team.
EXAMPLE: (result Mover Win)
TYPE: game.rules.meta.Automove
TYPE JAVADOC: To apply automatically to the game all the legal moves only applicable to a  single site.
NEW CTOR
(automove)
EXAMPLE: (automove)
TYPE: game.rules.meta.Gravity
TYPE JAVADOC: To apply a certain type of gravity after making a move.
NEW CTOR
(gravity [PyramidalDrop])
EXAMPLE: (gravity)
TYPE: game.rules.meta.Meta
TYPE JAVADOC: Defines a metarule defined before play that supersedes all other rules.
NEW CTOR
(meta ({<metaRule>}  | <metaRule>))
PARAM JAVADOC: {<metaRule>}: A collection of metarules.
PARAM JAVADOC: <metaRule>: A single metarule.
EXAMPLE: (meta (swap))
TYPE: game.rules.meta.MetaRule
TYPE JAVADOC: Metarule defined before play that supersedes all other rules.
SUBCLASS: game.rules.meta.Automove
SUBCLASS: game.rules.meta.Gravity
SUBCLASS: game.rules.meta.no.No
SUBCLASS: game.rules.meta.PassEnd
SUBCLASS: game.rules.meta.Pin
SUBCLASS: game.rules.meta.Swap
TYPE: game.rules.meta.PassEnd
TYPE JAVADOC: To apply a certain end result to all players if all players pass their turns.
NEW CTOR
(passEnd <passEndType>)
PARAM JAVADOC: <passEndType>: The type of passEnd.
EXAMPLE: (passEnd NoEnd)
TYPE: game.rules.meta.Pin
TYPE JAVADOC: To filter some remove moves in case some pieces can not be removed because of pieces on top of them.
NEW CTOR
(pin SupportMultiple)
EXAMPLE: (pin SupportMultiple)
TYPE: game.rules.meta.Swap
TYPE JAVADOC: To activate the swap rule.
NEW CTOR
(swap)
EXAMPLE: (swap)
TYPE: game.rules.meta.no.No
TYPE JAVADOC: Defines a no meta rules to forbid certain moves.
NEW CTOR
(no Repeat [<repetitionType>])
PARAM JAVADOC: [<repetitionType>]: Type of repetition to forbid [Positional].
EXAMPLE: (no Repeat PositionalInTurn)
NEW CTOR
(no Suicide)
EXAMPLE: (no Suicide)
TYPE: game.rules.phase.NextPhase
TYPE JAVADOC: Enables a player or all the players to proceed to another phase of the game.
NEW CTOR
(nextPhase ([<roleType>]  | [<player>]) [<boolean>] [<string>])
PARAM JAVADOC: [<roleType>]: The roleType of the player [Shared].
PARAM JAVADOC: [<player>]: The index of the player.
PARAM JAVADOC: [<boolean>]: The condition to satisfy to go to another phase [True].
PARAM JAVADOC: [<string>]: The name of the phase.
EXAMPLE: (nextPhase Mover (= (count Moves) 10) "Movement")
REMARKS: If no phase is specified, moves to the next phase in the list, wrapping back to the first phase if needed. The ludeme returns Undefined (-1) if the condition is false or if the named phase does not exist.
TYPE: game.rules.phase.Phase
TYPE JAVADOC: Defines the phase of a game.
NEW CTOR
(phase <string> [<roleType>] [<mode>] <play> [<end>] ([<nextPhase>]  | [{<nextPhase>}]))
PARAM JAVADOC: <string>: The name of the phase.
PARAM JAVADOC: [<roleType>]: The roleType of the owner of the phase [Shared].
PARAM JAVADOC: [<mode>]: The mode of this phase within the game [mode defined for whole game)].
PARAM JAVADOC: <play>: The playing rules of this phase.
PARAM JAVADOC: [<end>]: The ending rules of this phase.
PARAM JAVADOC: [<nextPhase>]: The next phase of this phase.
PARAM JAVADOC: [{<nextPhase>}]: The next phases of this phase.
EXAMPLE: (phase "Movement" (play (forEach Piece)))
REMARKS: A phase can be defined for only one player.
TYPE: game.rules.play.Play
TYPE JAVADOC: Checks the playing rules of the game.
NEW CTOR
(play <moves>)
PARAM JAVADOC: <moves>: The legal moves of the playing rules.
EXAMPLE: (play (forEach Piece))
TYPE: game.rules.play.moves.Moves
TYPE JAVADOC: Returns a moves collection.
SUBCLASS: game.rules.play.moves.decision.Decision
SUBCLASS: game.rules.play.moves.decision.Move
SUBCLASS: game.rules.play.moves.nonDecision.effect.Add
SUBCLASS: game.rules.play.moves.nonDecision.effect.Apply
SUBCLASS: game.rules.play.moves.nonDecision.effect.Attract
SUBCLASS: game.rules.play.moves.nonDecision.effect.Bet
SUBCLASS: game.rules.play.moves.nonDecision.effect.Claim
SUBCLASS: game.rules.play.moves.nonDecision.effect.Custodial
SUBCLASS: game.rules.play.moves.nonDecision.effect.Deal
SUBCLASS: game.rules.play.moves.nonDecision.effect.Directional
SUBCLASS: game.rules.play.moves.nonDecision.effect.Effect
SUBCLASS: game.rules.play.moves.nonDecision.effect.Enclose
SUBCLASS: game.rules.play.moves.nonDecision.effect.Flip
SUBCLASS: game.rules.play.moves.nonDecision.effect.FromTo
SUBCLASS: game.rules.play.moves.nonDecision.effect.Hop
SUBCLASS: game.rules.play.moves.nonDecision.effect.Intervene
SUBCLASS: game.rules.play.moves.nonDecision.effect.Leap
SUBCLASS: game.rules.play.moves.nonDecision.effect.Note
SUBCLASS: game.rules.play.moves.nonDecision.effect.Pass
SUBCLASS: game.rules.play.moves.nonDecision.effect.PlayCard
SUBCLASS: game.rules.play.moves.nonDecision.effect.Promote
SUBCLASS: game.rules.play.moves.nonDecision.effect.Propose
SUBCLASS: game.rules.play.moves.nonDecision.effect.Push
SUBCLASS: game.rules.play.moves.nonDecision.effect.Random
SUBCLASS: game.rules.play.moves.nonDecision.effect.Remove
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.AvoidStoredState
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.Do
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.FirstMoveOnTrack
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.max.Max
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.Priority
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.While
SUBCLASS: game.rules.play.moves.nonDecision.effect.Roll
SUBCLASS: game.rules.play.moves.nonDecision.effect.Satisfy
SUBCLASS: game.rules.play.moves.nonDecision.effect.Select
SUBCLASS: game.rules.play.moves.nonDecision.effect.set.Set
SUBCLASS: game.rules.play.moves.nonDecision.effect.Shoot
SUBCLASS: game.rules.play.moves.nonDecision.effect.Slide
SUBCLASS: game.rules.play.moves.nonDecision.effect.Sow
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.AddScore
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.forget.Forget
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.MoveAgain
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.remember.Remember
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.swap.Swap
SUBCLASS: game.rules.play.moves.nonDecision.effect.Step
SUBCLASS: game.rules.play.moves.nonDecision.effect.Surround
SUBCLASS: game.rules.play.moves.nonDecision.effect.take.Take
SUBCLASS: game.rules.play.moves.nonDecision.effect.Trigger
SUBCLASS: game.rules.play.moves.nonDecision.effect.Vote
SUBCLASS: game.rules.play.moves.nonDecision.NonDecision
SUBCLASS: game.rules.play.moves.nonDecision.operator.Operator
SUBCLASS: game.rules.play.moves.nonDecision.operators.foreach.ForEach
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.AllCombinations
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.And
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Append
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.If
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Or
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Seq
TYPE: game.rules.play.moves.decision.Decision
TYPE JAVADOC: Defines moves that involve a decision by the player.
SUBCLASS: game.rules.play.moves.decision.Move
TYPE: game.rules.play.moves.decision.Move
TYPE JAVADOC: Defines a decision move.
NEW CTOR
(move Swap Players (<int>  | <roleType>) (<int> (<roleType>) [<then>])
PARAM JAVADOC: <int>: The index of the first player.
PARAM JAVADOC: <roleType>: The role of the first player.
PARAM JAVADOC: <int>: The index of the second player.
PARAM JAVADOC: <roleType>: The role of the second player.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Swap Players P1 P2)
NEW CTOR
(move Swap Pieces [<int>] [<int>] [<then>])
PARAM JAVADOC: [<int>]: The first location [(lastFrom)].
PARAM JAVADOC: [<int>]: The second location [(lastTo)].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Swap Pieces (last To) (last From))
NEW CTOR
(move Remove [<siteType>] (<int>  | <region>) [level:<int>] [at:<whenType>] [count:<int>] [<then>])
PARAM JAVADOC: [<siteType>]: The graph element type of the location [Cell (or Vertex if the main board uses this)].
PARAM JAVADOC: <int>: The location to remove a piece.
PARAM JAVADOC: <region>: The locations to remove a piece.
PARAM JAVADOC: [level:<int>]: The level to remove a piece [top level].
PARAM JAVADOC: [at:<whenType>]: When to perform the removal [immediately].
PARAM JAVADOC: [count:<int>]: The number of pieces to remove [1].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Remove (last To))
NEW CTOR
(move Set TrumpSuit (<int>  | <difference>) [<then>])
PARAM JAVADOC: <int>: The suit to choose.
PARAM JAVADOC: <difference>: The possible suits to choose.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Set TrumpSuit (card Suit at:(handSite Shared)))
NEW CTOR
(move Set NextPlayer (<player>  | <intArrayFunction>) [<then>])
PARAM JAVADOC: <player>: The data of the next player.
PARAM JAVADOC: <intArrayFunction>: The indices of the next players.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Set NextPlayer (player (mover)))
NEW CTOR
(move Set Rotation [<to>] ([{<int>}]  | [<int>]) [previous:<boolean>] [next:<boolean>] [<then>])
PARAM JAVADOC: [<to>]: Description of the ``to'' location [(to (from))].
PARAM JAVADOC: [{<int>}]: The index of the possible new directions.
PARAM JAVADOC: [<int>]: The index of the possible new direction.
PARAM JAVADOC: [previous:<boolean>]: True to allow movement to the left [True].
PARAM JAVADOC: [next:<boolean>]: True to allow movement to the right [True].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Set Rotation)
EXAMPLE: (move Set Rotation (to (last To)) next:False)
NEW CTOR
(move Step [<from>] [<direction>] <to> [stack:<boolean>] [<then>])
PARAM JAVADOC: [<from>]: Description of ``from'' location [(from)].
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: <to>: Description of the ``to'' location.
PARAM JAVADOC: [stack:<boolean>]: True if the move is applied to a stack [False].
PARAM JAVADOC: [<then>]: Moves to apply after this one.
EXAMPLE: (move Step (to if:(is Empty (to))) )
EXAMPLE: (move Step Forward (to if:(is Empty (to))) )
EXAMPLE: (move Step (directions {FR FL}) (to if:(or (is Empty (to)) (is Enemy (who at:(to)))) (apply (remove (to)))) )
NEW CTOR
(move Slide [<from>] [<string>] [<direction>] [<between>] [<to>] [stack:<boolean>] [<then>])
PARAM JAVADOC: [<from>]: Description of the ``from'' location [(from)].
PARAM JAVADOC: [<string>]: The track on which to slide.
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: [<between>]: Description of the location(s) between ``from'' and ``to''.
PARAM JAVADOC: [<to>]: Description of the ``to'' location.
PARAM JAVADOC: [stack:<boolean>]: True if the move is applied to a stack [False].
PARAM JAVADOC: [<then>]: Moves to apply after this one.
EXAMPLE: (move Slide)
EXAMPLE: (move Slide Orthogonal)
EXAMPLE: (move Slide "AllTracks" (between if:(or (= (between) (from)) (is In (between) (sites Empty)) ) ) (to if:(is Enemy (who at:(to))) (apply (remove (to))) ) (then (set Counter)) )
NEW CTOR
(move Shoot <piece> [<from>] [<absoluteDirection>] [<between>] [<to>] [<then>])
PARAM JAVADOC: <piece>: The data about the piece to shoot.
PARAM JAVADOC: [<from>]: The ``from'' location [(lastTo)].
PARAM JAVADOC: [<absoluteDirection>]: The direction to follow [Adjacent].
PARAM JAVADOC: [<between>]: The location(s) between ``from'' and ``to''.
PARAM JAVADOC: [<to>]: The condition on the ``to'' location to allow shooting [(to if:(in (to) (sites Empty)))].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Shoot (piece "Dot0"))
NEW CTOR
(move Select <from> [<to>] [<roleType>] [<then>])
PARAM JAVADOC: <from>: Describes the ``from'' location to select [(from)].
PARAM JAVADOC: [<to>]: Describes the ``to'' location to select.
PARAM JAVADOC: [<roleType>]: The mover of the move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Select (from) (then (remove (last To))))
EXAMPLE: (move Select (from (sites Occupied by:Mover) if:(!= (state at:(to)) 0) ) (to (sites Occupied by:Next) if:(!= (state at:(to)) 0) ) (then (set State at:(last To) (% (+ (state at:(last From)) (state at:(last To))) 5) ) ) )
NEW CTOR
(move <moveMessageType> (<string>  | {<string>}) [<then>])
PARAM JAVADOC: <moveMessageType>: The type of move.
PARAM JAVADOC: <string>: The message.
PARAM JAVADOC: {<string>}: The messages.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Propose "End")
EXAMPLE: (move Vote "End")
NEW CTOR
(move Promote [<siteType>] [<int>] <piece> ([<player>]  | [<roleType>]) [<then>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The location of the piece to promote [(to)].
PARAM JAVADOC: <piece>: The data about the promoted pieces.
PARAM JAVADOC: [<player>]: Data of the owner of the promoted piece.
PARAM JAVADOC: [<roleType>]: RoleType of the owner of the promoted piece.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Promote (last To) (piece {"Queen" "Knight" "Bishop" "Rook"}) Mover)
NEW CTOR
(move <moveSimpleType> [<then>])
PARAM JAVADOC: <moveSimpleType>: The type of move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Pass)
NEW CTOR
(move Leap [<from>] {{<stepType>}} [forward:<boolean>] [rotations:<boolean>] <to> [<then>])
PARAM JAVADOC: [<from>]: The from location [(from)].
PARAM JAVADOC: {{<stepType>}}: The walk to follow.
PARAM JAVADOC: [forward:<boolean>]: True if the move can only move forward according to the direction of the piece [False].
PARAM JAVADOC: [rotations:<boolean>]: True if the move includes all the rotations of the walk [True].
PARAM JAVADOC: <to>: The data about the location to move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Leap { {F F R F} {F F L F} } (to if:(or (is Empty (to)) (is Enemy (who at:(to)))) (apply (if (is Enemy (who at:(to))) (remove (to) ) ) ) ) )
NEW CTOR
(move Hop [<from>] [<direction>] [<between>] <to> [stack:<boolean>] [<then>])
PARAM JAVADOC: [<from>]: The data of the from location [(from)].
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: [<between>]: The information about the locations between ``from'' and ``to'' [(between if:True)].
PARAM JAVADOC: <to>: The condition on the location to move.
PARAM JAVADOC: [stack:<boolean>]: True if the move has to be applied for stack [False].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Hop (between if:(is Enemy (who at:(between))) (apply (remove (between))) ) (to if:(is Empty (to))) )
EXAMPLE: (move Hop Orthogonal (between if:(is Friend (who at:(between))) (apply (remove (between))) ) (to if:(is Empty (to))) )
NEW CTOR
(move <from> <to> [count:<int>] [copy:<boolean>] [stack:<boolean>] [<roleType>] [<then>])
PARAM JAVADOC: <from>: The data of the ``from'' location [(from)].
PARAM JAVADOC: <to>: The data of the ``to'' location.
PARAM JAVADOC: [count:<int>]: The number of pieces to move.
PARAM JAVADOC: [copy:<boolean>]: Whether to duplicate the piece rather than moving it [False].
PARAM JAVADOC: [stack:<boolean>]: To move a complete stack [False].
PARAM JAVADOC: [<roleType>]: The mover of the move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move (from (last To)) (to (last From)))
EXAMPLE: (move (from (handSite Mover)) (to (sites Empty)))
EXAMPLE: (move (from (to)) (to (sites Empty)) count:(count at:(to)))
EXAMPLE: (move (from (handSite Shared)) (to (sites Empty)) copy:True )
NEW CTOR
(move Bet (<player>  | <roleType>) <rangeFunction> [<then>])
PARAM JAVADOC: <player>: The data about the player to bet.
PARAM JAVADOC: <roleType>: The RoleType of the player to bet.
PARAM JAVADOC: <rangeFunction>: The range of the bet.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Bet P1 (range 0 5))
NEW CTOR
(move <moveSiteType> [<piece>] <to> [count:<int>] [stack:<boolean>] [<then>])
PARAM JAVADOC: <moveSiteType>: The type of move.
PARAM JAVADOC: [<piece>]: The data about the components to add.
PARAM JAVADOC: <to>: The data on the location to add.
PARAM JAVADOC: [count:<int>]: The number of components to add [1].
PARAM JAVADOC: [stack:<boolean>]: True if the move has to be applied on a stack [False].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (move Add (to (sites Empty)))
EXAMPLE: (move Claim (to Cell (site)))
TYPE: game.rules.play.moves.decision.MoveMessageType
TYPE JAVADOC: Defines the types of decision move relative to a message.
CONST JAVADOC: Propose: Makes a propose move.
CONST JAVADOC: Vote: Makes a vote move.
TYPE: game.rules.play.moves.decision.MoveSimpleType
TYPE JAVADOC: Defines the types of decision move corresponding to move with no parameters except the subsequents.
CONST JAVADOC: Pass: Makes a pass move.
CONST JAVADOC: PlayCard: Plays a card.
TYPE: game.rules.play.moves.decision.MoveSiteType
TYPE JAVADOC: Defines the types of decision move corresponding to a single site.
CONST JAVADOC: Add: Makes a add move.
CONST JAVADOC: Claim: Makes a claim move.
TYPE: game.rules.play.moves.nonDecision.NonDecision
TYPE JAVADOC: Defines moves that do not involve an immediate decision by the player.
SUBCLASS: game.rules.play.moves.nonDecision.effect.Add
SUBCLASS: game.rules.play.moves.nonDecision.effect.Attract
SUBCLASS: game.rules.play.moves.nonDecision.effect.Bet
SUBCLASS: game.rules.play.moves.nonDecision.effect.Claim
SUBCLASS: game.rules.play.moves.nonDecision.effect.Custodial
SUBCLASS: game.rules.play.moves.nonDecision.effect.Deal
SUBCLASS: game.rules.play.moves.nonDecision.effect.Directional
SUBCLASS: game.rules.play.moves.nonDecision.effect.Effect
SUBCLASS: game.rules.play.moves.nonDecision.effect.Enclose
SUBCLASS: game.rules.play.moves.nonDecision.effect.Flip
SUBCLASS: game.rules.play.moves.nonDecision.effect.FromTo
SUBCLASS: game.rules.play.moves.nonDecision.effect.Hop
SUBCLASS: game.rules.play.moves.nonDecision.effect.Intervene
SUBCLASS: game.rules.play.moves.nonDecision.effect.Leap
SUBCLASS: game.rules.play.moves.nonDecision.effect.Note
SUBCLASS: game.rules.play.moves.nonDecision.effect.Pass
SUBCLASS: game.rules.play.moves.nonDecision.effect.PlayCard
SUBCLASS: game.rules.play.moves.nonDecision.effect.Promote
SUBCLASS: game.rules.play.moves.nonDecision.effect.Propose
SUBCLASS: game.rules.play.moves.nonDecision.effect.Push
SUBCLASS: game.rules.play.moves.nonDecision.effect.Remove
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.AvoidStoredState
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.Do
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.FirstMoveOnTrack
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.max.Max
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.Priority
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.While
SUBCLASS: game.rules.play.moves.nonDecision.effect.Roll
SUBCLASS: game.rules.play.moves.nonDecision.effect.Satisfy
SUBCLASS: game.rules.play.moves.nonDecision.effect.Select
SUBCLASS: game.rules.play.moves.nonDecision.effect.set.Set
SUBCLASS: game.rules.play.moves.nonDecision.effect.Shoot
SUBCLASS: game.rules.play.moves.nonDecision.effect.Slide
SUBCLASS: game.rules.play.moves.nonDecision.effect.Sow
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.AddScore
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.forget.Forget
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.MoveAgain
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.remember.Remember
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.swap.Swap
SUBCLASS: game.rules.play.moves.nonDecision.effect.Step
SUBCLASS: game.rules.play.moves.nonDecision.effect.Surround
SUBCLASS: game.rules.play.moves.nonDecision.effect.take.Take
SUBCLASS: game.rules.play.moves.nonDecision.effect.Trigger
SUBCLASS: game.rules.play.moves.nonDecision.effect.Vote
SUBCLASS: game.rules.play.moves.nonDecision.operator.Operator
SUBCLASS: game.rules.play.moves.nonDecision.operators.foreach.ForEach
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.AllCombinations
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.And
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Append
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.If
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Or
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Seq
REMARKS: Non-decision moves include move operators that might combine further decision moves.
TYPE: game.rules.play.moves.nonDecision.effect.Add
TYPE JAVADOC: Places one or more component(s) at a collection of sites or at one specific  site.
NEW CTOR
(add [<piece>] <to> [count:<int>] [stack:<boolean>] [<then>])
PARAM JAVADOC: [<piece>]: The data about the components to add.
PARAM JAVADOC: <to>: The data on the location to add.
PARAM JAVADOC: [count:<int>]: The number of components to add [1].
PARAM JAVADOC: [stack:<boolean>]: True if the move has to be applied on a stack [False].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (add (to (sites Empty)))
EXAMPLE: (add (to Cell (sites Empty Cell)))
EXAMPLE: (add (piece "Disc0") (to (last From)))
EXAMPLE: (add (piece "Disc0") (to (sites Empty)) (then (attract)) )
REMARKS: The ``to'' location is not updated until the move is made.
TYPE: game.rules.play.moves.nonDecision.effect.Apply
TYPE JAVADOC: Returns the effect to apply only if the condition is satisfied.
NEW CTOR
(apply If:<boolean>)
PARAM JAVADOC: If:<boolean>: The condition to satisfy to get the effect moves.
EXAMPLE: (apply if:(is Mover P1))
NEW CTOR
(apply <nonDecision>)
PARAM JAVADOC: <nonDecision>: The moves to apply to make the effect.
EXAMPLE: (apply (moveAgain))
NEW CTOR
(apply If:<boolean> <nonDecision>)
PARAM JAVADOC: If:<boolean>: The condition to satisfy to get the effect moves.
PARAM JAVADOC: <nonDecision>: The moves to apply to make the effect.
EXAMPLE: (apply if:(is Mover P1) (moveAgain))
TYPE: game.rules.play.moves.nonDecision.effect.Attract
TYPE JAVADOC: Is used to attract all the pieces as close as possible to a site.
NEW CTOR
(attract [<from>] [<absoluteDirection>] [<then>])
PARAM JAVADOC: [<from>]: The data of the from location [(from (last To))].
PARAM JAVADOC: [<absoluteDirection>]: The specific direction [Adjacent].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (attract (from (last To)) Diagonal)
TYPE: game.rules.play.moves.nonDecision.effect.Bet
TYPE JAVADOC: Is used to bet an amount.
NEW CTOR
(bet (<player>  | <roleType>) <rangeFunction> [<then>])
PARAM JAVADOC: <player>: The data about the player to bet.
PARAM JAVADOC: <roleType>: The roleType of the player to bet.
PARAM JAVADOC: <rangeFunction>: The range of the bet.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (bet P1 (range 0 5))
TYPE: game.rules.play.moves.nonDecision.effect.Claim
TYPE JAVADOC: Claims a site by adding a piece of the specified colour there.
NEW CTOR
(claim [<piece>] <to> [<then>])
PARAM JAVADOC: [<piece>]: The data about the components to claim.
PARAM JAVADOC: <to>: The data on the location to claim.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (claim (to Cell (site)) (then (and (addScore Mover 1) (moveAgain))))
REMARKS: This ludeme is used for graph games.
TYPE: game.rules.play.moves.nonDecision.effect.Custodial
TYPE JAVADOC: Is used to apply an effect to all the sites flanked between two sites.
NEW CTOR
(custodial [<from>] [<absoluteDirection>] [<between>] [<to>] [<then>])
PARAM JAVADOC: [<from>]: The data about the sites used as an origin to flank [(from (last To))].
PARAM JAVADOC: [<absoluteDirection>]: The direction to compute the flanking [Adjacent].
PARAM JAVADOC: [<between>]: The condition and effect on the pieces flanked [(between if:(is Enemy (between)) (apply (remove (between))))].
PARAM JAVADOC: [<to>]: The condition on the pieces surrounding [(to if:(is Friend (to)))].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (custodial (from (last To)) Orthogonal (between (max 1) if:(is Enemy (who at:(between))) (apply (remove (between))) ) (to if:(is Friend (who at:(to)))) )
REMARKS: Used for example in all the Tafl games.
TYPE: game.rules.play.moves.nonDecision.effect.Deal
TYPE JAVADOC: Deals cards or dominoes to each player.
NEW CTOR
(deal <dealableType> [<int>] [beginWith:<int>] [<then>])
PARAM JAVADOC: <dealableType>: Type of deal.
PARAM JAVADOC: [<int>]: The number of components to deal [1].
PARAM JAVADOC: [beginWith:<int>]: To start to deal with a specific player.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (deal Cards 3 beginWith:(mover))
TYPE: game.rules.play.moves.nonDecision.effect.Directional
TYPE JAVADOC: Is used to apply an effect to all the pieces in a direction from a location.
NEW CTOR
(directional [<from>] [<direction>] [<to>] [<then>])
PARAM JAVADOC: [<from>]: The origin of the move [(from (last To))].
PARAM JAVADOC: [<direction>]: The directions to use [(directions from:(last From) to:(last To))].
PARAM JAVADOC: [<to>]: The condition of the location to apply the effect [(to if:(is Enemy (to)) (apply (remove (from))))].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (directional (from (last To)) (to if:(is Enemy (who at:(to))) (apply (remove (to))) ))
REMARKS: For example, used in Fanorona.
TYPE: game.rules.play.moves.nonDecision.effect.Effect
TYPE JAVADOC: Defines moves which do not involve a player decision.
SUBCLASS: game.rules.play.moves.nonDecision.effect.Add
SUBCLASS: game.rules.play.moves.nonDecision.effect.Attract
SUBCLASS: game.rules.play.moves.nonDecision.effect.Bet
SUBCLASS: game.rules.play.moves.nonDecision.effect.Claim
SUBCLASS: game.rules.play.moves.nonDecision.effect.Custodial
SUBCLASS: game.rules.play.moves.nonDecision.effect.Deal
SUBCLASS: game.rules.play.moves.nonDecision.effect.Directional
SUBCLASS: game.rules.play.moves.nonDecision.effect.Enclose
SUBCLASS: game.rules.play.moves.nonDecision.effect.Flip
SUBCLASS: game.rules.play.moves.nonDecision.effect.FromTo
SUBCLASS: game.rules.play.moves.nonDecision.effect.Hop
SUBCLASS: game.rules.play.moves.nonDecision.effect.Intervene
SUBCLASS: game.rules.play.moves.nonDecision.effect.Leap
SUBCLASS: game.rules.play.moves.nonDecision.effect.Note
SUBCLASS: game.rules.play.moves.nonDecision.effect.Pass
SUBCLASS: game.rules.play.moves.nonDecision.effect.PlayCard
SUBCLASS: game.rules.play.moves.nonDecision.effect.Promote
SUBCLASS: game.rules.play.moves.nonDecision.effect.Propose
SUBCLASS: game.rules.play.moves.nonDecision.effect.Push
SUBCLASS: game.rules.play.moves.nonDecision.effect.Remove
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.AvoidStoredState
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.Do
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.FirstMoveOnTrack
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.max.Max
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.Priority
SUBCLASS: game.rules.play.moves.nonDecision.effect.requirement.While
SUBCLASS: game.rules.play.moves.nonDecision.effect.Roll
SUBCLASS: game.rules.play.moves.nonDecision.effect.Satisfy
SUBCLASS: game.rules.play.moves.nonDecision.effect.Select
SUBCLASS: game.rules.play.moves.nonDecision.effect.set.Set
SUBCLASS: game.rules.play.moves.nonDecision.effect.Shoot
SUBCLASS: game.rules.play.moves.nonDecision.effect.Slide
SUBCLASS: game.rules.play.moves.nonDecision.effect.Sow
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.AddScore
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.forget.Forget
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.MoveAgain
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.remember.Remember
SUBCLASS: game.rules.play.moves.nonDecision.effect.state.swap.Swap
SUBCLASS: game.rules.play.moves.nonDecision.effect.Step
SUBCLASS: game.rules.play.moves.nonDecision.effect.Surround
SUBCLASS: game.rules.play.moves.nonDecision.effect.take.Take
SUBCLASS: game.rules.play.moves.nonDecision.effect.Trigger
SUBCLASS: game.rules.play.moves.nonDecision.effect.Vote
SUBCLASS: game.rules.play.moves.nonDecision.operators.foreach.ForEach
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Seq
TYPE: game.rules.play.moves.nonDecision.effect.Enclose
TYPE JAVADOC: Applies a move to an enclosed group.
NEW CTOR
(enclose [<siteType>] [<from>] [<direction>] [<between>] [numException:<int>] [<then>])
PARAM JAVADOC: [<siteType>]: The graph element type [default site type of the board].
PARAM JAVADOC: [<from>]: The origin of the enclosed group [(from (last To))].
PARAM JAVADOC: [<direction>]: The direction to use [Adjacent].
PARAM JAVADOC: [<between>]: The condition and effect on the pieces enclosed [(between if:(is Enemy (between)) (apply (remove (between))))].
PARAM JAVADOC: [numException:<int>]: The number of liberties allowed in the group to enclose [0].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (enclose (from (last To)) Orthogonal (between if:(is Enemy (who at:(between))) (apply (remove (between) ) ) ))
REMARKS: A group of components is 'enclosed' if it has no adjacent empty sites, where board sides count as boundaries. This ludeme is used for surround capture games such as Go.
TYPE: game.rules.play.moves.nonDecision.effect.Flip
TYPE JAVADOC: Is used to flip a piece.
NEW CTOR
(flip [<siteType>] [<int>] [<then>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The location to flip the piece [(to)].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (flip)
EXAMPLE: (flip (last To))
TYPE: game.rules.play.moves.nonDecision.effect.FromTo
TYPE JAVADOC: Moves a piece from one site to another, possibly in another container, with  no direction link between the ``from'' and ``to'' sites.
NEW CTOR
(fromTo <from> <to> [count:<int>] [copy:<boolean>] [stack:<boolean>] [<roleType>] [<then>])
PARAM JAVADOC: <from>: The data of the ``from'' location [(from)].
PARAM JAVADOC: <to>: The data of the ``to'' location.
PARAM JAVADOC: [count:<int>]: The number of pieces to move.
PARAM JAVADOC: [copy:<boolean>]: Whether to duplicate the piece rather than moving it [False].
PARAM JAVADOC: [stack:<boolean>]: To move a complete stack [False].
PARAM JAVADOC: [<roleType>]: The mover of the move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (fromTo (from (last To)) (to (last From)))
EXAMPLE: (fromTo (from (handSite Mover)) (to (sites Empty)))
EXAMPLE: (fromTo (from (to)) (to (sites Empty)) count:(count at:(to)))
EXAMPLE: (fromTo (from (handSite Shared)) (to (sites Empty)) copy:True )
REMARKS: If the ``copy'' parameter is set, then a copy of the piece is duplicated at the ``to'' site rather than actually moving there.
TYPE: game.rules.play.moves.nonDecision.effect.Hop
TYPE JAVADOC: Defines a hop in which a piece hops over a hurdle (the {\it pivot}) in a direction.
NEW CTOR
(hop [<from>] [<direction>] [<between>] <to> [stack:<boolean>] [<then>])
PARAM JAVADOC: [<from>]: The data of the from location [(from)].
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: [<between>]: The information about the locations between ``from'' and ``to'' [(between if:true)].
PARAM JAVADOC: <to>: The condition on the location to move.
PARAM JAVADOC: [stack:<boolean>]: True if the move has to be applied for stack [False].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (hop (between if:(is Enemy (who at:(between))) (apply (remove (between))) ) (to if:(is Empty (to))) )
EXAMPLE: (hop Orthogonal (between if:(is Friend (who at:(between))) (apply (remove (between))) ) (to if:(is Empty (to))) )
REMARKS: Capture moves in Draughts are typical hop moves. Note that we extend the standard definition of ``hop'' to include cases where the pivot is empty, for example in games such as Lines of Action and Quantum Leap.
TYPE: game.rules.play.moves.nonDecision.effect.Intervene
TYPE JAVADOC: Is used to apply an effect to all the sites flanking a site.
NEW CTOR
(intervene [<from>] [<absoluteDirection>] [<between>] [<to>] [<then>])
PARAM JAVADOC: [<from>]: The data about the sites to intervene [(from (last To))].
PARAM JAVADOC: [<absoluteDirection>]: The direction to compute the flanking [Adjacent].
PARAM JAVADOC: [<between>]: The condition on the pieces flanked [(between (exact 1))].
PARAM JAVADOC: [<to>]: The condition and effect on the pieces flanking [(to if:(is Enemy (who at:(to))) (apply (remove (to))))].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (intervene (from (last To)) (to if:(is Enemy (who at:(to))) (apply (remove (to))) ) )
TYPE: game.rules.play.moves.nonDecision.effect.Leap
TYPE JAVADOC: Allows a player to leap a piece to sites defined by walks through the board graph.
NEW CTOR
(leap [<from>] {{<stepType>}} [forward:<boolean>] [rotations:<boolean>] <to> [<then>])
PARAM JAVADOC: [<from>]: The site to leap from [(from)].
PARAM JAVADOC: {{<stepType>}}: The walk that defines the landing site(s).
PARAM JAVADOC: [forward:<boolean>]: Whether to only keep moves that land forwards [False].
PARAM JAVADOC: [rotations:<boolean>]: Whether to apply the leap to all rotations [True].
PARAM JAVADOC: <to>: Details about the site to move to.
PARAM JAVADOC: [<then>]: Moves to apply after the leap.
EXAMPLE: (leap { {F F R F} {F F L F} } (to if:(or (is Empty (to)) (is Enemy (who at:(to)))) (apply (if (is Enemy (who at:(to))) (remove (to) ) ) ) ) )
REMARKS: Use this ludeme to make leaping moves to pre-defined destination sites that do not care about intervening pieces, such as knight moves in Chess.
TYPE: game.rules.play.moves.nonDecision.effect.Note
TYPE JAVADOC: Makes a note to a player or to all the players.
NEW CTOR
(note ([player:<int>]  | [Player:<roleType>]) (<string> (<int>  | <intArrayFunction>  | <floatFunction>  | <boolean>  | <region>  | <rangeFunction>  | <direction>  | <graphFunction>) ([to:<player>] ([To:<roleType>]))
PARAM JAVADOC: [player:<int>]: The index of the player to add at the beginning of the message.
PARAM JAVADOC: [Player:<roleType>]: The role of the player to add at the beginning of the message.
PARAM JAVADOC: <string>: The message as a string.
PARAM JAVADOC: <int>: The message as an integer.
PARAM JAVADOC: <intArrayFunction>: The message as an array of integer.
PARAM JAVADOC: <floatFunction>: The message as a float.
PARAM JAVADOC: <boolean>: The message as a boolean.
PARAM JAVADOC: <region>: The message as a region.
PARAM JAVADOC: <rangeFunction>: The message as a range.
PARAM JAVADOC: <direction>: The message as a set of directions.
PARAM JAVADOC: <graphFunction>: The message as a graph.
PARAM JAVADOC: [to:<player>]: The index of the player.
PARAM JAVADOC: [To:<roleType>]: The role of the player [ALL].
EXAMPLE: (note "Opponent has played")
TYPE: game.rules.play.moves.nonDecision.effect.Pass
TYPE JAVADOC: Passes this turn.
NEW CTOR
(pass [<then>])
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (pass)
TYPE: game.rules.play.moves.nonDecision.effect.PlayCard
TYPE JAVADOC: Plays any card in a player's hand to the board at their position.
NEW CTOR
(playCard [<then>])
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (playCard)
TYPE: game.rules.play.moves.nonDecision.effect.Promote
TYPE JAVADOC: Is used for promotion into another item.
NEW CTOR
(promote [<siteType>] [<int>] <piece> ([<player>]  | [<roleType>]) [<then>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The location of the piece to promote [(to)].
PARAM JAVADOC: <piece>: The data about the promoted pieces.
PARAM JAVADOC: [<player>]: Index of the owner of the promoted piece.
PARAM JAVADOC: [<roleType>]: RoleType of the owner of the promoted piece.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (promote (last To) (piece {"Queen" "Knight" "Bishop" "Rook"}) Mover)
TYPE: game.rules.play.moves.nonDecision.effect.Propose
TYPE JAVADOC: Is used to propose something to the other players.
NEW CTOR
(propose (<string>  | {<string>}) [<then>])
PARAM JAVADOC: <string>: The proposition.
PARAM JAVADOC: {<string>}: The propositions.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (propose "End")
TYPE: game.rules.play.moves.nonDecision.effect.Push
TYPE JAVADOC: Pushes all the pieces from a site in one direction.
NEW CTOR
(push [<from>] <direction> [<then>])
PARAM JAVADOC: [<from>]: Description of the ``from'' location [(from (last To))].
PARAM JAVADOC: <direction>: The direction to push.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (push (from (last To)) E)
TYPE: game.rules.play.moves.nonDecision.effect.Random
TYPE JAVADOC: Returns a set of moves according to a set of probabilities.
NEW CTOR
(random {<floatFunction>} {<moves>})
PARAM JAVADOC: {<floatFunction>}: The different probabilities for each move.
PARAM JAVADOC: {<moves>}: The different possible moves.
EXAMPLE: (random {0.01 0.99} {(forEach Piece) (move Pass)})
NEW CTOR
(random <moves> num:<int>)
PARAM JAVADOC: <moves>: A list of moves.
PARAM JAVADOC: num:<int>: The number of moves to return from that list (less if the number of legal moves is lower).
EXAMPLE: (random (forEach Piece) num:2)
TYPE: game.rules.play.moves.nonDecision.effect.Remove
TYPE JAVADOC: Removes an item from a site.
NEW CTOR
(remove [<siteType>] (<int>  | <region>) [level:<int>] [at:<whenType>] [count:<int>] [<then>])
PARAM JAVADOC: [<siteType>]: The graph element type of the location [Cell (or Vertex if the main board uses this)].
PARAM JAVADOC: <int>: The location to remove a piece.
PARAM JAVADOC: <region>: The locations to remove a piece.
PARAM JAVADOC: [level:<int>]: The level to remove a piece [top level].
PARAM JAVADOC: [at:<whenType>]: When to perform the removal [immediately].
PARAM JAVADOC: [count:<int>]: The number of pieces to remove [1].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (remove (last To))
EXAMPLE: (remove (last To) at:EndOfTurn)
REMARKS: If the site is empty, the move is not applied.
TYPE: game.rules.play.moves.nonDecision.effect.Roll
TYPE JAVADOC: Rolls the dice.
NEW CTOR
(roll [<then>])
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (roll)
TYPE: game.rules.play.moves.nonDecision.effect.Satisfy
TYPE JAVADOC: Defines constraints applied at run-time for filtering legal puzzle moves.
NEW CTOR
(satisfy (<boolean>  | {<boolean>}))
PARAM JAVADOC: <boolean>: The constraint of the puzzle.
PARAM JAVADOC: {<boolean>}: The constraints of the puzzle.
EXAMPLE: (satisfy (all Different))
REMARKS: This ludeme applies to deduction puzzles.
TYPE: game.rules.play.moves.nonDecision.effect.Select
TYPE JAVADOC: Selects either a site or a pair of ``from'' and ``to'' locations.
NEW CTOR
(select <from> [<to>] [<roleType>] [<then>])
PARAM JAVADOC: <from>: Describes the ``from'' location to select [(from)].
PARAM JAVADOC: [<to>]: Describes the ``to'' location to select.
PARAM JAVADOC: [<roleType>]: The mover of the move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (select (from) (then (remove (last To))))
EXAMPLE: (select (from (sites Occupied by:Mover) if:(!= (state at:(to)) 0) ) (to (sites Occupied by:Next) if:(!= (state at:(to)) 0) ) (then (set State at:(last To) (% (+ (state at:(last From)) (state at:(last To))) 5) ) ) )
REMARKS: This ludeme is used to select one or two sites in order to apply a consequence to them. If the ``to'' location is not specified, then it is assumed to be the same as the 'from' location.
TYPE: game.rules.play.moves.nonDecision.effect.Shoot
TYPE JAVADOC: Is used to shoot an item from one site to another with a specific direction.
NEW CTOR
(shoot <piece> [<from>] [<absoluteDirection>] [<between>] [<to>] [<then>])
PARAM JAVADOC: <piece>: The data about the piece to shoot.
PARAM JAVADOC: [<from>]: The ``from'' location [(lastTo)].
PARAM JAVADOC: [<absoluteDirection>]: The direction to follow [Adjacent].
PARAM JAVADOC: [<between>]: The location(s) between ``from'' and ``to''.
PARAM JAVADOC: [<to>]: The condition on the ``to'' location to allow shooting [(to if:(in (to) (sites Empty)))].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (shoot (piece "Dot0"))
REMARKS: This ludeme is used for games including Amazons.
TYPE: game.rules.play.moves.nonDecision.effect.Slide
TYPE JAVADOC: Slides a piece in a direction through a number of sites.
NEW CTOR
(slide [<from>] [<string>] [<direction>] [<between>] [<to>] [stack:<boolean>] [<then>])
PARAM JAVADOC: [<from>]: Description of the ``from'' location [(from)].
PARAM JAVADOC: [<string>]: The track on which to slide.
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: [<between>]: Description of the location(s) between ``from'' and ``to''.
PARAM JAVADOC: [<to>]: Description of the ``to'' location.
PARAM JAVADOC: [stack:<boolean>]: True if the move is applied to a stack [False].
PARAM JAVADOC: [<then>]: Moves to apply after this one.
EXAMPLE: (slide)
EXAMPLE: (slide Orthogonal)
EXAMPLE: (slide "AllTracks" (between if:(or (= (between) (from)) (is In (between) (sites Empty)) ) ) (to if:(is Enemy (who at:(to))) (apply (remove (to))) ) (then (set Counter)) )
REMARKS: The rook in Chess is an example of a piece that slides in Orthogonal directions. Pieces can be constrained to slide along predefined tracks, e.g. see Surakarta. Note that we extend the standard definition of ``slide'' to allow pieces to slide through other pieces if a specific condition is given, but that pieces are assumed to slide through empty sites only by default.
TYPE: game.rules.play.moves.nonDecision.effect.Sow
TYPE JAVADOC: Sows counters by removing them from a site then placing them one-by-one at  each consecutive site along a track.
NEW CTOR
(sow [<siteType>] [<int>] [count:<int>] [numPerHole:<int>] [<string>] [owner:<int>] [If:<boolean>] [sowEffect:<moves>] [apply:<nonDecision>] [includeSelf:<boolean>] [origin:<boolean>] [skipIf:<boolean>] ([backtracking:<boolean>]  | [forward:<boolean>]) [<then>])
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The origin of the sowing [(lastTo)].
PARAM JAVADOC: [count:<int>]: The number of pieces to sow [(count (lastTo))].
PARAM JAVADOC: [numPerHole:<int>]: The number of pieces to sow in each hole [1].
PARAM JAVADOC: [<string>]: The name of the track to sow [The first track if it exists].
PARAM JAVADOC: [owner:<int>]: The owner of the track.
PARAM JAVADOC: [If:<boolean>]: The condition to capture some counters after sowing [True].
PARAM JAVADOC: [sowEffect:<moves>]: The effect to apply to each hole sowed.
PARAM JAVADOC: [apply:<nonDecision>]: The move to apply if the condition is satisfied.
PARAM JAVADOC: [includeSelf:<boolean>]: True if the origin is included in the sowing [True].
PARAM JAVADOC: [origin:<boolean>]: True to place a counter in the origin at the start of sowing [False].
PARAM JAVADOC: [skipIf:<boolean>]: The condition to skip a hole during the sowing.
PARAM JAVADOC: [backtracking:<boolean>]: Whether to apply the capture backwards from the ``to'' site.
PARAM JAVADOC: [forward:<boolean>]: Whether to apply the capture forwards from the ``to'' site.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (sow if:(and (is In (to) (sites Next)) (or (= (count at:(to)) 2) (= (count at:(to)) 3)) ) apply:(fromTo (from (to)) (to (mapEntry (mover))) count:(count at:(to))) includeSelf:False backtracking:True)
REMARKS: Sowing is used in Mancala games. A track must be defined on the board in order for sowing to work.
TYPE: game.rules.play.moves.nonDecision.effect.Step
TYPE JAVADOC: Moves to a connected site.
NEW CTOR
(step [<from>] [<direction>] <to> [stack:<boolean>] [<then>])
PARAM JAVADOC: [<from>]: Description of ``from'' location [(from)].
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: <to>: Description of the ``to'' location.
PARAM JAVADOC: [stack:<boolean>]: True if the move is applied to a stack [False].
PARAM JAVADOC: [<then>]: Moves to apply after this one.
EXAMPLE: (step (to if:(is Empty (to))) )
EXAMPLE: (step Forward (to if:(is Empty (to))) )
EXAMPLE: (step (directions {FR FL}) (to if:(or (is Empty (to)) (is Enemy (who at:(to)))) (apply (remove (to)))) )
REMARKS: The (to ...) parameter is used to specify a condition on the site to step and on the effect to apply. But the region function in entry of that parameter is ignored because the region to move is implied by a step move.
TYPE: game.rules.play.moves.nonDecision.effect.Surround
TYPE JAVADOC: Is used to apply an effect to all the sites surrounded in a specific  direction.
NEW CTOR
(surround [<from>] [<relationType>] [<between>] [<to>] [except:<int>] [with:<piece>] [<then>])
PARAM JAVADOC: [<from>]: The origin to surround [(from)].
PARAM JAVADOC: [<relationType>]: The way to surround [Adjacent].
PARAM JAVADOC: [<between>]: The condition and effect on the pieces to surround [(between if:(is Enemy (to)) (apply (remove (to))))].
PARAM JAVADOC: [<to>]: The condition on the pieces surrounding [(to if:(isFriend (between)))].
PARAM JAVADOC: [except:<int>]: The number of exceptions allowed to apply the effect [0].
PARAM JAVADOC: [with:<piece>]: The piece which should at least be in the surrounded pieces.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (surround (from (last To)) Orthogonal (between if:(is Friend (who at:(between))) (apply (trigger "Lost" (mover))) ) (to if:(not (is In (to) (sites Empty))) ) )
TYPE: game.rules.play.moves.nonDecision.effect.Then
TYPE JAVADOC: Defines the subsequents of a move, to be applied after the move.
NEW CTOR
(then <nonDecision> [applyAfterAllMoves:<boolean>])
PARAM JAVADOC: <nonDecision>: The moves to apply afterwards.
PARAM JAVADOC: [applyAfterAllMoves:<boolean>]: For simultaneous game, to apply the subsequents when all the moves of all the players are applied.
EXAMPLE: (then (moveAgain))
REMARKS: This is used to define subsequent moves by the same player in a turn after a move is made.
TYPE: game.rules.play.moves.nonDecision.effect.Trigger
TYPE JAVADOC: Sets the 'triggered' value for a player for a specific event.
NEW CTOR
(trigger <string> (<int>  | <roleType>) [<then>])
PARAM JAVADOC: <string>: The event to trigger.
PARAM JAVADOC: <int>: The index of the player.
PARAM JAVADOC: <roleType>: The roleType of the player.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (trigger "FlagCaptured" Next)
TYPE: game.rules.play.moves.nonDecision.effect.Vote
TYPE JAVADOC: Is used to propose something to the other players.
NEW CTOR
(vote (<string>  | {<string>}) [<then>])
PARAM JAVADOC: <string>: The vote.
PARAM JAVADOC: {<string>}: The votes.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (vote "End")
TYPE: game.rules.play.moves.nonDecision.effect.requirement.AvoidStoredState
TYPE JAVADOC: Filters the legal moves to avoid reaching a specific state.
NEW CTOR
(avoidStoredState <moves> [<then>])
PARAM JAVADOC: <moves>: The moves to filter.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (avoidStoredState (forEach Piece))
REMARKS: Example: Arimaa.
TYPE: game.rules.play.moves.nonDecision.effect.requirement.Do
TYPE JAVADOC: Applies two moves in order, according to given conditions.
NEW CTOR
(do <moves> [next:<moves>] [ifAfterwards:<boolean>] [<then>])
PARAM JAVADOC: <moves>: Moves to be applied first.
PARAM JAVADOC: [next:<moves>]: Follow-up moves computed after the first set of moves. The prior moves are not returned if that set of moves is empty.
PARAM JAVADOC: [ifAfterwards:<boolean>]: Moves must satisfy this condition afterwards to be legal.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (do (roll) next:(if (!= (count Pips) 0) (forEach Piece)))
EXAMPLE: (do (fromTo (from (sites Occupied by:All container:(mover))) (to (sites LineOfPlay))) ifAfterwards:(is PipsMatch) )
REMARKS: Use ifAfterwards to filter out moves that do not satisfy some required condition after they are applied.
TYPE: game.rules.play.moves.nonDecision.effect.requirement.FirstMoveOnTrack
TYPE JAVADOC: Returns the first legal move on the track.
NEW CTOR
(firstMoveOnTrack [<string>] [<roleType>] <moves> [<then>])
PARAM JAVADOC: [<string>]: The name of the track.
PARAM JAVADOC: [<roleType>]: The owner of the track.
PARAM JAVADOC: <moves>: The moves to check.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (firstMoveOnTrack (forEach Piece))
REMARKS: Example Backgammon.
TYPE: game.rules.play.moves.nonDecision.effect.requirement.Priority
TYPE JAVADOC: Returns the first list of moves with a non-empty set of moves.
NEW CTOR
(priority {<moves>} [<then>])
PARAM JAVADOC: {<moves>}: The list of moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (priority { (forEach Piece "Leopard" (step (to if:(is Enemy (who at:(to)))))) (forEach Piece "Leopard" (step (to if:(is In (to) (sites Empty))))) })
NEW CTOR
(priority <moves> <moves> [<then>])
PARAM JAVADOC: <moves>: The first set of moves.
PARAM JAVADOC: <moves>: The second set of moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (priority (forEach Piece "Leopard" (step (to if:(is Enemy (who at:(to)))))) (forEach Piece "Leopard" (step (to if:(is In (to) (sites Empty)))) ))
REMARKS: To prioritise a list of legal moves over another. For example in some draughts games, if you can capture, you must capture, if not you can move normally.
TYPE: game.rules.play.moves.nonDecision.effect.requirement.While
TYPE JAVADOC: Applies a move until the condition becomes false.
NEW CTOR
(while <boolean> <moves> [<then>])
PARAM JAVADOC: <boolean>: Conditions to make false thanks to the move to apply.
PARAM JAVADOC: <moves>: Moves to apply until the condition is false.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (while (!= 100 (score P1)) (addScore P1 1))
TYPE: game.rules.play.moves.nonDecision.effect.requirement.max.Max
TYPE JAVADOC: Filters a list of legal moves to keep only the moves allowing the maximum  number of moves in a turn.
NEW CTOR
(max <maxMovesType> [withValue:<boolean>] <moves> [<then>])
PARAM JAVADOC: <maxMovesType>: The type of property to maximise.
PARAM JAVADOC: [withValue:<boolean>]: If true, the capture has to maximise the values of the capturing pieces too.
PARAM JAVADOC: <moves>: The moves to filter.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (max Moves (forEach Piece))
EXAMPLE: (max Captures (forEach Piece))
NEW CTOR
(max Distance [<string>] [<roleType>] <moves> [<then>])
PARAM JAVADOC: [<string>]: The name of the track.
PARAM JAVADOC: [<roleType>]: The owner of the track.
PARAM JAVADOC: <moves>: The moves to filter.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (max Distance (forEach Piece))
TYPE: game.rules.play.moves.nonDecision.effect.requirement.max.MaxMovesType
TYPE JAVADOC: Defines the types of properties which can be used for the Max super ludeme with only a move ludeme in entry.
CONST JAVADOC: Moves: To ilter a list of legal moves to keep only the moves allowing the maximum  number of moves in a turn.
CONST JAVADOC: Captures: To filter a list of moves to keep only the moves doing the maximum possible  number of captures.
TYPE: game.rules.play.moves.nonDecision.effect.set.Set
TYPE JAVADOC: Sets some aspect of the game state in response to a move.
NEW CTOR
(set Team <int> {<roleType>} [<then>])
PARAM JAVADOC: <int>: The index of the team.
PARAM JAVADOC: {<roleType>}: The roleType of each player on the team.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (set Team 1 {P1 P3})
NEW CTOR
(set Hidden ([<hiddenData>]  | [{<hiddenData>}]) [<siteType>] (at:<int>  | <region>) [level:<int>] [<boolean>] (to:<player>  | To:<roleType>) [<then>])
PARAM JAVADOC: [<hiddenData>]: The type of hidden data [Invisible].
PARAM JAVADOC: [{<hiddenData>}]: The types of hidden data [Invisible].
PARAM JAVADOC: [<siteType>]: The graph element type [default of the board].
PARAM JAVADOC: at:<int>: The site to set the hidden information.
PARAM JAVADOC: <region>: The region to set the hidden information.
PARAM JAVADOC: [level:<int>]: The level to set the hidden information [0].
PARAM JAVADOC: [<boolean>]: The value to set [True].
PARAM JAVADOC: to:<player>: The player with these hidden information.
PARAM JAVADOC: To:<roleType>: The roleType with these hidden information.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (set Hidden What at:(last To) to:Mover)
EXAMPLE: (set Hidden What at:(last To) to:P2)
EXAMPLE: (set Hidden Count (sites Occupied by:Next) to:Mover)
NEW CTOR
(set TrumpSuit (<int>  | <difference>) [<then>])
PARAM JAVADOC: <int>: The suit to choose.
PARAM JAVADOC: <difference>: The possible suits to choose.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (set TrumpSuit (card Suit at:(handSite Shared)))
NEW CTOR
(set NextPlayer (<player>  | <intArrayFunction>) [<then>])
PARAM JAVADOC: <player>: The data of the next player.
PARAM JAVADOC: <intArrayFunction>: The indices of the next players.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (set NextPlayer (player (mover)))
NEW CTOR
(set Rotation [<to>] ([{<int>}]  | [<int>]) [previous:<boolean>] [next:<boolean>] [<then>])
PARAM JAVADOC: [<to>]: Description of the ``to'' location [(to (from))].
PARAM JAVADOC: [{<int>}]: The index of the possible new rotations.
PARAM JAVADOC: [<int>]: The index of the possible new rotation.
PARAM JAVADOC: [previous:<boolean>]: True to allow movement to the left [True].
PARAM JAVADOC: [next:<boolean>]: True to allow movement to the right [True].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (set Rotation)
EXAMPLE: (set Rotation (to (last To)) next:False)
NEW CTOR
(set <setPlayerType> (<player>  | <roleType>) <int> [<then>])
PARAM JAVADOC: <setPlayerType>: The type of property to set.
PARAM JAVADOC: <player>: The index of the player.
PARAM JAVADOC: <roleType>: The role of the player.
PARAM JAVADOC: <int>: The value of the player.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (set Value Mover 1)
EXAMPLE: (set Score P1 50)
NEW CTOR
(set Pending ([<int>]  | [<region>]) [<then>])
PARAM JAVADOC: [<int>]: The value of the pending state [1].
PARAM JAVADOC: [<region>]: The set of locations to put in pending.
PARAM JAVADOC: [<then>]: The moves to apply afterwards.
EXAMPLE: (set Pending)
EXAMPLE: (set Pending (sites From (forEach Piece)))
NEW CTOR
(set Var [<string>] [<int>] [<then>])
PARAM JAVADOC: [<string>]: The name of the var.
PARAM JAVADOC: [<int>]: The new counter value [-1].
PARAM JAVADOC: [<then>]: The moves to apply afterwards.
EXAMPLE: (set Var (value Piece at:(last To)))
NEW CTOR
(set <setValueType> [<int>] [<then>])
PARAM JAVADOC: <setValueType>: The type of property to set.
PARAM JAVADOC: [<int>]: The new counter value [-1].
PARAM JAVADOC: [<then>]: The moves to apply afterwards.
EXAMPLE: (set Counter -1)
NEW CTOR
(set <setSiteType> [<siteType>] at:<int> [level:<int>] <int> [<then>])
PARAM JAVADOC: <setSiteType>: The type of property to set.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The site to set.
PARAM JAVADOC: [level:<int>]: The level to set [0].
PARAM JAVADOC: <int>: The new value.
PARAM JAVADOC: [<then>]: The moves to apply afterwards.
EXAMPLE: (set State at:(last To) (mover))
EXAMPLE: (set Count at:(last To) 10)
EXAMPLE: (set Value at:(last To) 10)
TYPE: game.rules.play.moves.nonDecision.effect.set.SetPlayerType
TYPE JAVADOC: Defines properties related to the players that can be set in the game state.
CONST JAVADOC: Value: Sets the value associated with a player.
CONST JAVADOC: Score: Sets the score of a player.
TYPE: game.rules.play.moves.nonDecision.effect.set.SetSiteType
TYPE JAVADOC: Defines properties of sites that can be set in the game state.
CONST JAVADOC: Count: Set the count value for specified sites.
CONST JAVADOC: State: Set the local state value for specified sites.
CONST JAVADOC: Value: Set the piece value for specified sites.
TYPE: game.rules.play.moves.nonDecision.effect.set.SetValueType
TYPE JAVADOC: Defines the types of integer values that can be set in the game state.
CONST JAVADOC: Counter: Sets the counter of the game state.
CONST JAVADOC: Pot: Sets the pot of the game state.
TYPE: game.rules.play.moves.nonDecision.effect.state.AddScore
TYPE JAVADOC: Adds a value to the score of a player.
NEW CTOR
(addScore (<player>  | <roleType>) <int> [<then>])
PARAM JAVADOC: <player>: The index of the player.
PARAM JAVADOC: <roleType>: The roleType of the player.
PARAM JAVADOC: <int>: The score of the player.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (addScore Mover 50)
NEW CTOR
(addScore ({<int>}  | {<roleType>}) {<int>} [<then>])
PARAM JAVADOC: {<int>}: The indices of the players.
PARAM JAVADOC: {<roleType>}: The roleType of the players.
PARAM JAVADOC: {<int>}: The scores to add.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (addScore {P1 P2} {50 10})
TYPE: game.rules.play.moves.nonDecision.effect.state.MoveAgain
TYPE JAVADOC: Is used to move again.
NEW CTOR
(moveAgain [<then>])
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (moveAgain)
REMARKS: For games with multiple moves in a turn.
TYPE: game.rules.play.moves.nonDecision.effect.state.forget.Forget
TYPE JAVADOC: Forget information about the state to be used in future state.
NEW CTOR
(forget Value [<string>] All [<then>])
PARAM JAVADOC: [<string>]: The name of the remembering values.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forget Value All)
NEW CTOR
(forget Value [<string>] <int> [<then>])
PARAM JAVADOC: [<string>]: The name of the remembering values.
PARAM JAVADOC: <int>: The value to forget.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forget Value (count Pips))
TYPE: game.rules.play.moves.nonDecision.effect.state.remember.Remember
TYPE JAVADOC: Remember information about the state to be used in future state.
NEW CTOR
(remember Value [<string>] <int> [unique:<boolean>] [<then>])
PARAM JAVADOC: [<string>]: The name of the remembering values.
PARAM JAVADOC: <int>: The value to remember.
PARAM JAVADOC: [unique:<boolean>]: True if each remembered value has to be unique [False].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (remember Value (count Pips))
NEW CTOR
(remember State [<then>])
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (remember State)
TYPE: game.rules.play.moves.nonDecision.effect.state.swap.Swap
TYPE JAVADOC: Swaps two players or two pieces.
NEW CTOR
(swap Pieces [<int>] [<int>] [<then>])
PARAM JAVADOC: [<int>]: The first location [(lastFrom)].
PARAM JAVADOC: [<int>]: The second location [(lastTo)].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (swap Pieces)
NEW CTOR
(swap Players (<int>  | <roleType>) (<int> (<roleType>) [<then>])
PARAM JAVADOC: <int>: The index of the first player.
PARAM JAVADOC: <roleType>: The role of the first player.
PARAM JAVADOC: <int>: The index of the second player.
PARAM JAVADOC: <roleType>: The role of the second player.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (swap Players P1 P2)
TYPE: game.rules.play.moves.nonDecision.effect.take.Take
TYPE JAVADOC: Takes a piece or the control of pieces.
NEW CTOR
(take Domino [<then>])
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (take Domino)
NEW CTOR
(take Control (of:<roleType>  | Of:<int>) (by:<roleType> (By:<int>) ([at:<int>] ([to:<region>]) [<siteType>] [<then>])
PARAM JAVADOC: of:<roleType>: The roleType of the pieces to take control of.
PARAM JAVADOC: Of:<int>: The player index of the pieces to take control of.
PARAM JAVADOC: by:<roleType>: The roleType taking the control.
PARAM JAVADOC: By:<int>: The player index of the player taking control.
PARAM JAVADOC: [at:<int>]: The site to take the control.
PARAM JAVADOC: [to:<region>]: The region to take the control.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (take Control of:P1 by:Mover)
TYPE: game.rules.play.moves.nonDecision.operator.Operator
TYPE JAVADOC: Defines operations that combine lists of moves, then optionally perform some additional effects.
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.AllCombinations
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.And
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Append
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.If
SUBCLASS: game.rules.play.moves.nonDecision.operators.logical.Or
TYPE: game.rules.play.moves.nonDecision.operators.foreach.ForEach
TYPE JAVADOC: Iterates over a set of items.
NEW CTOR
(forEach Level [<siteType>] <int> [<stackDirection>] <moves> [<then>])
PARAM JAVADOC: [<siteType>]: The type of the graph elements of the group [default SiteType of the board].
PARAM JAVADOC: <int>: The site to iterate through.
PARAM JAVADOC: [<stackDirection>]: The direction to count in the stack [FromTop].
PARAM JAVADOC: <moves>: The moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Level (last To) (if (= (id "King" Mover) (what at:(last To) level:(level))) (addScore Mover 1)))
NEW CTOR
(forEach Team <moves> [<then>])
PARAM JAVADOC: <moves>: The moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Team (forEach (team) (set Hidden What at:(site) to:Player)))
NEW CTOR
(forEach Group [<siteType>] [<direction>] [If:<boolean>] <moves> [<then>])
PARAM JAVADOC: [<siteType>]: The type of the graph elements of the group.
PARAM JAVADOC: [<direction>]: The directions of the connection between elements in the group [Adjacent].
PARAM JAVADOC: [If:<boolean>]: The condition on the pieces to include in the group.
PARAM JAVADOC: <moves>: The moves to apply.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Group (addScore Mover (count Sites in:(sites))))
NEW CTOR
(forEach Die [<int>] [combined:<boolean>] [replayDouble:<boolean>] [If:<boolean>] <moves> [<then>])
PARAM JAVADOC: [<int>]: The index of the dice container [0].
PARAM JAVADOC: [combined:<boolean>]: True if the combination is allowed [False].
PARAM JAVADOC: [replayDouble:<boolean>]: True if double allows a second move [False].
PARAM JAVADOC: [If:<boolean>]: The condition to satisfy to move [True].
PARAM JAVADOC: <moves>: The moves to apply.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Die (if (= (pips) 5) (or (forEach Piece "Pawn") (forEach Piece "King_noCross")) (if (= (pips) 4) (forEach Piece "Elephant") (if (= (pips) 3) (forEach Piece "Knight") (if (= (pips) 2) (forEach Piece "Boat") ) ) ) ) )
NEW CTOR
(forEach Direction [<from>] [<direction>] [<between>] (<to>  | <moves>) [<then>])
PARAM JAVADOC: [<from>]: The origin of the movement [(from)].
PARAM JAVADOC: [<direction>]: The directions of the move [Adjacent].
PARAM JAVADOC: [<between>]: The data on the locations between the from location and the to location [(between (exact 1))].
PARAM JAVADOC: <to>: The data on the location to move.
PARAM JAVADOC: <moves>: The moves to applied on these directions.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Direction (from (to)) (directions {FR FL}) (to if:(or (is In (to) (sites Empty)) (is Enemy (who at:(to)))) (apply (fromTo (from) (to if:(or (is Empty (to)) (is Enemy (who at:(to)))) (apply (remove (to))) ) ) ) ) )
NEW CTOR
(forEach Site <region> <moves> [noMoveYet:<moves>] [<then>])
PARAM JAVADOC: <region>: The region used.
PARAM JAVADOC: <moves>: The move to apply.
PARAM JAVADOC: [noMoveYet:<moves>]: The moves to apply if the list of moves resulting from the generator is empty.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Site (intersection (sites Around (last To)) (sites Occupied by:Next) ) (and (remove (site)) (add (piece (id "Ball" Mover)) (to (site))) ) )
NEW CTOR
(forEach Value <intArrayFunction> <moves> [<then>])
PARAM JAVADOC: <intArrayFunction>: The IntArrayFunction.
PARAM JAVADOC: <moves>: The move to apply.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Value (values Remembered) (move (from) (to (trackSite Move steps:(value)))))
NEW CTOR
(forEach Value min:<int> max:<int> <moves> [<then>])
PARAM JAVADOC: min:<int>: The minimal value.
PARAM JAVADOC: max:<int>: The maximal value.
PARAM JAVADOC: <moves>: The move to apply.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Value min:1 max:5 (move (from) (to (trackSite Move steps:(value)))))
NEW CTOR
(forEach Piece [on:<siteType>] ([<string>]  | [{<string>}]) ([container:<int>] ([<string>]) [<moves>] ([<player>]  | [<roleType>]) [top:<boolean>] [<then>])
PARAM JAVADOC: [on:<siteType>]: Type of graph element.
PARAM JAVADOC: [<string>]: The name of the piece.
PARAM JAVADOC: [{<string>}]: The names of the pieces.
PARAM JAVADOC: [container:<int>]: The index of the container.
PARAM JAVADOC: [<string>]: The name of the container.
PARAM JAVADOC: [<moves>]: The specific moves to apply to the pieces.
PARAM JAVADOC: [<player>]: The owner of the piece [(mover)].
PARAM JAVADOC: [<roleType>]: The role type of the owner of the piece [Mover].
PARAM JAVADOC: [top:<boolean>]: To apply the move only to the top piece in case of a stack [False].
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Piece)
EXAMPLE: (forEach Piece "Bear" (step (to if:(= (what at:(to)) (id "Seal1"))) ) )
NEW CTOR
(forEach Player <moves> [<then>])
PARAM JAVADOC: <moves>: The moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach Player (addScore (player (player)) 1))
NEW CTOR
(forEach <intArrayFunction> <moves> [<then>])
PARAM JAVADOC: <intArrayFunction>: The list of players.
PARAM JAVADOC: <moves>: The moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (forEach (players Ally of:(next)) (addScore (player (player)) 1))
TYPE: game.rules.play.moves.nonDecision.operators.logical.AllCombinations
TYPE JAVADOC: Generates all combinations (i.e. the cross product) between two lists of moves.
NEW CTOR
(allCombinations <moves> <moves> [<then>])
PARAM JAVADOC: <moves>: The first list.
PARAM JAVADOC: <moves>: The second list.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (allCombinations (add (piece (id "Disc0") state:(mover)) (to (site))) (flip (between)) )
TYPE: game.rules.play.moves.nonDecision.operators.logical.And
TYPE JAVADOC: Moves all the moves in the list if used in a consequence else only one move in the list.
NEW CTOR
(and <moves> <moves> [<then>])
PARAM JAVADOC: <moves>: The first move.
PARAM JAVADOC: <moves>: The second move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (and (set Score P1 100) (set Score P2 100))
NEW CTOR
(and {<moves>} [<then>])
PARAM JAVADOC: {<moves>}: The list of moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (and { (set Score P1 100) (set Score P2 100) (set Score P3 100) })
TYPE: game.rules.play.moves.nonDecision.operators.logical.Append
TYPE JAVADOC: Appends a list of moves to each move in a list.
NEW CTOR
(append <nonDecision> [<then>])
PARAM JAVADOC: <nonDecision>: The moves to merge.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (append (custodial (between if:(is Enemy (state at:(between))) (apply (allCombinations (add (piece "Disc0" state:(mover)) (to (site))) (flip (between)) ) ) ) (to if:(is Friend (state at:(to)))) ) (then (and (set Score P1 (count Sites in:(sites State 1)) ) (set Score P2 (count Sites in:(sites State 2)) ) ) ) )
TYPE: game.rules.play.moves.nonDecision.operators.logical.If
TYPE JAVADOC: Returns, depending on the condition, a list of legal moves or an other list.
NEW CTOR
(if <boolean> <moves> [<moves>] [<then>])
PARAM JAVADOC: <boolean>: The condition to satisfy to get the first list of legal moves.
PARAM JAVADOC: <moves>: The first list of legal moves.
PARAM JAVADOC: [<moves>]: The other list of legal moves if the condition is not satisfied.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (if (is Mover P1) (moveAgain))
EXAMPLE: (if (is Mover P1) (moveAgain) (remove (last To)))
TYPE: game.rules.play.moves.nonDecision.operators.logical.Or
TYPE JAVADOC: Moves one of the moves in the list.
NEW CTOR
(or <moves> <moves> [<then>])
PARAM JAVADOC: <moves>: The first move.
PARAM JAVADOC: <moves>: The second move.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (or (set Score P1 100) (set Score P2 100))
NEW CTOR
(or {<moves>} [<then>])
PARAM JAVADOC: {<moves>}: The list of moves.
PARAM JAVADOC: [<then>]: The moves applied after that move is applied.
EXAMPLE: (or { (set Score P1 100) (set Score P2 100) (set Score P3 100) })
TYPE: game.rules.play.moves.nonDecision.operators.logical.Seq
TYPE JAVADOC: Applies a sequence of moves one by one. Each move will use the new (temporary) state/context created by the previous move applied in the sequence.
NEW CTOR
(seq {<moves>})
PARAM JAVADOC: {<moves>}: Moves to apply one by one.
EXAMPLE: (seq {(remove 1) (remove 2)})
TYPE: game.rules.start.Deal
TYPE JAVADOC: To deal different components between players.
NEW CTOR
(deal <dealableType> [int])
PARAM JAVADOC: <dealableType>: Type of deal.
PARAM JAVADOC: [int]: The number of components to deal [1].
EXAMPLE: (deal Dominoes 7)
TYPE: game.rules.start.Start
TYPE JAVADOC: Defines a starting position.
NEW CTOR
(start ({<startRule>}  | <startRule>))
PARAM JAVADOC: {<startRule>}: The starting rules.
PARAM JAVADOC: <startRule>: The starting rule.
EXAMPLE: (start { (place "Pawn1" {"F4" "F5" "F6" "F7" "F8" "F9" "G5" "G6" "G7" "G8"}) (place "Knight1" {"F3" "G4" "G9" "F10"}) (place "Pawn2" {"K4" "K5" "K6" "K7" "K8" "K9" "J5" "J6" "J7" "J8"}) (place "Knight2" {"K3" "J4" "J9" "K10"}) })
REMARKS: For any game with starting rules, like pieces already placed on the board.
TYPE: game.rules.start.StartRule
TYPE JAVADOC: Sets the initial setup rule for the start of each trial (i.e. game).
SUBCLASS: game.rules.start.Deal
SUBCLASS: game.rules.start.deductionPuzzle.Set
SUBCLASS: game.rules.start.forEach.ForEach
SUBCLASS: game.rules.start.place.Place
SUBCLASS: game.rules.start.set.Set
SUBCLASS: game.rules.start.split.Split
TYPE: game.rules.start.deductionPuzzle.Set
TYPE JAVADOC: Sets a variable to a specified value in a deduction puzzle.
NEW CTOR
(set [<siteType>] {{int}})
PARAM JAVADOC: [<siteType>]: The graph element type [Cell].
PARAM JAVADOC: {{int}}: The first element of the pair is the index of the variable, the second one the value of the variable.
EXAMPLE: (set { {1 9} {6 4} {11 8} {12 5} {16 1} {20 1} {25 6} {26 8} {30 1} {34 3} {40 4} {41 5} {42 7} {46 5} {50 7} {55 7} {58 9} {60 2} {65 3} {66 6} {72 8} })
REMARKS: Applies to deduction puzzles.
TYPE: game.rules.start.forEach.ForEach
TYPE JAVADOC: Iterates over a set of items.
NEW CTOR
(forEach Team <startRule>)
PARAM JAVADOC: <startRule>: The starting rule to apply.
EXAMPLE: (forEach Team (forEach (team) (set Hidden What at:1 to:Player)))
NEW CTOR
(forEach Site <region> [If:<boolean>] <startRule>)
PARAM JAVADOC: <region>: The original region.
PARAM JAVADOC: [If:<boolean>]: The condition to satisfy.
PARAM JAVADOC: <startRule>: The starting rule to apply.
EXAMPLE: (forEach Site (sites Top) if:(is Even (site)) (place "Pawn1" (site)))
NEW CTOR
(forEach Value min:<int> max:<int> <startRule>)
PARAM JAVADOC: min:<int>: The minimal value.
PARAM JAVADOC: max:<int>: The maximal value.
PARAM JAVADOC: <startRule>: The starting rule to apply.
EXAMPLE: (forEach Value min:1 max:5 (set Hidden What at:10 level:(value) to:P1))
NEW CTOR
(forEach Player <startRule>)
PARAM JAVADOC: <startRule>: The starting rule to apply.
EXAMPLE: (forEach Player (set Hidden What at:1 to:Player))
NEW CTOR
(forEach <intArrayFunction> <startRule>)
PARAM JAVADOC: <intArrayFunction>: The list of players.
PARAM JAVADOC: <startRule>: The starting rule to apply.
EXAMPLE: (forEach (players Ally of:(next)) (set Hidden What at:1 to:Player))
TYPE: game.rules.start.place.Place
TYPE JAVADOC: Sets some aspect of the initial game state.
NEW CTOR
(place <string> [<string>] [<siteType>] [<int>] [coord:<string>] [count:<int>] [state:<int>] [rotation:<int>] [value:<int>])
PARAM JAVADOC: <string>: The name of the item.
PARAM JAVADOC: [<string>]: The name of the container.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The location to place a piece.
PARAM JAVADOC: [coord:<string>]: The coordinate of the location to place a piece.
PARAM JAVADOC: [count:<int>]: The number of the same piece to place [1].
PARAM JAVADOC: [state:<int>]: The local state value of the piece to place [Off].
PARAM JAVADOC: [rotation:<int>]: The rotation value of the piece to place [Off].
PARAM JAVADOC: [value:<int>]: The piece value to place [Undefined].
EXAMPLE: (place "Pawn1" 0)
NEW CTOR
(place <string> [<siteType>] [{<int>}] [<region>] [{<string>}] [counts:{<int>}] [state:<int>] [rotation:<int>] [value:<int>])
PARAM JAVADOC: <string>: The item to place.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [{<int>}]: The sites to fill.
PARAM JAVADOC: [<region>]: The region to fill.
PARAM JAVADOC: [{<string>}]: The coordinates of the sites to fill.
PARAM JAVADOC: [counts:{<int>}]: The number of pieces on the state.
PARAM JAVADOC: [state:<int>]: The local state value to put on each site.
PARAM JAVADOC: [rotation:<int>]: The rotation value to put on each site.
PARAM JAVADOC: [value:<int>]: The piece value to place [Undefined].
EXAMPLE: (place "Pawn1" (sites Bottom))
NEW CTOR
(place Stack (<string>  | items:{<string>}) [<string>] [<siteType>] ([<int>]  | [{<int>}]  | [<region>]  | [coord:<string>]  | [{<string>}]) ([count:<int>] ([counts:{<int>}]) [state:<int>] [rotation:<int>] [value:<int>])
PARAM JAVADOC: <string>: The item to place on the stack.
PARAM JAVADOC: items:{<string>}: The name of the items on the stack to place.
PARAM JAVADOC: [<string>]: The name of the container.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The location to place the stack.
PARAM JAVADOC: [{<int>}]: The locations to place the stacks.
PARAM JAVADOC: [<region>]: The region to place the stacks.
PARAM JAVADOC: [coord:<string>]: The coordinate of the location to place the stack.
PARAM JAVADOC: [{<string>}]: The coordinates of the sites to place the stacks.
PARAM JAVADOC: [count:<int>]: The number of the same piece to place on the stack [1].
PARAM JAVADOC: [counts:{<int>}]: The number of pieces on the stack.
PARAM JAVADOC: [state:<int>]: The local state value of the piece on the stack to place [Undefined].
PARAM JAVADOC: [rotation:<int>]: The rotation value of the piece on the stack to place [Undefined].
PARAM JAVADOC: [value:<int>]: The piece value to place [Undefined].
EXAMPLE: (place Stack items:{"Counter2" "Counter1"} 0)
EXAMPLE: (place Stack "Disc1" coord:"A1" count:5)
NEW CTOR
(place Random [<region>] {<string>} [count:<int>] [state:<int>] [value:<int>] [<siteType>])
PARAM JAVADOC: [<region>]: The region in which to randomly place piece(s).
PARAM JAVADOC: {<string>}: The names of the item to place.
PARAM JAVADOC: [count:<int>]: The number of items to place [1].
PARAM JAVADOC: [state:<int>]: The state value to place [Undefined].
PARAM JAVADOC: [value:<int>]: The piece value to place [Undefined].
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (place Random {"Pawn1" "Pawn2"})
NEW CTOR
(place Random {<string>} [count:{<int>}] [state:<int>] [value:<int>] <int> [<siteType>])
PARAM JAVADOC: {<string>}: The names of each type of piece in the stack.
PARAM JAVADOC: [count:{<int>}]: The number of pieces of each piece in the stack.
PARAM JAVADOC: [state:<int>]: The state value to place [Undefined].
PARAM JAVADOC: [value:<int>]: The piece value to place [Undefined].
PARAM JAVADOC: <int>: The site on which to place the stack.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (place Random {"Ball1"} count:29)
NEW CTOR
(place Random {<count>} <int> [<siteType>])
PARAM JAVADOC: {<count>}: The items to be placed, with counts.
PARAM JAVADOC: <int>: The site on which to place the stack.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
EXAMPLE: (place Random { (count "Pawn1" 8) (count "Rook1" 2) (count "Knight1" 2) (count "Bishop1" 2) (count "Queen1" 1) (count "King1" 1) } (handSite 1) )
TYPE: game.rules.start.set.Set
TYPE JAVADOC: Sets some aspect of the initial game state.
NEW CTOR
(set RememberValue [<string>] (<int>  | <region>) [unique:<boolean>])
PARAM JAVADOC: [<string>]: The name of the remembering values.
PARAM JAVADOC: <int>: The value to remember.
PARAM JAVADOC: <region>: The values to remember.
PARAM JAVADOC: [unique:<boolean>]: If True we remember a value only if not already remembered[False].
EXAMPLE: (set RememberValue 5)
NEW CTOR
(set Hidden ([<hiddenData>]  | [{<hiddenData>}]) [<siteType>] (at:<int>  | <region>) [level:<int>] [<boolean>] to:<roleType>)
PARAM JAVADOC: [<hiddenData>]: The type of hidden data [Invisible].
PARAM JAVADOC: [{<hiddenData>}]: The types of hidden data [Invisible].
PARAM JAVADOC: [<siteType>]: The graph element type [default of the board].
PARAM JAVADOC: at:<int>: The site to set the hidden information.
PARAM JAVADOC: <region>: The region to set the hidden information.
PARAM JAVADOC: [level:<int>]: The level to set the hidden information [0].
PARAM JAVADOC: [<boolean>]: The value to set [True].
PARAM JAVADOC: to:<roleType>: The player with these hidden information.
EXAMPLE: (set Hidden What at:5 to:P1)
EXAMPLE: (set Hidden What at:6 to:P2)
EXAMPLE: (set Hidden Count (sites Occupied by:Next) to:P1)
NEW CTOR
(set <roleType> [<siteType>] [<int>] [coord:<string>])
PARAM JAVADOC: <roleType>: The owner of the site.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [<int>]: The location to place a piece.
PARAM JAVADOC: [coord:<string>]: The coordinate of the location to place a piece.
EXAMPLE: (set P1 Vertex 5)
NEW CTOR
(set <roleType> [<siteType>] [{<int>}] [<region>] [{<string>}])
PARAM JAVADOC: <roleType>: The owner of the site.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: [{<int>}]: The sites to fill.
PARAM JAVADOC: [<region>]: The region to fill.
PARAM JAVADOC: [{<string>}]: The coordinates of the sites to fill.
EXAMPLE: (set P1 Vertex (sites {0 5 6} ))
NEW CTOR
(set <setStartSitesType> <int> [<siteType>] (at:<int>  | to:<region>))
PARAM JAVADOC: <setStartSitesType>: The property to set.
PARAM JAVADOC: <int>: The value.
PARAM JAVADOC: [<siteType>]: The graph element type [default SiteType of the board].
PARAM JAVADOC: at:<int>: The site to set.
PARAM JAVADOC: to:<region>: The region to set.
EXAMPLE: (set Count 5 to:(sites Track) )
EXAMPLE: (set Cost 5 Vertex at:10)
EXAMPLE: (set Phase 1 Cell at:3)
NEW CTOR
(set <setStartPlayerType> [<roleType>] <int>)
PARAM JAVADOC: <setStartPlayerType>: The property to set.
PARAM JAVADOC: [<roleType>]: The roleType of the player.
PARAM JAVADOC: <int>: The value to set.
EXAMPLE: (set Amount 5000)
NEW CTOR
(set Team <int> {<roleType>})
PARAM JAVADOC: <int>: The index of the team.
PARAM JAVADOC: {<roleType>}: The roleType of the player.
EXAMPLE: (set Team 1 {P1 P3})
TYPE: game.rules.start.set.SetStartPlayerType
TYPE JAVADOC: Defines the player properties that can be set in the starting rules.
CONST JAVADOC: Amount: Sets the initial amount for a player.
CONST JAVADOC: Score: Sets the initial score of a player.
TYPE: game.rules.start.set.SetStartSitesType
TYPE JAVADOC: Defines the properties of board sites that can be set in the starting rules.
CONST JAVADOC: Count: Sets the count of a site or region.
CONST JAVADOC: Cost: Sets the cost of a site or region.
CONST JAVADOC: Phase: Sets the phase of a site or region.
TYPE: game.rules.start.split.Split
TYPE JAVADOC: Splits a deck of cards.
NEW CTOR
(split Deck)
EXAMPLE: (split Deck)
REMARKS: This ludeme is used for card games.
TYPE: game.types.board.BasisType
TYPE JAVADOC: Defines known tiling types for boards.
CONST JAVADOC: NoBasis: No tiling; custom graph.
CONST JAVADOC: Triangular: Triangular tiling.
CONST JAVADOC: Square: Square tiling.
CONST JAVADOC: Hexagonal: Hexagonal tiling.
CONST JAVADOC: T33336: Semi-regular tiling made up of hexagons surrounded by triangles.
CONST JAVADOC: T33344: Semi-regular tiling made up of alternating rows of squares and triangles.
CONST JAVADOC: T33434: Semi-regular tiling made up of squares and pairs of triangles.
CONST JAVADOC: T3464: Rhombitrihexahedral tiling (e.g. Kensington).
CONST JAVADOC: T3636: Semi-regular tiling 3.6.3.6 made up of hexagons with interstitial triangles.
CONST JAVADOC: T4612: Semi-regular tiling made up of squares, hexagons and dodecagons.
CONST JAVADOC: T488: Semi-regular tiling 4.8.8. made up of octagons with interstitial squares.
CONST JAVADOC: T31212: Semi-regular tiling made up of triangles and dodecagons.
CONST JAVADOC: T333333_33434: Tiling 3.3.3.3.3.3,3.3.4.3.4.
CONST JAVADOC: SquarePyramidal: Square pyramidal tiling (e.g. Shibumi).
CONST JAVADOC: HexagonalPyramidal: Hexagonal pyramidal tiling.
CONST JAVADOC: Concentric: Concentric tiling (e.g. Morris boards, wheel boards, ...).
CONST JAVADOC: Circle: Circular tiling (e.g. Round Merels).
CONST JAVADOC: Spiral: Spiral tiling (e.g. Mehen).
CONST JAVADOC: Dual: Tiling derived from the weak dual of a graph.
CONST JAVADOC: Brick: Brick tiling using 1x2 rectangular brick tiles.
CONST JAVADOC: Mesh: Mesh formed by random spread of points within an outline shape.
CONST JAVADOC: Morris: Morris tiling with concentric square rings and empty centre.
CONST JAVADOC: Celtic: Tiling on a square grid based on Celtic knotwork.
CONST JAVADOC: QuadHex: Quadhex board consisting of a hexagon tessellated by quadrilaterals (e.g. Three Player Chess).
TYPE: game.types.board.HiddenData
TYPE JAVADOC: Defines possible data to be hidden.
CONST JAVADOC: What: The id of the component on the location is hidden.
CONST JAVADOC: Who: The owner of the component of the location is hidden.
CONST JAVADOC: State: The local state of the location is hidden.
CONST JAVADOC: Count: The number of components on the location is hidden.
CONST JAVADOC: Rotation: The rotation of the component on the location is hidden.
CONST JAVADOC: Value: The piece value of the component on the location is hidden.
TYPE: game.types.board.LandmarkType
TYPE JAVADOC: Defines certain landmarks that can be used to specify individual sites on the board.
CONST JAVADOC: CentreSite: The central site of the board.
CONST JAVADOC: LeftSite: The site that is furthest to the left.
CONST JAVADOC: RightSite: The site that is furthest to the right
CONST JAVADOC: Topsite: The site that is furthest to the top.
CONST JAVADOC: BottomSite: The site that is furthest to the bottom.
CONST JAVADOC: FirstSite: The first site indexed in the graph.
CONST JAVADOC: LastSite: The last site indexed in the graph.
TYPE: game.types.board.PuzzleElementType
TYPE JAVADOC: Defines the possible types of variables that can be used in deduction puzzles.
CONST JAVADOC: Cell: A variable corresponding to a cell.
CONST JAVADOC: Edge: A variable corresponding to an edge.
CONST JAVADOC: Vertex: A variable corresponding to a vertex.
CONST JAVADOC: Hint: A variable corresponding to a hint.
TYPE: game.types.board.RegionTypeDynamic
TYPE JAVADOC: Defines regions which can change during play.
CONST JAVADOC: Empty: All the empty sites of the current state.
CONST JAVADOC: NotEmpty: All the occupied sites of the current state.
CONST JAVADOC: Own: All the sites occupied by a piece of the mover.
CONST JAVADOC: NotOwn: All the sites not occupied by a piece of the mover.
CONST JAVADOC: Enemy: All the sites occupied by a piece of an enemy of the mover.
CONST JAVADOC: NotEnemy: All the sites empty or occupied by a {\tt Neutral} piece.
TYPE: game.types.board.RegionTypeStatic
TYPE JAVADOC: Defines known (predefined) regions of the board.
CONST JAVADOC: Rows: Row areas.
CONST JAVADOC: Columns: Column areas.
CONST JAVADOC: AllDirections: All direction areas.
CONST JAVADOC: HintRegions: Hint areas.
CONST JAVADOC: Layers: Layers areas.
CONST JAVADOC: Diagonals: diagonal areas.
CONST JAVADOC: SubGrids: SubGrid areas.
CONST JAVADOC: Regions: Region areas.
CONST JAVADOC: Vertices: Vertex areas.
CONST JAVADOC: Corners: Corner areas.
CONST JAVADOC: Sides: Side areas.
CONST JAVADOC: SidesNoCorners: Side areas that are not corners.
CONST JAVADOC: AllSites: All site areas.
CONST JAVADOC: Touching: Touching areas.
TYPE: game.types.board.RelationType
TYPE JAVADOC: Defines the possible relation types between graph elements.
CONST JAVADOC: Orthogonal: Orthogonal relation.
CONST JAVADOC: Diagonal: Diagonal relation.
CONST JAVADOC: OffDiagonal: Diagonal-off relation.
CONST JAVADOC: Adjacent: Adjacent relation.
CONST JAVADOC: All: Any relation.
TYPE: game.types.board.ShapeType
TYPE JAVADOC: Defines shape types for known board shapes.
CONST JAVADOC: NoShape: No defined board shape.
CONST JAVADOC: Custom: Custom board shape defined by the user.
CONST JAVADOC: Square: Square board shape.
CONST JAVADOC: Rectangle: Rectangular board shape.
CONST JAVADOC: Triangle: Triangular board shape.
CONST JAVADOC: Hexagon: Hexagonal board shape.
CONST JAVADOC: Cross: Cross board shape.
CONST JAVADOC: Diamond: Diamond board shape.
CONST JAVADOC: Prism: Diamond board shape extended vertically.
CONST JAVADOC: Quadrilateral: General quadrilateral board shape.
CONST JAVADOC: Rhombus: Rhombus board shape.
CONST JAVADOC: Wheel: Wheel board shape.
CONST JAVADOC: Circle: Circular board shape.
CONST JAVADOC: Spiral: Spiral board shape.
CONST JAVADOC: Wedge: Wedge shape of height N with 1 vertex at the top and 3 vertices on the bottom, for Alquerque boards.
CONST JAVADOC: Star: Multi-pointed star shape.
CONST JAVADOC: Limping: Alternating sides are staggered.
CONST JAVADOC: Regular: Regular polygon with sides of the same length.
CONST JAVADOC: Polygon: General polygon.
TYPE: game.types.board.SiteType
TYPE JAVADOC: Defines the element types that make up each graph.
CONST JAVADOC: Vertex: Graph vertex.
CONST JAVADOC: Edge: Graph edge.
CONST JAVADOC: Cell: Graph cell/face.
TYPE: game.types.board.StepType
TYPE JAVADOC: Defines possible ``turtle steps'' for describing walks through adjacent sites.
CONST JAVADOC: F: Forward a step.
CONST JAVADOC: L: Turn left a step.
CONST JAVADOC: R: Turn right a step.
TYPE: game.types.board.StoreType
TYPE JAVADOC: Defines the different stores for a mancala board.
CONST JAVADOC: None: No store.
CONST JAVADOC: Outer: Outer store.
CONST JAVADOC: Inner: Inner store.
TYPE: game.types.board.TilingBoardlessType
TYPE JAVADOC: Defines supported tiling types for boardless games.
CONST JAVADOC: Square: Square tiling.
CONST JAVADOC: Triangular: Triangular tiling.
CONST JAVADOC: Hexagonal: Hexagonal tiling.
TYPE: game.types.component.CardType
TYPE JAVADOC: Defines possible rank values of cards.
CONST JAVADOC: Joker: Joker rank.
CONST JAVADOC: Ace: Ace rank.
CONST JAVADOC: Two: Two rank.
CONST JAVADOC: Three: Three rank.
CONST JAVADOC: Four: Four rank.
CONST JAVADOC: Five: Five rank.
CONST JAVADOC: Six: Six rank.
CONST JAVADOC: Seven: Seven rank.
CONST JAVADOC: Eight: Eight rank.
CONST JAVADOC: Nine: Nine rank.
CONST JAVADOC: Ten: Ten rank.
CONST JAVADOC: Jack: Jack rank.
CONST JAVADOC: Queen: Queen rank.
CONST JAVADOC: King: King rank.
TYPE: game.types.component.DealableType
TYPE JAVADOC: Specifies which types of components can be dealt.
CONST JAVADOC: Dominoes: Domino component.
CONST JAVADOC: Cards: Card component.
TYPE: game.types.component.SuitType
TYPE JAVADOC: Defines the possible suit types of cards.
CONST JAVADOC: Clubs: Club suit.
CONST JAVADOC: Spades: Spade suit.
CONST JAVADOC: Diamonds: Diamond suit.
CONST JAVADOC: Hearts: Heart suit.
TYPE: game.types.play.ModeType
TYPE JAVADOC: Defines the possible modes of play.
CONST JAVADOC: Alternating: Players alternate making discrete moves.
CONST JAVADOC: Simultaneous: Players move at the same time.
CONST JAVADOC: Simulation: Simulation game
TYPE: game.types.play.PassEndType
TYPE JAVADOC: Defines the possible types of ending results if all players are passed their turn.
CONST JAVADOC: Draw: The game in a draw.
CONST JAVADOC: NoEnd: The game does not end.
TYPE: game.types.play.PrevType
TYPE JAVADOC: Defines the possible previous states to refer to.
CONST JAVADOC: Mover: The state corresponding to the previous move.
CONST JAVADOC: MoverLastTurn: The state corresponding to the previous turn.
TYPE: game.types.play.RepetitionType
TYPE JAVADOC: Defines the possible types of repetition that can occur in a game.
CONST JAVADOC: SituationalInTurn: Situational State repeated within a turn.
CONST JAVADOC: PositionalInTurn: Positional State repeated within a turn.
CONST JAVADOC: Positional: State repeated within a game (pieces on the board only).
CONST JAVADOC: Situational: State repeated within a game (all data in the state).
TYPE: game.types.play.ResultType
TYPE JAVADOC: Defines expected outcomes for each game.
CONST JAVADOC: Win: Somebody wins.
CONST JAVADOC: Loss: Somebody loses.
CONST JAVADOC: Draw: Nobody wins.
CONST JAVADOC: Tie: Everybody wins.
CONST JAVADOC: Abandon: Game abandoned, typically for being too long.
CONST JAVADOC: Crash: Game stopped due to run-time error.
TYPE: game.types.play.RoleType
TYPE JAVADOC: Defines the possible role types of the players in a game.
CONST JAVADOC: Neutral: Neutral role, owned by nobody.
CONST JAVADOC: P1: Player 1.
CONST JAVADOC: P2: Player 2.
CONST JAVADOC: P3: Player 3.
CONST JAVADOC: P4: Player 4.
CONST JAVADOC: P5: Player 5.
CONST JAVADOC: P6: Player 6.
CONST JAVADOC: P7: Player 7.
CONST JAVADOC: P8: Player 8.
CONST JAVADOC: P9: Player 9.
CONST JAVADOC: P10: Player 10.
CONST JAVADOC: P11: Player 11.
CONST JAVADOC: P12: Player 12.
CONST JAVADOC: P13: Player 13.
CONST JAVADOC: P14: Player 14.
CONST JAVADOC: P15: Player 15.
CONST JAVADOC: P16: Player 16.
CONST JAVADOC: Team1: Team 1 (index 1).
CONST JAVADOC: Team2: Team 2 (index 2).
CONST JAVADOC: Team3: Team 3 (index 3).
CONST JAVADOC: Team4: Team 4 (index 4).
CONST JAVADOC: Team5: Team 5 (index 5).
CONST JAVADOC: Team6: Team 6 (index 6).
CONST JAVADOC: Team7: Team 7 (index 7).
CONST JAVADOC: Team8: Team 8 (index 8).
CONST JAVADOC: Team9: Team 9 (index 9).
CONST JAVADOC: Team10: Team 10 (index 10).
CONST JAVADOC: Team11: Team 11 (index 11).
CONST JAVADOC: Team12: Team 12 (index 12).
CONST JAVADOC: Team13: Team 13 (index 13).
CONST JAVADOC: Team14: Team 14 (index 14).
CONST JAVADOC: Team15: Team 15 (index 15).
CONST JAVADOC: Team16: Team 16 (index 16).
CONST JAVADOC: TeamMover: Team of the mover (index Mover).
CONST JAVADOC: Each: Applies to each player (for iteration), e.g. same piece owned by each player
CONST JAVADOC: Shared: Shared role, shared by all players.
CONST JAVADOC: All: All players.
CONST JAVADOC: Mover: Player who is moving.
CONST JAVADOC: Next: Player who is moving next turn.
CONST JAVADOC: Prev: Player who made the previous decision move.
CONST JAVADOC: NonMover: Players who are not moving.
CONST JAVADOC: Enemy: Enemy players.
CONST JAVADOC: Friend: Friend players (Mover + Allies).
CONST JAVADOC: Ally: Ally players.
CONST JAVADOC: Player: Placeholder for iterator over all players, e.g. from end.ForEach.
TYPE: game.types.play.WhenType
TYPE JAVADOC: Defines when to perform certain tests or actions within a game.
CONST JAVADOC: StartOfTurn: Start of a turn.
CONST JAVADOC: EndOfTurn: End of a turn.
TYPE: game.util.directions.AbsoluteDirection
TYPE JAVADOC: Describes categories of absolute directions.
CONST JAVADOC: All: All directions.
CONST JAVADOC: Angled: Angled directions.
CONST JAVADOC: Adjacent: Adjacent directions.
CONST JAVADOC: Axial: Axial directions.
CONST JAVADOC: Orthogonal: Orthogonal directions.
CONST JAVADOC: Diagonal: Diagonal directions.
CONST JAVADOC: OffDiagonal: Off-diagonal directions.
CONST JAVADOC: SameLayer: Directions on the same layer.
CONST JAVADOC: Upward: Upward directions.
CONST JAVADOC: Downward: Downward directions.
CONST JAVADOC: Rotational: Rotational directions.
CONST JAVADOC: Base: Base directions.
CONST JAVADOC: Support: Support directions.
CONST JAVADOC: N: North.
CONST JAVADOC: E: East.
CONST JAVADOC: S: South.
CONST JAVADOC: W: West.
CONST JAVADOC: NE: North-East.
CONST JAVADOC: SE: South-East.
CONST JAVADOC: NW: North-West.
CONST JAVADOC: SW: South-West.
CONST JAVADOC: NNW: North-North-West.
CONST JAVADOC: WNW: West-North-West.
CONST JAVADOC: WSW: West-South-West.
CONST JAVADOC: SSW: South-South-West.
CONST JAVADOC: SSE: South-South-East.
CONST JAVADOC: ESE: East-South-East.
CONST JAVADOC: ENE: East-North-East.
CONST JAVADOC: NNE: North-North-East.
CONST JAVADOC: CW: Clockwise directions.
CONST JAVADOC: CCW: Counter-Clockwise directions.
CONST JAVADOC: In: Inwards directions.
CONST JAVADOC: Out: Outwards directions.
CONST JAVADOC: U: Upper direction.
CONST JAVADOC: UN: Upwards-North direction.
CONST JAVADOC: UNE: Upwards-North-East direction.
CONST JAVADOC: UE: Upwards-East direction.
CONST JAVADOC: USE: Upwards-South-East direction.
CONST JAVADOC: US: Upwards-South direction.
CONST JAVADOC: USW: Upwards-South-West direction.
CONST JAVADOC: UW: Upwards-West direction.
CONST JAVADOC: UNW: Upwards-North-West direction.
CONST JAVADOC: D: Down direction.
CONST JAVADOC: DN: Down-North direction.
CONST JAVADOC: DNE: Down-North-East.
CONST JAVADOC: DE: Down-East direction.
CONST JAVADOC: DSE: Down-South-East.
CONST JAVADOC: DS: Down-South direction.
CONST JAVADOC: DSW: Down-South-West.
CONST JAVADOC: DW: Down-West direction.
CONST JAVADOC: DNW: Down North West.
TYPE: game.util.directions.CompassDirection
TYPE JAVADOC: Compass directions.
CONST JAVADOC: N: North.
CONST JAVADOC: NNE: North-North-East.
CONST JAVADOC: NE: North-East.
CONST JAVADOC: ENE: East-North-East.
CONST JAVADOC: E: East.
CONST JAVADOC: ESE: East-South-East.
CONST JAVADOC: SE: South-East.
CONST JAVADOC: SSE: South-South-East.
CONST JAVADOC: S: South.
CONST JAVADOC: SSW: South-South-West.
CONST JAVADOC: SW: South-West.
CONST JAVADOC: WSW: West-South-West.
CONST JAVADOC: W: West.
CONST JAVADOC: WNW: West-North-West.
CONST JAVADOC: NW: North-West.
CONST JAVADOC: NNW: North-North-West.
TYPE: game.util.directions.DirectionFacing
TYPE JAVADOC: Provides a general ``direction'' description for use in a variety of  contexts.
SUBCLASS: game.util.directions.CompassDirection$1
SUBCLASS: game.util.directions.CompassDirection$10
SUBCLASS: game.util.directions.CompassDirection$11
SUBCLASS: game.util.directions.CompassDirection$12
SUBCLASS: game.util.directions.CompassDirection$13
SUBCLASS: game.util.directions.CompassDirection$14
SUBCLASS: game.util.directions.CompassDirection$15
SUBCLASS: game.util.directions.CompassDirection$16
SUBCLASS: game.util.directions.CompassDirection$2
SUBCLASS: game.util.directions.CompassDirection$3
SUBCLASS: game.util.directions.CompassDirection$4
SUBCLASS: game.util.directions.CompassDirection$5
SUBCLASS: game.util.directions.CompassDirection$6
SUBCLASS: game.util.directions.CompassDirection$7
SUBCLASS: game.util.directions.CompassDirection$8
SUBCLASS: game.util.directions.CompassDirection$9
SUBCLASS: game.util.directions.CompassDirection
SUBCLASS: game.util.directions.RotationalDirection$1
SUBCLASS: game.util.directions.RotationalDirection$2
SUBCLASS: game.util.directions.RotationalDirection$3
SUBCLASS: game.util.directions.RotationalDirection$4
SUBCLASS: game.util.directions.RotationalDirection
SUBCLASS: game.util.directions.SpatialDirection$1
SUBCLASS: game.util.directions.SpatialDirection$10
SUBCLASS: game.util.directions.SpatialDirection$11
SUBCLASS: game.util.directions.SpatialDirection$12
SUBCLASS: game.util.directions.SpatialDirection$13
SUBCLASS: game.util.directions.SpatialDirection$14
SUBCLASS: game.util.directions.SpatialDirection$15
SUBCLASS: game.util.directions.SpatialDirection$16
SUBCLASS: game.util.directions.SpatialDirection$17
SUBCLASS: game.util.directions.SpatialDirection$18
SUBCLASS: game.util.directions.SpatialDirection$2
SUBCLASS: game.util.directions.SpatialDirection$3
SUBCLASS: game.util.directions.SpatialDirection$4
SUBCLASS: game.util.directions.SpatialDirection$5
SUBCLASS: game.util.directions.SpatialDirection$6
SUBCLASS: game.util.directions.SpatialDirection$7
SUBCLASS: game.util.directions.SpatialDirection$8
SUBCLASS: game.util.directions.SpatialDirection$9
SUBCLASS: game.util.directions.SpatialDirection
TYPE: game.util.directions.RelativeDirection
TYPE JAVADOC: Describes categories of relative directions.
CONST JAVADOC: Forward: Forward (only) direction.
CONST JAVADOC: Backward: Backward (only) direction.
CONST JAVADOC: Rightward: Rightward (only) direction.
CONST JAVADOC: Leftward: Leftward (only) direction.
CONST JAVADOC: Forwards: Forwards directions.
CONST JAVADOC: Backwards: Backwards directions.
CONST JAVADOC: Rightwards: Rightwards directions.
CONST JAVADOC: Leftwards: Leftwards directions.
CONST JAVADOC: FL: Forward-Left direction.
CONST JAVADOC: FLL: Forward-Left-Left direction.
CONST JAVADOC: FLLL: Forward-Left-Left-Left direction.
CONST JAVADOC: BL: Backward-Left direction.
CONST JAVADOC: BLL: Backward-Left-Left direction.
CONST JAVADOC: BLLL: Backward-Left-Left-Left direction.
CONST JAVADOC: FR: Forward-Right direction.
CONST JAVADOC: FRR: Forward-Right-Right direction.
CONST JAVADOC: FRRR: Forward-Right-Right-Right direction.
CONST JAVADOC: BR: Backward-Right direction.
CONST JAVADOC: BRR: Backward-Right-Right direction.
CONST JAVADOC: BRRR: Backward-Right-Right-Right direction.
CONST JAVADOC: SameDirection: Same direction.
CONST JAVADOC: OppositeDirection: Opposite direction.
TYPE: game.util.directions.RotationalDirection
TYPE JAVADOC: Rotational directions.
CONST JAVADOC: Out: Outwards direction.
CONST JAVADOC: CW: Clockwise direction.
CONST JAVADOC: In: Inwards direction.
CONST JAVADOC: CCW: Counter-Clockwise direction.
TYPE: game.util.directions.SpatialDirection
TYPE JAVADOC: Describes intercardinal directions extended to 3D.
CONST JAVADOC: D: Down direction.
CONST JAVADOC: DN: Down-North direction.
CONST JAVADOC: DNE: Down-North-East direction.
CONST JAVADOC: DE: Down-East direction.
CONST JAVADOC: DSE: Down-South-East direction.
CONST JAVADOC: DS: Down-South direction.
CONST JAVADOC: DSW: Down-South-West direction.
CONST JAVADOC: DW: Down-West direction.
CONST JAVADOC: DNW: Down-South-West direction.
CONST JAVADOC: U: Upwards direction.
CONST JAVADOC: UN: Upwards-North direction.
CONST JAVADOC: UNE: Upwards-North-East direction.
CONST JAVADOC: UE: Upwards-East direction.
CONST JAVADOC: USE: Upwards-South-East direction.
CONST JAVADOC: US: Upwards-South direction.
CONST JAVADOC: USW: Upwards-South-West direction.
CONST JAVADOC: UW: Upwards-West direction.
CONST JAVADOC: UNW: Upwards-North-West direction.
TYPE: game.util.directions.StackDirection
TYPE JAVADOC: Describes the bottom or the top of a stack as origin for functions.
CONST JAVADOC: FromBottom: To check the stack from the bottom.
CONST JAVADOC: FromTop: To check the stack from the top.
TYPE: game.util.end.Payoff
TYPE JAVADOC: Defines a payoff to set when using the {\tt (payoffs ...)} end rule.
NEW CTOR
(payoff <roleType> <floatFunction>)
PARAM JAVADOC: <roleType>: The role of the player.
PARAM JAVADOC: <floatFunction>: The payoff of the player.
EXAMPLE: (payoff P1 5.5)
TYPE: game.util.end.Score
TYPE JAVADOC: Defines a score to set when using the {\tt (byScore ...)} end rule.
NEW CTOR
(score <roleType> <int>)
PARAM JAVADOC: <roleType>: The role of the player.
PARAM JAVADOC: <int>: The score of the player.
EXAMPLE: (score P1 100)
TYPE: game.util.equipment.Card
TYPE JAVADOC: Defines an instance of a playing card.
NEW CTOR
(card <cardType> rank:int value:int [trumpRank:int] [trumpValue:int] [biased:int])
PARAM JAVADOC: <cardType>: The type of the card.
PARAM JAVADOC: rank:int: The rank of the card.
PARAM JAVADOC: value:int: The value of the card.
PARAM JAVADOC: [trumpRank:int]: The trump rank of the card.
PARAM JAVADOC: [trumpValue:int]: The trump value of the card.
PARAM JAVADOC: [biased:int]: The biased value of the card.
EXAMPLE: (card Seven rank:0 value:0 trumpRank:0 trumpValue:0)
TYPE: game.util.equipment.Hint
TYPE JAVADOC: Defines a hint value to a region or a specific site.
NEW CTOR
(hint {int} [int])
PARAM JAVADOC: {int}: The locations.
PARAM JAVADOC: [int]: The value of the hint [0].
EXAMPLE: (hint {0 1 2 3 4 5} 1)
NEW CTOR
(hint int [int])
PARAM JAVADOC: int: The location.
PARAM JAVADOC: [int]: The value of the hint [0].
EXAMPLE: (hint 1 1)
REMARKS: This is used only for deduction puzzles.
TYPE: game.util.equipment.Region
TYPE JAVADOC: Defines a region of sites within a container.
TYPE: game.util.equipment.Values
TYPE JAVADOC: Defines the set of values of a graph variable in a deduction puzzle.
NEW CTOR
(values <siteType> <range>)
PARAM JAVADOC: <siteType>: The graph element type.
PARAM JAVADOC: <range>: The range of the values.
EXAMPLE: (values Cell (range 1 9))
TYPE: game.util.graph.Graph
TYPE JAVADOC: Defines the graph of a custom board described by a set of vertices and edges.
NEW CTOR
(graph vertices:{{<float>}} [edges:{{int}}])
PARAM JAVADOC: vertices:{{<float>}}: List of vertex positions in {x y} or {x y z} format.
PARAM JAVADOC: [edges:{{int}}]: List of vertex index pairs {vi vj} describing edge end points.
EXAMPLE: (graph vertices:{ {0 0} {1.5 0 0.5} {0.5 1} } edges:{ {0 1} {0 2} {1 2} } )
TYPE: game.util.graph.Poly
TYPE JAVADOC: Defines a polygon composed of a list of floating point (x,y) pairs.
NEW CTOR
(poly {{<float>}} [rotns:int])
PARAM JAVADOC: {{<float>}}: Float points defining polygon.
PARAM JAVADOC: [rotns:int]: Number of duplicate rotations to make.
EXAMPLE: (poly { { 0 0 } { 0 2.5 } { 4.75 1 } })
NEW CTOR
(poly {{<dimFunction>}} [rotns:int])
PARAM JAVADOC: {{<dimFunction>}}: Float points defining polygon.
PARAM JAVADOC: [rotns:int]: Number of duplicate rotations to make.
EXAMPLE: (poly { { 0 0 } { 0 2.5 } { 4.75 1 } })
REMARKS: The polygon can be concave.
TYPE: game.util.math.Count
TYPE JAVADOC: Associates an item with a count.
NEW CTOR
(count <string> <int>)
PARAM JAVADOC: <string>: Item description.
PARAM JAVADOC: <int>: Number of items.
EXAMPLE: (count "Pawn1" 8)
REMARKS: This ludeme is used for lists of items with counts, such as (placeRandom ...).
TYPE: game.util.math.Pair
TYPE JAVADOC: Defines a pair of two integers, two strings or one integer and a string.
NEW CTOR
(pair <int> <int>)
PARAM JAVADOC: <int>: The key of the pair.
PARAM JAVADOC: <int>: The corresponding value.
EXAMPLE: (pair 5 10)
NEW CTOR
(pair <roleType> <int>)
PARAM JAVADOC: <roleType>: The key of the pair.
PARAM JAVADOC: <int>: The corresponding value.
EXAMPLE: (pair P1 10)
NEW CTOR
(pair <roleType> <roleType>)
PARAM JAVADOC: <roleType>: The key of the pair.
PARAM JAVADOC: <roleType>: The corresponding value.
EXAMPLE: (pair P1 P2)
NEW CTOR
(pair <string> <string>)
PARAM JAVADOC: <string>: The key of the pair.
PARAM JAVADOC: <string>: The corresponding value.
EXAMPLE: (pair "A1" "C3")
NEW CTOR
(pair <int> <string>)
PARAM JAVADOC: <int>: The key of the pair.
PARAM JAVADOC: <string>: The corresponding value.
EXAMPLE: (pair 0 "A1")
NEW CTOR
(pair <roleType> <string>)
PARAM JAVADOC: <roleType>: The key of the pair.
PARAM JAVADOC: <string>: The corresponding value.
EXAMPLE: (pair P1 "A1")
NEW CTOR
(pair <roleType> <landmarkType>)
PARAM JAVADOC: <roleType>: The key of the pair.
PARAM JAVADOC: <landmarkType>: The landmark of the value.
EXAMPLE: (pair P1 LeftSite)
NEW CTOR
(pair <string> <roleType>)
PARAM JAVADOC: <string>: The key of the pair.
PARAM JAVADOC: <roleType>: The corresponding value.
EXAMPLE: (pair "A1" P1)
REMARKS: This is used for the map ludeme.
TYPE: game.util.moves.Between
TYPE JAVADOC: Gets all the conditions or effects related to the location between ``from'' and ``to''.
NEW CTOR
(between [before:<int>] [<rangeFunction>] [after:<int>] [If:<boolean>] [trail:<int>] [<apply>])
PARAM JAVADOC: [before:<int>]: Lead distance up to ``between'' section.
PARAM JAVADOC: [<rangeFunction>]: Range of the ``between'' section.
PARAM JAVADOC: [after:<int>]: Trailing distance after ``between'' section.
PARAM JAVADOC: [If:<boolean>]: The condition on the location.
PARAM JAVADOC: [trail:<int>]: The piece to let on the location.
PARAM JAVADOC: [<apply>]: Actions to apply.
EXAMPLE: (between if:(is Enemy (who at:(between))) (apply (remove (between))) )
TYPE: game.util.moves.Flips
TYPE JAVADOC: Sets the flips state of a piece.
NEW CTOR
(flips int int)
PARAM JAVADOC: int: The first state of the flip.
PARAM JAVADOC: int: The second state of the flip.
EXAMPLE: (flips 1 2)
TYPE: game.util.moves.From
TYPE JAVADOC: Specifies operations based on the ``from'' location.
NEW CTOR
(from [<siteType>] ([<region>]  | [<int>]) [level:<int>] [If:<boolean>])
PARAM JAVADOC: [<siteType>]: The graph element type.
PARAM JAVADOC: [<region>]: The region of the ``from'' location.
PARAM JAVADOC: [<int>]: The ``from'' location.
PARAM JAVADOC: [level:<int>]: The level of the ``from'' location.
PARAM JAVADOC: [If:<boolean>]: The condition on the ``from'' location.
EXAMPLE: (from (last To) level:(level))
TYPE: game.util.moves.Piece
TYPE JAVADOC: Specifies operations based on the ``what'' data.
NEW CTOR
(piece (<string>  | <int>  | {<string>}  | {<int>}) [state:<int>])
PARAM JAVADOC: <string>: The name of the component.
PARAM JAVADOC: <int>: The index of the component [The component with the index corresponding to the index of the mover, (mover)].
PARAM JAVADOC: {<string>}: The names of the components.
PARAM JAVADOC: {<int>}: The indices of the components.
PARAM JAVADOC: [state:<int>]: The local state value to put on the site where the piece is placed.
EXAMPLE: (piece (mover))
TYPE: game.util.moves.Player
TYPE JAVADOC: Specifies operations based on the ``who'' data.
NEW CTOR
(player <int>)
PARAM JAVADOC: <int>: The index of the player [(mover)].
EXAMPLE: (player (mover))
EXAMPLE: (player 2)
TYPE: game.util.moves.To
TYPE JAVADOC: Specifies operations based on the ``to'' location.
NEW CTOR
(to [<siteType>] ([<region>]  | [<int>]) [level:<int>] [<rotations>] [If:<boolean>] [<apply>])
PARAM JAVADOC: [<siteType>]: The graph element type.
PARAM JAVADOC: [<region>]: The region of ``to'' the location.
PARAM JAVADOC: [<int>]: The ``to'' location.
PARAM JAVADOC: [level:<int>]: The level of the ``to'' location.
PARAM JAVADOC: [<rotations>]: Rotations of the ``to'' location.
PARAM JAVADOC: [If:<boolean>]: The condition on the ``to'' location.
PARAM JAVADOC: [<apply>]: Effect to apply to the ``to'' location.
EXAMPLE: (to (last To) level:(level))
TYPE: metadata.Metadata
TYPE JAVADOC: The metadata of a game.
NEW CTOR
(metadata [<info>] [<graphics>] [<ai>] [<recon>])
PARAM JAVADOC: [<info>]: The info metadata.
PARAM JAVADOC: [<graphics>]: The graphics metadata.
PARAM JAVADOC: [<ai>]: Metadata for AIs playing this game.
PARAM JAVADOC: [<recon>]: The metadata related to reconstruction.
EXAMPLE: (metadata (info { (description "Description of The game") (source "Source of the game") (version "1.0.0") (classification "board/space/territory") (origin "Origin of the game.") }) (graphics { (board Style Go) (player Colour P1 (colour Black)) (player Colour P2 (colour White)) }) (ai (bestAgent "UCT")) )
TYPE: metadata.MetadataItem
TYPE JAVADOC: Interface for generic metadata item.  Classes to be included as metadata should inherit form this.
SUBCLASS: metadata.ai.agents.Agent
SUBCLASS: metadata.ai.agents.BestAgent
SUBCLASS: metadata.ai.agents.mcts.Mcts
SUBCLASS: metadata.ai.agents.mcts.selection.Ag0
SUBCLASS: metadata.ai.agents.mcts.selection.Selection
SUBCLASS: metadata.ai.agents.mcts.selection.Ucb1
SUBCLASS: metadata.ai.agents.minimax.AlphaBeta
SUBCLASS: metadata.ai.Ai
SUBCLASS: metadata.ai.AIItem
SUBCLASS: metadata.ai.features.Features
SUBCLASS: metadata.ai.features.FeatureSet
SUBCLASS: metadata.ai.features.trees.classifiers.BinaryLeaf
SUBCLASS: metadata.ai.features.trees.classifiers.DecisionTree
SUBCLASS: metadata.ai.features.trees.classifiers.DecisionTreeNode
SUBCLASS: metadata.ai.features.trees.classifiers.If
SUBCLASS: metadata.ai.features.trees.classifiers.Leaf
SUBCLASS: metadata.ai.features.trees.FeatureTrees
SUBCLASS: metadata.ai.features.trees.logits.If
SUBCLASS: metadata.ai.features.trees.logits.Leaf
SUBCLASS: metadata.ai.features.trees.logits.LogitNode
SUBCLASS: metadata.ai.features.trees.logits.LogitTree
SUBCLASS: metadata.ai.heuristics.Heuristics
SUBCLASS: metadata.ai.heuristics.terms.CentreProximity
SUBCLASS: metadata.ai.heuristics.terms.ComponentValues
SUBCLASS: metadata.ai.heuristics.terms.CornerProximity
SUBCLASS: metadata.ai.heuristics.terms.CurrentMoverHeuristic
SUBCLASS: metadata.ai.heuristics.terms.HeuristicTerm
SUBCLASS: metadata.ai.heuristics.terms.Influence
SUBCLASS: metadata.ai.heuristics.terms.InfluenceAdvanced
SUBCLASS: metadata.ai.heuristics.terms.Intercept
SUBCLASS: metadata.ai.heuristics.terms.LineCompletionHeuristic
SUBCLASS: metadata.ai.heuristics.terms.Material
SUBCLASS: metadata.ai.heuristics.terms.MobilityAdvanced
SUBCLASS: metadata.ai.heuristics.terms.MobilitySimple
SUBCLASS: metadata.ai.heuristics.terms.NullHeuristic
SUBCLASS: metadata.ai.heuristics.terms.OwnRegionsCount
SUBCLASS: metadata.ai.heuristics.terms.PlayerRegionsProximity
SUBCLASS: metadata.ai.heuristics.terms.PlayerSiteMapCount
SUBCLASS: metadata.ai.heuristics.terms.RegionProximity
SUBCLASS: metadata.ai.heuristics.terms.Score
SUBCLASS: metadata.ai.heuristics.terms.SidesProximity
SUBCLASS: metadata.ai.heuristics.terms.UnthreatenedMaterial
SUBCLASS: metadata.ai.heuristics.transformations.DivNumBoardSites
SUBCLASS: metadata.ai.heuristics.transformations.DivNumInitPlacement
SUBCLASS: metadata.ai.heuristics.transformations.HeuristicTransformation
SUBCLASS: metadata.ai.heuristics.transformations.LogisticFunction
SUBCLASS: metadata.ai.heuristics.transformations.Tanh
SUBCLASS: metadata.ai.misc.Pair
SUBCLASS: metadata.graphics.board.Board
SUBCLASS: metadata.graphics.GraphicsItem
SUBCLASS: metadata.graphics.hand.Hand
SUBCLASS: metadata.graphics.no.No
SUBCLASS: metadata.graphics.others.HiddenImage
SUBCLASS: metadata.graphics.others.StackType
SUBCLASS: metadata.graphics.others.SuitRanking
SUBCLASS: metadata.graphics.piece.Piece
SUBCLASS: metadata.graphics.player.Player
SUBCLASS: metadata.graphics.puzzle.AdversarialPuzzle
SUBCLASS: metadata.graphics.puzzle.DrawHint
SUBCLASS: metadata.graphics.puzzle.HintLocation
SUBCLASS: metadata.graphics.region.Region
SUBCLASS: metadata.graphics.show.Show
SUBCLASS: metadata.graphics.util.BoardGraphicsType
SUBCLASS: metadata.graphics.util.colour.Colour
SUBCLASS: metadata.graphics.util.colour.UserColourType
SUBCLASS: metadata.graphics.util.ComponentStyleType
SUBCLASS: metadata.graphics.util.ContainerStyleType
SUBCLASS: metadata.graphics.util.ControllerType
SUBCLASS: metadata.graphics.util.CurveType
SUBCLASS: metadata.graphics.util.EdgeType
SUBCLASS: metadata.graphics.util.HoleType
SUBCLASS: metadata.graphics.util.LineStyle
SUBCLASS: metadata.graphics.util.PieceColourType
SUBCLASS: metadata.graphics.util.PieceStackType
SUBCLASS: metadata.graphics.util.PuzzleDrawHintType
SUBCLASS: metadata.graphics.util.PuzzleHintLocationType
SUBCLASS: metadata.graphics.util.StackPropertyType
SUBCLASS: metadata.graphics.util.ValueLocationType
SUBCLASS: metadata.graphics.util.WhenScoreType
SUBCLASS: metadata.info.database.Aliases
SUBCLASS: metadata.info.database.Author
SUBCLASS: metadata.info.database.Classification
SUBCLASS: metadata.info.database.Credit
SUBCLASS: metadata.info.database.Date
SUBCLASS: metadata.info.database.Description
SUBCLASS: metadata.info.database.Id
SUBCLASS: metadata.info.database.Origin
SUBCLASS: metadata.info.database.Publisher
SUBCLASS: metadata.info.database.Rules
SUBCLASS: metadata.info.database.Source
SUBCLASS: metadata.info.database.Version
SUBCLASS: metadata.info.Info
SUBCLASS: metadata.info.InfoItem
SUBCLASS: metadata.Metadata
SUBCLASS: metadata.recon.concept.Concept
SUBCLASS: metadata.recon.ReconItem
TYPE: metadata.ai.AIItem
TYPE JAVADOC: General function hint for this game.Metadata containing hints for AI agents for this game.
SUBCLASS: metadata.ai.agents.Agent
SUBCLASS: metadata.ai.agents.BestAgent
SUBCLASS: metadata.ai.agents.mcts.Mcts
SUBCLASS: metadata.ai.agents.mcts.selection.Ag0
SUBCLASS: metadata.ai.agents.mcts.selection.Selection
SUBCLASS: metadata.ai.agents.mcts.selection.Ucb1
SUBCLASS: metadata.ai.agents.minimax.AlphaBeta
SUBCLASS: metadata.ai.features.Features
SUBCLASS: metadata.ai.features.FeatureSet
SUBCLASS: metadata.ai.features.trees.classifiers.BinaryLeaf
SUBCLASS: metadata.ai.features.trees.classifiers.DecisionTree
SUBCLASS: metadata.ai.features.trees.classifiers.DecisionTreeNode
SUBCLASS: metadata.ai.features.trees.classifiers.If
SUBCLASS: metadata.ai.features.trees.classifiers.Leaf
SUBCLASS: metadata.ai.features.trees.FeatureTrees
SUBCLASS: metadata.ai.features.trees.logits.If
SUBCLASS: metadata.ai.features.trees.logits.Leaf
SUBCLASS: metadata.ai.features.trees.logits.LogitNode
SUBCLASS: metadata.ai.features.trees.logits.LogitTree
SUBCLASS: metadata.ai.heuristics.Heuristics
SUBCLASS: metadata.ai.heuristics.terms.CentreProximity
SUBCLASS: metadata.ai.heuristics.terms.ComponentValues
SUBCLASS: metadata.ai.heuristics.terms.CornerProximity
SUBCLASS: metadata.ai.heuristics.terms.CurrentMoverHeuristic
SUBCLASS: metadata.ai.heuristics.terms.HeuristicTerm
SUBCLASS: metadata.ai.heuristics.terms.Influence
SUBCLASS: metadata.ai.heuristics.terms.InfluenceAdvanced
SUBCLASS: metadata.ai.heuristics.terms.Intercept
SUBCLASS: metadata.ai.heuristics.terms.LineCompletionHeuristic
SUBCLASS: metadata.ai.heuristics.terms.Material
SUBCLASS: metadata.ai.heuristics.terms.MobilityAdvanced
SUBCLASS: metadata.ai.heuristics.terms.MobilitySimple
SUBCLASS: metadata.ai.heuristics.terms.NullHeuristic
SUBCLASS: metadata.ai.heuristics.terms.OwnRegionsCount
SUBCLASS: metadata.ai.heuristics.terms.PlayerRegionsProximity
SUBCLASS: metadata.ai.heuristics.terms.PlayerSiteMapCount
SUBCLASS: metadata.ai.heuristics.terms.RegionProximity
SUBCLASS: metadata.ai.heuristics.terms.Score
SUBCLASS: metadata.ai.heuristics.terms.SidesProximity
SUBCLASS: metadata.ai.heuristics.terms.UnthreatenedMaterial
SUBCLASS: metadata.ai.heuristics.transformations.DivNumBoardSites
SUBCLASS: metadata.ai.heuristics.transformations.DivNumInitPlacement
SUBCLASS: metadata.ai.heuristics.transformations.HeuristicTransformation
SUBCLASS: metadata.ai.heuristics.transformations.LogisticFunction
SUBCLASS: metadata.ai.heuristics.transformations.Tanh
TYPE: metadata.ai.Ai
TYPE JAVADOC: Defines metadata that can help AIs in the Ludii app to play this game at a  stronger level.
NEW CTOR
(ai [<agent>] [<heuristics>] [trainedHeuristics:<heuristics>] [<features>] [trainedFeatures:<features>] [trainedFeatureTrees:<featureTrees>])
PARAM JAVADOC: [<agent>]: Can be used to specify the agent that is expected to perform best in this game. This algorithm will be used when the ``Ludii AI" option is selected in the Ludii app.
PARAM JAVADOC: [<heuristics>]: Heuristics to be used by Alpha-Beta agents. These may be handcrafted heuristics.
PARAM JAVADOC: [trainedHeuristics:<heuristics>]: Heuristics trained or otherwise generated by some sort of automated process. Alpha-Beta agents will only use these if the previous parameter (for potentially handcrafted heuristics) is not used.
PARAM JAVADOC: [<features>]: Feature sets (possibly handcrafted) to be used for biasing MCTS-based agents. If not specified, Biased MCTS will not be available as an AI for this game in Ludii.
PARAM JAVADOC: [trainedFeatures:<features>]: Automatically-trained feature sets. Will be used instead of the regular ``features'' parameter if that one is left unspecified.
PARAM JAVADOC: [trainedFeatureTrees:<featureTrees>]: Automatically-trained decision trees of features. Will be used instead of the regular ``features'' or ``trainedFeatures'' parameters if those are left unspecified.
EXAMPLE: (ai (bestAgent "UCT"))
REMARKS: Specifying AI metadata for games is not mandatory.
TYPE: metadata.ai.agents.Agent
TYPE JAVADOC: Describes an agent (either by name of expected best agent, or as a   complete setup).
SUBCLASS: metadata.ai.agents.BestAgent
SUBCLASS: metadata.ai.agents.mcts.Mcts
SUBCLASS: metadata.ai.agents.minimax.AlphaBeta
TYPE: metadata.ai.agents.BestAgent
TYPE JAVADOC: Describes the name of an algorithm or agent that is typically expected to  be the best-performing algorithm available in Ludii for this game.
NEW CTOR
(bestAgent <string>)
PARAM JAVADOC: <string>: The name of the (expected) best agent for this game.
EXAMPLE: (bestAgent "UCT")
REMARKS: Some examples of names that Ludii can currently recognise are ``Random'', ``Flat MC'', ``Alpha-Beta'', ``UCT'', ``MC-GRAVE'', and ``Biased MCTS''.
TYPE: metadata.ai.agents.mcts.Mcts
TYPE JAVADOC: Describes a Monte-Carlo tree search agent.
NEW CTOR
(mcts [<selection>])
PARAM JAVADOC: [<selection>]: The Selection strategy to be used by this MCTS agent [UCB1].
EXAMPLE: (mcts)
TYPE: metadata.ai.agents.mcts.selection.Ag0
TYPE JAVADOC: Describes the selection strategy also used by AlphaGo Zero (and AlphaZero).  Requires that a learned selection policy (based on features) has been   described for the MCTS agent that uses this selection strategy.
NEW CTOR
(ag0 [<float>])
PARAM JAVADOC: [<float>]: The value to use for the exploration constant [2.5].
EXAMPLE: (ag0)
TYPE: metadata.ai.agents.mcts.selection.Selection
TYPE JAVADOC: Abstract class for Selection strategies for MCTS in AI metadata
SUBCLASS: metadata.ai.agents.mcts.selection.Ag0
SUBCLASS: metadata.ai.agents.mcts.selection.Ucb1
TYPE: metadata.ai.agents.mcts.selection.Ucb1
TYPE JAVADOC: Describes the UCB1 selection strategy, which is one of the most straightforward  and simple Selection strategies, used by the standard UCT variant of MCTS.
NEW CTOR
(ucb1 [<float>])
PARAM JAVADOC: [<float>]: The value to use for the exploration constant [square root of 2].
EXAMPLE: (ucb1)
EXAMPLE: (ucb1 0.6)
TYPE: metadata.ai.agents.minimax.AlphaBeta
TYPE JAVADOC: Describes an Alpha-Beta search agent.
NEW CTOR
(alphaBeta [<heuristics>])
PARAM JAVADOC: [<heuristics>]: The heuristics to be used by this agent. Will default to heuristics from the game file's metadata if left unspecified [null].
EXAMPLE: (alphaBeta)
TYPE: metadata.ai.features.FeatureSet
TYPE JAVADOC: Defines a single feature set, which may be applicable to either a  single specific player in a game, or to all players in a game.
NEW CTOR
(featureSet <roleType> {<pair>})
PARAM JAVADOC: <roleType>: The Player (P1, P2, etc.) for which the feature set should apply, or All if it is applicable to all players in a game.
PARAM JAVADOC: {<pair>}: Complete list of all features and weights for this feature set.
EXAMPLE: (featureSet All { (pair "rel:to=<{}>:pat=<els=[-{}]>" 1.0) })
EXAMPLE: (featureSet P1 { (pair "rel:to=<{}>:pat=<els=[-{}]>" 1.0) })
NEW CTOR
(featureSet <roleType> [selectionFeatures:{<pair>}] [playoutFeatures:{<pair>}] [tspgFeatures:{<pair>}])
PARAM JAVADOC: <roleType>: The Player (P1, P2, etc.) for which the feature set should apply, or All if it is applicable to all players in a game.
PARAM JAVADOC: [selectionFeatures:{<pair>}]: Complete list of all features and weights for this feature set, for MCTS Selection phase.
PARAM JAVADOC: [playoutFeatures:{<pair>}]: Complete list of all features and weights for this feature set, for MCTS Playout phase.
PARAM JAVADOC: [tspgFeatures:{<pair>}]: Complete list of all features and weights for this feature set, trained with Tree Search Policy Gradients objective.
EXAMPLE: (featureSet P1 selectionFeatures:{ (pair "rel:to=<{}>:pat=<els=[-{}]>" 1.0) } playoutFeatures:{ (pair "rel:to=<{}>:pat=<els=[-{}]>" 2.0) })
REMARKS: Use \All for feature sets that are applicable to all players in a game, or \P1, \P2, etc. for feature sets that are applicable only to individual players.
TYPE: metadata.ai.features.Features
TYPE JAVADOC: Describes one or more sets of features (local, geometric patterns) to be used by Biased MCTS agents.
NEW CTOR
(features [<featureSet>])
PARAM JAVADOC: [<featureSet>]: A single feature set.
EXAMPLE: (features (featureSet All { (pair "rel:to=<{}>:pat=<refl=true,rots=all,els=[-{}]>" 1.0) }))
NEW CTOR
(features [{<featureSet>}])
PARAM JAVADOC: [{<featureSet>}]: A sequence of multiple feature sets (typically each applying to a different player).
EXAMPLE: (features { (featureSet P1 { (pair "rel:to=<{}>:pat=<els=[-{}]>" 1.0) }) (featureSet P2 { (pair "rel:to=<{}>:pat=<els=[-{}]>" -1.0) }) })
REMARKS: The basic format of these features is described in: Browne, C., Soemers, D. J. N. J., and Piette, E. (2019). ``Strategic features for general games.'' In Proceedings of the 2nd Workshop on Knowledge Extraction from Games (KEG) (pp. 7075).
TYPE: metadata.ai.features.trees.FeatureTrees
TYPE JAVADOC: Describes one or more sets of features (local, geometric patterns),   represented as decision / regression trees.
NEW CTOR
(featureTrees [logitTrees:{<logitTree>}] [decisionTrees:{<decisionTree>}])
PARAM JAVADOC: [logitTrees:{<logitTree>}]: One or more logit trees (each for the All role or for a specific player).
PARAM JAVADOC: [decisionTrees:{<decisionTree>}]: One or more decision trees (each for the All role or for a specific player).
EXAMPLE: (featureTrees logitTrees:{ (logitTree P1 (if "rel:to=<{}>:pat=<els=[f{0}]>" then:(leaf { (pair "Intercept" 1.0) }) else:(leaf { (pair "Intercept" -1.0) }))) })
TYPE: metadata.ai.features.trees.classifiers.BinaryLeaf
TYPE JAVADOC: Describes a leaf node in a binary classification tree for features; it contains  only a predicted probability for "top move".
NEW CTOR
(binaryLeaf <float>)
PARAM JAVADOC: <float>: Predicted probability of being a top move.
EXAMPLE: (binaryLeaf 0.6)
TYPE: metadata.ai.features.trees.classifiers.DecisionTree
TYPE JAVADOC: Describes a Decision Tree for features (a decision tree representation of a feature set,  which outputs class predictions).
NEW CTOR
(decisionTree <roleType> <decisionTreeNode>)
PARAM JAVADOC: <roleType>: The Player (P1, P2, etc.) for which the logit tree should apply, or All if it is applicable to all players in a game.
PARAM JAVADOC: <decisionTreeNode>: The root node of the tree.
EXAMPLE: (decisionTree P1 (if "rel:to=<{}>:pat=<els=[f{0}]>" then:(leaf bottom25:0.0 iqr:0.2 top25:0.8) else:(leaf bottom25:0.6 iqr:0.35 top25:0.05)))
TYPE: metadata.ai.features.trees.classifiers.DecisionTreeNode
TYPE JAVADOC: Describes a node in a decision tree for features. May either be a condition  node (internal node), or a node with class predictions (leaf node).
SUBCLASS: metadata.ai.features.trees.classifiers.BinaryLeaf
SUBCLASS: metadata.ai.features.trees.classifiers.If
SUBCLASS: metadata.ai.features.trees.classifiers.Leaf
TYPE: metadata.ai.features.trees.classifiers.If
TYPE JAVADOC: Describes a decision node in a decision tree for features; it contains one  feature (the condition we check), and two branches; one for the case  where the condition is true, and one for the case where the condition is false.
NEW CTOR
(if <string> then:<decisionTreeNode> Else:<decisionTreeNode>)
PARAM JAVADOC: <string>: The feature to evaluate (the condition).
PARAM JAVADOC: then:<decisionTreeNode>: The branch to take if the feature is active.
PARAM JAVADOC: Else:<decisionTreeNode>: The branch to take if the feature is not active.
EXAMPLE: (if "rel:to=<{}>:pat=<els=[f{0}]>" then:(leaf bottom25:0.0 iqr:0.2 top25:0.8) else:(leaf bottom25:0.6 iqr:0.35 top25:0.05))
TYPE: metadata.ai.features.trees.classifiers.Leaf
TYPE JAVADOC: Describes a leaf node in a binary classification tree for features; it contains  only a predicted probability for "best move".
NEW CTOR
(leaf bottom25:<float> iqr:<float> top25:<float>)
PARAM JAVADOC: bottom25:<float>: Predicted probability of being a bottom-25% move.
PARAM JAVADOC: iqr:<float>: Predicted probability of being a move in the Interquartile Range.
PARAM JAVADOC: top25:<float>: Predicted probability of being a top-25% move.
EXAMPLE: (leaf bottom25:0.0 iqr:0.2 top25:0.8)
TYPE: metadata.ai.features.trees.logits.If
TYPE JAVADOC: Describes a decision node in a logit tree for features; it contains one  feature (the condition we check), and two branches; one for the case  where the condition is true, and one for the case where the condition is false.
NEW CTOR
(if <string> then:<logitNode> Else:<logitNode>)
PARAM JAVADOC: <string>: The feature to evaluate (the condition).
PARAM JAVADOC: then:<logitNode>: The branch to take if the feature is active.
PARAM JAVADOC: Else:<logitNode>: The branch to take if the feature is not active.
EXAMPLE: (if "rel:to=<{}>:pat=<els=[f{0}]>" then:(leaf { (pair "Intercept" 1.0) }) else:(leaf { (pair "Intercept" -1.0) }))
TYPE: metadata.ai.features.trees.logits.Leaf
TYPE JAVADOC: Describes a leaf node in a logit tree for features; it contains an array  of features and weights, describing a linear function to use to compute the  logit in this node. An intercept feature should collect all the weights  inferred from features evaluated in decision nodes leading up to this leaf.
NEW CTOR
(leaf {<pair>})
PARAM JAVADOC: {<pair>}: List of remaining features to evaluate and their weights.
EXAMPLE: (leaf { (pair "Intercept" 1.0) })
TYPE: metadata.ai.features.trees.logits.LogitNode
TYPE JAVADOC: Describes a node in a logit tree for features. May either be a condition  node (internal node), or a node with a linear model (a leaf node).
SUBCLASS: metadata.ai.features.trees.logits.If
SUBCLASS: metadata.ai.features.trees.logits.Leaf
TYPE: metadata.ai.features.trees.logits.LogitTree
TYPE JAVADOC: Describes a Logit Tree for features (a regression tree representation of a feature set,  which outputs logits).
NEW CTOR
(logitTree <roleType> <logitNode>)
PARAM JAVADOC: <roleType>: The Player (P1, P2, etc.) for which the logit tree should apply, or All if it is applicable to all players in a game.
PARAM JAVADOC: <logitNode>: The root node of the tree.
EXAMPLE: (logitTree P1 (if "rel:to=<{}>:pat=<els=[f{0}]>" then:(leaf { (pair "Intercept" 1.0) }) else:(leaf { (pair "Intercept" -1.0) })))
TYPE: metadata.ai.heuristics.Heuristics
TYPE JAVADOC: Defines a collection of heuristics, which can be used by Alpha-Beta agent in  Ludii for their heuristics state evaluations.
NEW CTOR
(heuristics [<heuristicTerm>])
PARAM JAVADOC: [<heuristicTerm>]: A single heuristic term.
EXAMPLE: (heuristics (score))
NEW CTOR
(heuristics [{<heuristicTerm>}])
PARAM JAVADOC: [{<heuristicTerm>}]: A sequence of multiple heuristic terms, which will all be linearly combined based on their weights.
EXAMPLE: (heuristics { (material) (mobilitySimple weight:0.01) })
TYPE: metadata.ai.heuristics.terms.CentreProximity
TYPE JAVADOC: Defines a heuristic term based on the proximity of pieces to the centre of  a game's board.
NEW CTOR
(centreProximity [transformation:<heuristicTransformation>] [weight:<float>] [pieceWeights:{<pair>}])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$.
EXAMPLE: (centreProximity pieceWeights:{ (pair "Queen" 1.0) (pair "King" -1.0) })
TYPE: metadata.ai.heuristics.terms.ComponentValues
TYPE JAVADOC: Defines a heuristic term based on the values of sites that contain  components owned by a player.
NEW CTOR
(componentValues [transformation:<heuristicTransformation>] [weight:<float>] [pieceWeights:{<pair>}] [boardOnly:<boolean>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$. These weights are multiplied with the values on sites where these pieces are present.
PARAM JAVADOC: [boardOnly:<boolean>]: If true, only pieces that are on the game's main board are counted, and pieces that are, for instance, in players' hands are excluded. False by default.
EXAMPLE: (componentValues boardOnly:True)
TYPE: metadata.ai.heuristics.terms.CornerProximity
TYPE JAVADOC: Defines a heuristic term based on the proximity of pieces to the corners of  a game's board.
NEW CTOR
(cornerProximity [transformation:<heuristicTransformation>] [weight:<float>] [pieceWeights:{<pair>}])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$.
EXAMPLE: (cornerProximity pieceWeights:{ (pair "Queen" -1.0) (pair "King" 1.0) })
TYPE: metadata.ai.heuristics.terms.CurrentMoverHeuristic
TYPE JAVADOC: Defines a heuristic term that adds its weight only for the player  whose turn it is in any given game state.
NEW CTOR
(currentMoverHeuristic [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (currentMoverHeuristic weight:1.0)
TYPE: metadata.ai.heuristics.terms.HeuristicTerm
TYPE JAVADOC: Abstract class for heuristic terms. Every heuristic term is expected to implement  a function that outputs a score for a given game state and player, and every term  has a weight that is used for computing linear combinations of multiple terms.
SUBCLASS: metadata.ai.heuristics.terms.CentreProximity
SUBCLASS: metadata.ai.heuristics.terms.ComponentValues
SUBCLASS: metadata.ai.heuristics.terms.CornerProximity
SUBCLASS: metadata.ai.heuristics.terms.CurrentMoverHeuristic
SUBCLASS: metadata.ai.heuristics.terms.Influence
SUBCLASS: metadata.ai.heuristics.terms.InfluenceAdvanced
SUBCLASS: metadata.ai.heuristics.terms.Intercept
SUBCLASS: metadata.ai.heuristics.terms.LineCompletionHeuristic
SUBCLASS: metadata.ai.heuristics.terms.Material
SUBCLASS: metadata.ai.heuristics.terms.MobilityAdvanced
SUBCLASS: metadata.ai.heuristics.terms.MobilitySimple
SUBCLASS: metadata.ai.heuristics.terms.NullHeuristic
SUBCLASS: metadata.ai.heuristics.terms.OwnRegionsCount
SUBCLASS: metadata.ai.heuristics.terms.PlayerRegionsProximity
SUBCLASS: metadata.ai.heuristics.terms.PlayerSiteMapCount
SUBCLASS: metadata.ai.heuristics.terms.RegionProximity
SUBCLASS: metadata.ai.heuristics.terms.Score
SUBCLASS: metadata.ai.heuristics.terms.SidesProximity
SUBCLASS: metadata.ai.heuristics.terms.UnthreatenedMaterial
TYPE: metadata.ai.heuristics.terms.Influence
TYPE JAVADOC: Defines a heuristic term that multiplies its weight by the number  of moves with distinct "to" positions that a player has in a current game state,  divided by the number of playable positions that exist in the game.
NEW CTOR
(influence [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (influence weight:0.5)
REMARKS: Always produces a score of $0$ for players who are not the current mover.
TYPE: metadata.ai.heuristics.terms.InfluenceAdvanced
TYPE JAVADOC: Defines a heuristic term that multiplies its weight by the number  of moves with distinct "to" positions that a player has in a current game state,  divided by the number of playable positions that exist in the game.  In comparison to Influence, this is a more advanced version that will also attempt  to gain non-zero estimates of the influence of players other than the current  player to move.
NEW CTOR
(influenceAdvanced [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (influenceAdvanced weight:0.5)
TYPE: metadata.ai.heuristics.terms.Intercept
TYPE JAVADOC: Defines an intercept term for heuristic-based value functions, with one  weight per player.
NEW CTOR
(intercept [transformation:<heuristicTransformation>] playerWeights:{<pair>})
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: playerWeights:{<pair>}: Weights for different players. Players for which no weights are specified are given a weight of 0.0. Player names must be one of the following: "P1", "P2", ..., "P16".
EXAMPLE: (intercept playerWeights:{ (pair "P1" 1.0) (pair "P2" 0.5) })
TYPE: metadata.ai.heuristics.terms.LineCompletionHeuristic
TYPE JAVADOC: Defines a heuristic state value based on a player's potential to  complete lines up to a given target length.  This mostly follows the description of the N-in-a-Row advisor as  described on pages 82-84 of:  	``Browne, C.B. (2009) Automatic generation and evaluation of recombination games.   	PhD thesis, Queensland University of Technology''.
NEW CTOR
(lineCompletionHeuristic [transformation:<heuristicTransformation>] [weight:<float>] [targetLength:int])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: [targetLength:int]: The target length for line completions. If not specified, we automatically determine a target length based on properties of the game rules or board.
EXAMPLE: (lineCompletionHeuristic targetLength:3)
TYPE: metadata.ai.heuristics.terms.Material
TYPE JAVADOC: Defines a heuristic term based on the material that a player has on  the board and in their hand.
NEW CTOR
(material [transformation:<heuristicTransformation>] [weight:<float>] [pieceWeights:{<pair>}] [boardOnly:<boolean>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$.
PARAM JAVADOC: [boardOnly:<boolean>]: If true, only pieces that are on the game's main board are counted, and pieces that are, for instance, in players' hands are excluded. False by default.
EXAMPLE: (material pieceWeights:{ (pair "Pawn" 1.0) (pair "Bishop" 3.0) })
TYPE: metadata.ai.heuristics.terms.MobilityAdvanced
TYPE JAVADOC: Defines a more advanced Mobility heuristic that attempts to also compute  non-zero mobility values for players other than the current mover (by  modifying the game state temporarily such that it thinks the current mover  is any other player).
NEW CTOR
(mobilityAdvanced [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (mobilityAdvanced weight:0.5)
TYPE: metadata.ai.heuristics.terms.MobilitySimple
TYPE JAVADOC: Defines a simple heuristic term that multiplies its weight by the number  of moves that a player has in a current game state.
NEW CTOR
(mobilitySimple [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (mobilitySimple weight:0.5)
REMARKS: Always produces a score of $0$ for players who are not the current mover.
TYPE: metadata.ai.heuristics.terms.NullHeuristic
TYPE JAVADOC: Defines a null heuristic term that always returns a value of 0.
NEW CTOR
(nullHeuristic)
EXAMPLE: (nullHeuristic)
TYPE: metadata.ai.heuristics.terms.OwnRegionsCount
TYPE JAVADOC: Defines a heuristic term based on the sum of all counts of sites  in a player's owned regions.
NEW CTOR
(ownRegionsCount [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (ownRegionsCount weight:1.0)
TYPE: metadata.ai.heuristics.terms.PlayerRegionsProximity
TYPE JAVADOC: Defines a heuristic term based on the proximity of pieces to the regions  owned by a particular player.
NEW CTOR
(playerRegionsProximity [transformation:<heuristicTransformation>] [weight:<float>] player:int [pieceWeights:{<pair>}])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: player:int: The player whose owned regions we compute proximity to.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$.
EXAMPLE: (playerRegionsProximity player:2)
TYPE: metadata.ai.heuristics.terms.PlayerSiteMapCount
TYPE JAVADOC: Defines a heuristic term that adds up the counts in sites  corresponding to values in Maps where Player IDs (e.g. $1$, $2$, etc.)  may be used as keys.
NEW CTOR
(playerSiteMapCount [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (playerSiteMapCount weight:1.0)
TYPE: metadata.ai.heuristics.terms.RegionProximity
TYPE JAVADOC: Defines a heuristic term based on the proximity of pieces to a particular region.
NEW CTOR
(regionProximity [transformation:<heuristicTransformation>] [weight:<float>] region:int [pieceWeights:{<pair>}])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: region:int: Index of the region to which we wish to compute proximity.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$.
EXAMPLE: (regionProximity weight:-1.0 region:0)
TYPE: metadata.ai.heuristics.terms.Score
TYPE JAVADOC: Defines a heuristic term based on a Player's score in a game.
NEW CTOR
(score [transformation:<heuristicTransformation>] [weight:<float>])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
EXAMPLE: (score)
TYPE: metadata.ai.heuristics.terms.SidesProximity
TYPE JAVADOC: Defines a heuristic term based on the proximity of pieces to the sides of  a game's board.
NEW CTOR
(sidesProximity [transformation:<heuristicTransformation>] [weight:<float>] [pieceWeights:{<pair>}])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$.
EXAMPLE: (sidesProximity weight:-1.0)
TYPE: metadata.ai.heuristics.terms.UnthreatenedMaterial
TYPE JAVADOC: Defines a heuristic term based on the unthreatened material (which  opponents cannot threaten with their legal moves).
NEW CTOR
(unthreatenedMaterial [transformation:<heuristicTransformation>] [weight:<float>] [pieceWeights:{<pair>}])
PARAM JAVADOC: [transformation:<heuristicTransformation>]: An optional transformation to be applied to any raw heuristic score outputs.
PARAM JAVADOC: [weight:<float>]: The weight for this term in a linear combination of multiple terms. If not specified, a default weight of $1.0$ is used.
PARAM JAVADOC: [pieceWeights:{<pair>}]: Weights for different piece types. If no piece weights are specified at all, all piece types are given an equal weight of $1.0$. If piece weights are only specified for some piece types, all other piece types get a weight of $0$.
EXAMPLE: (unthreatenedMaterial pieceWeights:{ (pair "Pawn" 1.0) (pair "Bishop" 3.0) })
TYPE: metadata.ai.heuristics.transformations.DivNumBoardSites
TYPE JAVADOC: Transforms heuristic scores by dividing them by the number of sites  in a game's board.
NEW CTOR
(divNumBoardSites)
EXAMPLE: (divNumBoardSites)
REMARKS: Can be used to approximately standardise heuristic values across games with different board sizes.
TYPE: metadata.ai.heuristics.transformations.DivNumInitPlacement
TYPE JAVADOC: Transforms heuristic scores by dividing them by the number of pieces  placed in a game's initial game state.
NEW CTOR
(divNumInitPlacement)
EXAMPLE: (divNumInitPlacement)
REMARKS: Can be used to approximately standardise heuristic values across games with different initial numbers of pieces.
TYPE: metadata.ai.heuristics.transformations.HeuristicTransformation
TYPE JAVADOC: Interface for transformations of heuristics (generally functions  intended to map the scores of a heuristic to some different range).
SUBCLASS: metadata.ai.heuristics.transformations.DivNumBoardSites
SUBCLASS: metadata.ai.heuristics.transformations.DivNumInitPlacement
SUBCLASS: metadata.ai.heuristics.transformations.LogisticFunction
SUBCLASS: metadata.ai.heuristics.transformations.Tanh
TYPE: metadata.ai.heuristics.transformations.LogisticFunction
TYPE JAVADOC: Transforms heuristic scores by applying the logistic function to them:  $f(x) = \frac{1}{1 + \exp(x)}$.
NEW CTOR
(logisticFunction)
EXAMPLE: (logisticFunction)
REMARKS: This guarantees that all transformed heuristic scores will lie in $[0, 1]$. May map too many different values only to the limits of this interval in practice.
TYPE: metadata.ai.heuristics.transformations.Tanh
TYPE JAVADOC: Transforms heuristic scores by applying the $\tanh$ to them:  $f(x) = \tanh(x)$.
NEW CTOR
(tanh)
EXAMPLE: (tanh)
REMARKS: This guarantees that all transformed heuristic scores will lie in $[-1, 1]$. May map too many different values only to the limits of this interval in practice.
TYPE: metadata.ai.misc.Pair
TYPE JAVADOC: Defines a pair of a String and a floating point value. Typically used  in AI metadata to assign a numeric value (such as a heuristic score, or  some other weight) to a specific piece name.
NEW CTOR
(pair <string> <float>)
PARAM JAVADOC: <string>: The String value.
PARAM JAVADOC: <float>: The floating point value.
EXAMPLE: (pair "Pawn" 1.0)
TYPE: metadata.graphics.GraphicsItem
TYPE JAVADOC: Metadata containing graphics hints.
SUBCLASS: metadata.graphics.board.Board
SUBCLASS: metadata.graphics.hand.Hand
SUBCLASS: metadata.graphics.no.No
SUBCLASS: metadata.graphics.others.HiddenImage
SUBCLASS: metadata.graphics.others.StackType
SUBCLASS: metadata.graphics.others.SuitRanking
SUBCLASS: metadata.graphics.piece.Piece
SUBCLASS: metadata.graphics.player.Player
SUBCLASS: metadata.graphics.puzzle.AdversarialPuzzle
SUBCLASS: metadata.graphics.puzzle.DrawHint
SUBCLASS: metadata.graphics.puzzle.HintLocation
SUBCLASS: metadata.graphics.region.Region
SUBCLASS: metadata.graphics.show.Show
SUBCLASS: metadata.graphics.util.colour.Colour
SUBCLASS: metadata.graphics.util.colour.UserColourType
SUBCLASS: metadata.graphics.util.ControllerType
SUBCLASS: metadata.graphics.util.EdgeType
SUBCLASS: metadata.graphics.util.HoleType
SUBCLASS: metadata.graphics.util.LineStyle
SUBCLASS: metadata.graphics.util.PieceColourType
SUBCLASS: metadata.graphics.util.PieceStackType
SUBCLASS: metadata.graphics.util.PuzzleDrawHintType
SUBCLASS: metadata.graphics.util.PuzzleHintLocationType
SUBCLASS: metadata.graphics.util.StackPropertyType
SUBCLASS: metadata.graphics.util.ValueLocationType
SUBCLASS: metadata.graphics.util.WhenScoreType
TYPE: metadata.graphics.board.Board
TYPE JAVADOC: Sets a graphic data to the board.
NEW CTOR
(board Style <containerStyleType> [replaceComponentsWithFilledCells:<boolean>])
PARAM JAVADOC: <containerStyleType>: Container style wanted for the board.
PARAM JAVADOC: [replaceComponentsWithFilledCells:<boolean>]: True if cells should be filled instead of component drawn [False].
EXAMPLE: (board Style Chess)
NEW CTOR
(board StyleThickness <boardGraphicsType> <float>)
PARAM JAVADOC: <boardGraphicsType>: The board graphics type to which the colour is to be applied (must be InnerEdge or OuterEdge).
PARAM JAVADOC: <float>: The assigned thickness scale for the specified boardGraphicsType.
EXAMPLE: (board StyleThickness OuterEdges 2.0)
NEW CTOR
(board Checkered [<boolean>])
PARAM JAVADOC: [<boolean>]: Whether the graphic data should be applied or not [True].
EXAMPLE: (board Checkered)
NEW CTOR
(board <pieceGroundType> [image:<string>] [fillColour:<colour>] [edgeColour:<colour>] [scale:<float>] [scaleX:<float>] [scaleY:<float>] [rotation:int] [offsetX:<float>] [offsetY:<float>])
PARAM JAVADOC: <pieceGroundType>: The type of data to apply to the board.
PARAM JAVADOC: [image:<string>]: Name of the image to draw. Default value is an outline around the board.
PARAM JAVADOC: [fillColour:<colour>]: Colour for the inner sections of the image. Default value is the phase 0 colour of the board.
PARAM JAVADOC: [edgeColour:<colour>]: Colour for the edges of the image. Default value is the outer edge colour of the board.
PARAM JAVADOC: [scale:<float>]: Scale for the drawn image relative to the size of the board [1.0].
PARAM JAVADOC: [scaleX:<float>]: Scale for the drawn image, relative to the cell size of the container, along x-axis [1.0].
PARAM JAVADOC: [scaleY:<float>]: Scale for the drawn image, relative to the cell size of the container, along y-axis [1.0].
PARAM JAVADOC: [rotation:int]: Rotation of the drawn image (clockwise).
PARAM JAVADOC: [offsetX:<float>]: Offset distance as percentage of board size to push the image to the right [0].
PARAM JAVADOC: [offsetY:<float>]: Offset distance as percentage of board size to push the image to the down [0].
EXAMPLE: (board Background image:"octagon" fillColour:(colour White) edgeColour:(colour White) scale:1.2)
NEW CTOR
(board Colour <boardGraphicsType> <colour>)
PARAM JAVADOC: <boardGraphicsType>: The board graphics type to which the colour is to be applied.
PARAM JAVADOC: <colour>: The assigned colour for the specified boardGraphicsType.
EXAMPLE: (board Colour Phase2 (colour Cyan))
NEW CTOR
(board Placement [scale:<float>] [offsetX:<float>] [offsetY:<float>])
PARAM JAVADOC: [scale:<float>]: scale for the board.
PARAM JAVADOC: [offsetX:<float>]: X offset for board center.
PARAM JAVADOC: [offsetY:<float>]: Y offset for board center.
EXAMPLE: (board Placement scale:0.8)
NEW CTOR
(board Curvature <float>)
PARAM JAVADOC: <float>: The curve offset.
EXAMPLE: (board Curvature 0.45)
TYPE: metadata.graphics.board.BoardBooleanType
TYPE JAVADOC: Defines the types of Board metadata depending only of a boolean.
CONST JAVADOC: Checkered: To indicate whether the board should be drawn in a checkered pattern.
TYPE: metadata.graphics.board.BoardColourType
TYPE JAVADOC: Defines the types of Board metadata related to the colour.
CONST JAVADOC: Colour: To set the colour of a specific aspect of the board.
TYPE: metadata.graphics.board.BoardCurvatureType
TYPE JAVADOC: Defines the types of Board metadata related to the curvature style.
CONST JAVADOC: Curvature: To set the curve offset when drawing curves.
TYPE: metadata.graphics.board.BoardPlacementType
TYPE JAVADOC: Defines the types of Board metadata related to the placement.
CONST JAVADOC: Placement: To set the placement of the board.
TYPE: metadata.graphics.board.BoardStyleThicknessType
TYPE JAVADOC: Defines the types of Board metadata related to the thickness style.
CONST JAVADOC: StyleThickness: To set the preferred scale for the thickness of a specific aspect of the board.
TYPE: metadata.graphics.board.BoardStyleType
TYPE JAVADOC: Defines the types of Board metadata related to the style.
CONST JAVADOC: Style: To set the style of the board.
TYPE: metadata.graphics.hand.Hand
TYPE JAVADOC: Sets a graphic data to the hand.
NEW CTOR
(hand Placement <roleType> [scale:<float>] [offsetX:<float>] [offsetY:<float>] [vertical:<boolean>])
PARAM JAVADOC: <roleType>: Roletype owner of the hand.
PARAM JAVADOC: [scale:<float>]: Scale for the board.
PARAM JAVADOC: [offsetX:<float>]: Offset distance percentage to push the board to the right.
PARAM JAVADOC: [offsetY:<float>]: Offset distance percentage to push the board down.
PARAM JAVADOC: [vertical:<boolean>]: If the hand should be drawn vertically.
EXAMPLE: (hand Placement P1 scale:1.0 offsetX:0.5 offsetY:0.5 vertical:True)
TYPE: metadata.graphics.hand.HandPlacementType
TYPE JAVADOC: Defines the types of Board metadata related to the placement.
CONST JAVADOC: Placement: To set the placement of the hand.
TYPE: metadata.graphics.no.No
TYPE JAVADOC: Hides a graphic element.
NEW CTOR
(no <noBooleanType> [<boolean>])
PARAM JAVADOC: <noBooleanType>: The type of data.
PARAM JAVADOC: [<boolean>]: True if the graphic data has to be hidden [True].
EXAMPLE: (no Board)
EXAMPLE: (no Animation)
EXAMPLE: (no Curves)
TYPE: metadata.graphics.no.NoBooleanType
TYPE JAVADOC: Defines the types of Hide metadata depending only of a boolean.
CONST JAVADOC: Board: To indicate whether the board should be hidden.
CONST JAVADOC: Animation: To indicate whether the animations should be hidden.
CONST JAVADOC: Sunken: To indicate whether the sunken outline should be drawn.
CONST JAVADOC: HandScale: To indicate whether pieces drawn in the hand should be scaled or not.
CONST JAVADOC: Curves: To indicate if the lines that make up the board's rings should be drawn as straight lines.
CONST JAVADOC: MaskedColour: To indicate if the colour of the masked players should not be the colour of the player.
CONST JAVADOC: DicePips: To indicate if pips on the dice should be always drawn as a single number.
TYPE: metadata.graphics.others.HiddenImage
TYPE JAVADOC: Draws a specified image when a piece is hidden.
NEW CTOR
(hiddenImage <string>)
PARAM JAVADOC: <string>: Name of the hidden Image image to draw.
EXAMPLE: (hiddenImage "door")
TYPE: metadata.graphics.others.StackType
TYPE JAVADOC: Sets the stack design for a container.
NEW CTOR
(stackType [<roleType>] [<string>] [int] [<siteType>] ([sites:{int}]  | [site:int]) [state:int] [value:int] <pieceStackType> [<float>] [limit:int])
PARAM JAVADOC: [<roleType>]: Player whose index we want to match.
PARAM JAVADOC: [<string>]: Container name to match.
PARAM JAVADOC: [int]: Container index to match.
PARAM JAVADOC: [<siteType>]: The GraphElementType for the specified sites [Cell].
PARAM JAVADOC: [sites:{int}]: Draw image on all specified sites.
PARAM JAVADOC: [site:int]: Draw image on this site.
PARAM JAVADOC: [state:int]: Local state to match.
PARAM JAVADOC: [value:int]: Piece value to match.
PARAM JAVADOC: <pieceStackType>: Stack type for this piece.
PARAM JAVADOC: [<float>]: Scaling factor [1.0].
PARAM JAVADOC: [limit:int]: Stack limit [5].
EXAMPLE: (stackType Ground)
REMARKS: Different stack types that can be specified are defined in PieceStackType. For games such as Snakes and Ladders, Backgammon, Tower of Hanoi, card games, etc.
TYPE: metadata.graphics.others.SuitRanking
TYPE JAVADOC: Indicates the ranking for card suits (lowest to highest).
NEW CTOR
(suitRanking {<suitType>})
PARAM JAVADOC: {<suitType>}: Ranking for card suits.
EXAMPLE: (suitRanking {Spades Hearts Diamonds Clubs})
REMARKS: Should be used only for card games.
TYPE: metadata.graphics.piece.Piece
TYPE JAVADOC: Sets a graphic data to the pieces.
NEW CTOR
(piece Style [<roleType>] [<string>] <componentStyleType>)
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [<string>]: Base piece name to match.
PARAM JAVADOC: <componentStyleType>: Component style wanted for this piece.
EXAMPLE: (piece Style ExtendedShogi)
NEW CTOR
(piece <pieceNameType> [<roleType>] [piece:<string>] [container:int] [state:int] [value:int] [<string>])
PARAM JAVADOC: <pieceNameType>: The type of data to apply to the pieces.
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [piece:<string>]: Base piece name to match.
PARAM JAVADOC: [container:int]: Container index to match.
PARAM JAVADOC: [state:int]: State to match.
PARAM JAVADOC: [value:int]: Value to match.
PARAM JAVADOC: [<string>]: Text to use.
EXAMPLE: (piece Rename piece:"Die" "Triangle")
EXAMPLE: (piece ExtendName P2 "2")
EXAMPLE: (piece AddStateToName)
NEW CTOR
(piece Families {<string>})
PARAM JAVADOC: {<string>}: Set of family names for the pieces used in the game.
EXAMPLE: (piece Families {"Defined" "Microsoft" "Pragmata" "Symbola"})
NEW CTOR
(piece <pieceGroundType> [<roleType>] [<string>] [container:int] [state:int] [value:int] [image:<string>] [text:<string>] [fillColour:<colour>] [edgeColour:<colour>] [scale:<float>] [scaleX:<float>] [scaleY:<float>] [rotation:int] [offsetX:<float>] [offsetY:<float>])
PARAM JAVADOC: <pieceGroundType>: The type of data to apply to the pieces.
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [<string>]: Base piece name to match.
PARAM JAVADOC: [container:int]: Container index to match.
PARAM JAVADOC: [state:int]: State to match.
PARAM JAVADOC: [value:int]: Value to match.
PARAM JAVADOC: [image:<string>]: Name of the image to draw.
PARAM JAVADOC: [text:<string>]: Text string to draw.
PARAM JAVADOC: [fillColour:<colour>]: Colour for the inner sections of the image. Default value is the fill colour of the component.
PARAM JAVADOC: [edgeColour:<colour>]: Colour for the edges of the image. Default value is the edge colour of the component.
PARAM JAVADOC: [scale:<float>]: Scale for the drawn image relative to the cell size of the container [1.0].
PARAM JAVADOC: [scaleX:<float>]: Scale for the drawn image, relative to the cell size of the container, along x-axis [1.0].
PARAM JAVADOC: [scaleY:<float>]: Scale for the drawn image, relative to the cell size of the container, along y-axis [1.0].
PARAM JAVADOC: [rotation:int]: Amount of rotation for drawn image.
PARAM JAVADOC: [offsetX:<float>]: Offset distance percentage to push the image to the right [0].
PARAM JAVADOC: [offsetY:<float>]: Offset distance percentage to push the image down [0].
EXAMPLE: (piece Foreground "Pawn" image:"Pawn" fillColour:(colour White) scale:0.9)
EXAMPLE: (piece Background "Han" image:"octagon" fillColour:(colour White) edgeColour:(colour White))
NEW CTOR
(piece Colour [<roleType>] [<string>] [container:int] [state:int] [value:int] [fillColour:<colour>] [strokeColour:<colour>] [secondaryColour:<colour>])
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [<string>]: Base piece name to match.
PARAM JAVADOC: [container:int]: Container index to match.
PARAM JAVADOC: [state:int]: State to match.
PARAM JAVADOC: [value:int]: Value to match.
PARAM JAVADOC: [fillColour:<colour>]: Fill colour for this piece.
PARAM JAVADOC: [strokeColour:<colour>]: Stroke colour for this piece.
PARAM JAVADOC: [secondaryColour:<colour>]: Secondary colour for this piece.
EXAMPLE: (piece Colour P2 "CounterStar" fillColour:(colour Red))
NEW CTOR
(piece Rotate [<roleType>] [<string>] [container:int] [state:int] [value:int] degrees:int)
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [<string>]: Base piece name to match.
PARAM JAVADOC: [container:int]: Container index to match.
PARAM JAVADOC: [state:int]: State to match.
PARAM JAVADOC: [value:int]: Value to match.
PARAM JAVADOC: degrees:int: Degrees to rotate clockwise.
EXAMPLE: (piece Rotate P2 degrees:90)
NEW CTOR
(piece Scale [<roleType>] [<string>] [container:int] [state:int] [value:int] [<float>] [scaleX:<float>] [scaleY:<float>])
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [<string>]: Base piece name to match.
PARAM JAVADOC: [container:int]: container index to match.
PARAM JAVADOC: [state:int]: State to match.
PARAM JAVADOC: [value:int]: Value to match.
PARAM JAVADOC: [<float>]: Scaling factor in both x and y direction.
PARAM JAVADOC: [scaleX:<float>]: The scale of the image along x-axis.
PARAM JAVADOC: [scaleY:<float>]: The scale of the image along y-axis.
EXAMPLE: (piece Scale "Pawn" .5)
EXAMPLE: (piece Scale "Disc" .5)
TYPE: metadata.graphics.piece.PieceColourType
TYPE JAVADOC: Defines the types of Piece metadata to set a colour.
CONST JAVADOC: Colour: To set the colour of a piece.
TYPE: metadata.graphics.piece.PieceFamiliesType
TYPE JAVADOC: Defines the types of Piece metadata belonging to some families.
CONST JAVADOC: Families: To specify a list of families for the game's pieces..
TYPE: metadata.graphics.piece.PieceGroundType
TYPE JAVADOC: Defines the types of Piece metadata to set the foreground.
CONST JAVADOC: Background: To draw a specified image in front of a piece.
CONST JAVADOC: Foreground: To draw a specified image behind a piece.
CONST JAVADOC: Hidden: To draw a specified image as the hidden symbol.
TYPE: metadata.graphics.piece.PieceNameType
TYPE JAVADOC: Defines the types of Piece metadata to change the name.
CONST JAVADOC: Rename: To replace a piece's name with an alternative.
CONST JAVADOC: ExtendName: To add additional text to a piece name.
CONST JAVADOC: AddStateToName: To add the local state value of a piece to its name.
CONST JAVADOC: Hidden: To set the hidden image for a piece.
TYPE: metadata.graphics.piece.PieceReflectType
TYPE JAVADOC: Defines the types of Piece metadata to reflect.
CONST JAVADOC: Reflect: To indicate whether to apply any vertical or horizontal image reflections to a piece.
TYPE: metadata.graphics.piece.PieceRotateType
TYPE JAVADOC: Defines the types of Piece metadata to reflect.
CONST JAVADOC: Rotate: To indicate whether to rotate the image for a piece.
TYPE: metadata.graphics.piece.PieceScaleByType
TYPE JAVADOC: Defines the types of Piece metadata to scale by a data.
CONST JAVADOC: ByValue: To indicate If the pieces in the game should be scaled in size based on their  value.
TYPE: metadata.graphics.piece.PieceScaleType
TYPE JAVADOC: Defines the types of Piece metadata to scale.
CONST JAVADOC: Scale: To set the image scale of a piece.
TYPE: metadata.graphics.piece.PieceStyleType
TYPE JAVADOC: Defines the types of Piece metadata to set a style.
CONST JAVADOC: Style: To set the style of a piece.
TYPE: metadata.graphics.player.Player
TYPE JAVADOC: Sets a graphic element to a player.
NEW CTOR
(player Colour <roleType> <colour>)
PARAM JAVADOC: <roleType>: Player whose index is to be matched.
PARAM JAVADOC: <colour>: Colour wanted for this player.
EXAMPLE: (player Colour P1 (colour Black))
NEW CTOR
(player Name <roleType> <string>)
PARAM JAVADOC: <roleType>: Player whose index is to be matched.
PARAM JAVADOC: <string>: Name wanted for this player.
EXAMPLE: (player Name P1 "Player 1")
TYPE: metadata.graphics.player.PlayerColourType
TYPE JAVADOC: Defines the types of Player metadata depending of a colour.
CONST JAVADOC: Colour: To set the colour of a player.
TYPE: metadata.graphics.player.PlayerNameType
TYPE JAVADOC: Defines the types of Player metadata depending of a name.
CONST JAVADOC: Name: To set the name of a player.
TYPE: metadata.graphics.puzzle.AdversarialPuzzle
TYPE JAVADOC: Indicates whether the game is an adversarial puzzle.
NEW CTOR
(adversarialPuzzle [<boolean>])
PARAM JAVADOC: [<boolean>]: Whether the game is an adversarial puzzle or not [True].
EXAMPLE: (adversarialPuzzle)
REMARKS: Used in games which are expressed as a N-player game, but are actually puzzles, e.g. Chess puzzle.
TYPE: metadata.graphics.puzzle.DrawHint
TYPE JAVADOC: Indicates how the hints for the puzzle should be shown.
NEW CTOR
(drawHint <puzzleDrawHintType>)
PARAM JAVADOC: <puzzleDrawHintType>: How hints should be shown.
EXAMPLE: (drawHint TopLeft)
TYPE: metadata.graphics.puzzle.HintLocation
TYPE JAVADOC: Indicates how to determine the site for the hint to be drawn.
NEW CTOR
(hintLocation <puzzleHintLocationType>)
PARAM JAVADOC: <puzzleHintLocationType>: How to determine hint location.
EXAMPLE: (hintLocation BetweenVertices)
TYPE: metadata.graphics.region.Region
TYPE JAVADOC: Sets a graphic element to a region.
NEW CTOR
(region Colour [<string>] [<roleType>] [<siteType>] ([{int}]  | [int]) [<region>] [regionSiteType:<siteType>] [<colour>] [scale:<float>])
PARAM JAVADOC: [<string>]: Region to be coloured.
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched (only for Region).
PARAM JAVADOC: [<siteType>]: The GraphElementType for the specified sites [DefaultBoardType].
PARAM JAVADOC: [{int}]: Sites to be coloured.
PARAM JAVADOC: [int]: Site to be coloured.
PARAM JAVADOC: [<region>]: RegionFunction to be coloured.
PARAM JAVADOC: [regionSiteType:<siteType>]: The SiteType of the region [DefaultBoardType].
PARAM JAVADOC: [<colour>]: The assigned colour for the specified boardGraphicsType.
PARAM JAVADOC: [scale:<float>]: The scale for the region graphics (only applies to Edge siteType).
EXAMPLE: (region Colour "Home" Edge regionSiteType:Cell (colour Black))
TYPE: metadata.graphics.region.RegionColourType
TYPE JAVADOC: Defines the types of Region metadata depending of a colour.
CONST JAVADOC: Colour: To set the colour of a player.
TYPE: metadata.graphics.show.Show
TYPE JAVADOC: Shows a graphic property or an information.
NEW CTOR
(show <showSiteDataType> {int} <holeType>)
PARAM JAVADOC: <showSiteDataType>: The type of data to apply to the holes.
PARAM JAVADOC: {int}: The list of indices of the holes.
PARAM JAVADOC: <holeType>: The shape of the holes.
EXAMPLE: (show AsHoles {5 10} Square)
NEW CTOR
(show <showSiteDataType> [<siteType>] [int])
PARAM JAVADOC: <showSiteDataType>: The type of data to apply.
PARAM JAVADOC: [<siteType>]: Site Type [Cell].
PARAM JAVADOC: [int]: Additional value to add to the index [0].
EXAMPLE: (show SiteIndex Cell 5)
NEW CTOR
(show Symbol [<string>] [text:<string>] [<string>] [<roleType>] [<siteType>] ([{int}]  | [int]) [<region>] [<boardGraphicsType>] [fillColour:<colour>] [edgeColour:<colour>] [scale:<float>] [scaleX:<float>] [scaleY:<float>] [rotation:int] [offsetX:<float>] [offsetY:<float>])
PARAM JAVADOC: [<string>]: Name of the image to show.
PARAM JAVADOC: [text:<string>]: Text string to show.
PARAM JAVADOC: [<string>]: Draw image on all sites in this region.
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched (only for Region).
PARAM JAVADOC: [<siteType>]: The GraphElementType for the specified sites [Cell].
PARAM JAVADOC: [{int}]: Draw image on all specified sites.
PARAM JAVADOC: [int]: Draw image on this site.
PARAM JAVADOC: [<region>]: Draw image on this regionFunction.
PARAM JAVADOC: [<boardGraphicsType>]: Only apply image onto sites that are also part of this BoardGraphicsType.
PARAM JAVADOC: [fillColour:<colour>]: Colour for the inner sections of the image. Default value is the fill colour of the component.
PARAM JAVADOC: [edgeColour:<colour>]: Colour for the edges of the image. Default value is the edge colour of the component.
PARAM JAVADOC: [scale:<float>]: Scale for the drawn image relative to the cell size of the container [1.0].
PARAM JAVADOC: [scaleX:<float>]: The scale of the image along x-axis.
PARAM JAVADOC: [scaleY:<float>]: The scale of the image along y-axis.
PARAM JAVADOC: [rotation:int]: The rotation of the symbol.
PARAM JAVADOC: [offsetX:<float>]: Horizontal offset for image (to the right) [0.0].
PARAM JAVADOC: [offsetY:<float>]: Vertical offset for image (downwards) [0.0].
EXAMPLE: (show Symbol "water" Cell 15 scale:0.85)
NEW CTOR
(show Line {{int}} [<siteType>] [<lineStyle>] [<colour>] [scale:<float>] [curve:{<float>}] [<curveType>])
PARAM JAVADOC: {{int}}: The line to draw (pairs of vertices).
PARAM JAVADOC: [<siteType>]: The GraphElementType for the specified sites [Vertex].
PARAM JAVADOC: [<lineStyle>]: Line style [Thin].
PARAM JAVADOC: [<colour>]: The colour of the line.
PARAM JAVADOC: [scale:<float>]: The scale of the line.
PARAM JAVADOC: [curve:{<float>}]: The control points for the line to create a Bzier curve with (4 values: x1, y1, x2, y2, between 0 and 1).
PARAM JAVADOC: [<curveType>]: Type of curve [Spline].
EXAMPLE: (show Line { {1 0} {2 4} })
NEW CTOR
(show Edges [<edgeType>] [<relationType>] [connection:<boolean>] [<lineStyle>] [<colour>])
PARAM JAVADOC: [<edgeType>]: EdgeType condition [All].
PARAM JAVADOC: [<relationType>]: RelationType condition[Neighbour].
PARAM JAVADOC: [connection:<boolean>]: If this concerns cell connections, rather than graph edges [False].
PARAM JAVADOC: [<lineStyle>]: Line style for drawing edges [ThinDotted].
PARAM JAVADOC: [<colour>]: Colour in which to draw edges [LightGrey].
EXAMPLE: (show Edges Diagonal Thin)
NEW CTOR
(show <showBooleanType> [<boolean>])
PARAM JAVADOC: <showBooleanType>: The type of data to show.
PARAM JAVADOC: [<boolean>]: Whether the graphic data has to be showed. [True].
EXAMPLE: (show Pits)
EXAMPLE: (show PlayerHoles)
EXAMPLE: (show RegionOwner)
NEW CTOR
(show Piece <showComponentDataType> [<roleType>] [<string>] [<valueLocationType>] [offsetImage:<boolean>] [valueOutline:<boolean>] [scale:<float>] [offsetX:<float>] [offsetY:<float>])
PARAM JAVADOC: <showComponentDataType>: The type of data to show.
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [<string>]: Base piece name to match.
PARAM JAVADOC: [<valueLocationType>]: The location to draw the value [Corner].
PARAM JAVADOC: [offsetImage:<boolean>]: Offset the image by the size of the displayed value [False].
PARAM JAVADOC: [valueOutline:<boolean>]: Draw outline around the displayed value [False].
PARAM JAVADOC: [scale:<float>]: Scale for the drawn image relative to the cell size of the container [1.0].
PARAM JAVADOC: [offsetX:<float>]: Offset distance percentage to push the image to the right [0].
PARAM JAVADOC: [offsetY:<float>]: Offset distance percentage to push the image down [0].
EXAMPLE: (show Piece State)
EXAMPLE: (show Piece Value)
NEW CTOR
(show Check [<roleType>] [<string>])
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched.
PARAM JAVADOC: [<string>]: Base piece name to match.
EXAMPLE: (show Check "King")
NEW CTOR
(show Score [<whenScoreType>] [<roleType>] [<int>] [<string>])
PARAM JAVADOC: [<whenScoreType>]: When the score should be shown [Always].
PARAM JAVADOC: [<roleType>]: Player whose index is to be matched [All].
PARAM JAVADOC: [<int>]: Replacement value to display instead of score.
PARAM JAVADOC: [<string>]: Extra string to append to the score displayed [""].
EXAMPLE: (show Score Never)
TYPE: metadata.graphics.show.ShowBooleanType
TYPE JAVADOC: Defines the types of Show metadata depending only of a boolean.
CONST JAVADOC: Pits: To indicates whether the pits on the board should be marked with their owner.
CONST JAVADOC: PlayerHoles: To indicates whether the player's holes on the board should be marked with their owner.
CONST JAVADOC: LocalStateHoles: To indicates whether the holes with a local state of zero should be marked.
CONST JAVADOC: RegionOwner: To indicates whether the owner of each region should be shown.
CONST JAVADOC: Cost: To indicates whether the cost of the graph element has to be shown.
CONST JAVADOC: Hints: To indicates whether the hints of the puzzle has to be shown.
CONST JAVADOC: EdgeDirections: To indicates whether the edge directions should be shown.
CONST JAVADOC: PossibleMoves: To indicates whether the possible moves are always shown.
CONST JAVADOC: CurvedEdges: To indicates whether curved edges should be shown.
CONST JAVADOC: StraightEdges: To indicates whether straight edges should be shown.
TYPE: metadata.graphics.show.ShowCheckType
TYPE JAVADOC: Defines the types of Show metadata for a check.
CONST JAVADOC: Check: To indicates whether a "Check" should be displayed when a piece is in threatened.
TYPE: metadata.graphics.show.ShowComponentDataType
TYPE JAVADOC: Defines the types of data to show for a component in the super metadata Show ludeme.
CONST JAVADOC: State: To indicates whether the state of a piece should be displayed.
CONST JAVADOC: Value: To indicates whether the value of a piece should be displayed.
TYPE: metadata.graphics.show.ShowComponentType
TYPE JAVADOC: Defines the types of Show metadata for a type of components.
CONST JAVADOC: Piece: To indicate that the component to apply the type is a piece.
TYPE: metadata.graphics.show.ShowEdgeType
TYPE JAVADOC: Defines the types of Draw metadata related to edges.
CONST JAVADOC: Edges: To specify customised drawing of edges in the board graph.
TYPE: metadata.graphics.show.ShowLineType
TYPE JAVADOC: Defines the types of Draw metadata related to line.
CONST JAVADOC: Line: To draw a specified image on the board.
TYPE: metadata.graphics.show.ShowScoreType
TYPE JAVADOC: Defines the types of Show metadata for a score.
CONST JAVADOC: Score: To indicate whether the score should be shown only in certain situations.
TYPE: metadata.graphics.show.ShowSiteDataType
TYPE JAVADOC: Defines the types of Show metadata related to a data of the sites.
CONST JAVADOC: AsHoles: To indicate whether the sites of the board should be represented as holes.
CONST JAVADOC: SiteIndex: Indicates whether the sites of the board should have their index displayed/
TYPE: metadata.graphics.show.ShowSiteType
TYPE JAVADOC: Defines the types of Show metadata related to a site.
CONST JAVADOC: Sites: To apply it on the sites.
CONST JAVADOC: Cell: To apply it on the cells.
TYPE: metadata.graphics.show.ShowSymbolType
TYPE JAVADOC: Defines the types of Draw metadata related to symbol.
CONST JAVADOC: Symbol: To draw a specified image on the board.
TYPE: metadata.graphics.util.BoardGraphicsType
CONST JAVADOC: InnerEdges: Edges that are not along a board side.
CONST JAVADOC: OuterEdges: Edges that define a board side.
CONST JAVADOC: Phase0: Cells in phase 0, e.g. dark cells on the Chess board.
CONST JAVADOC: Phase1: Cells in phase 1, e.g. light cells on the Chess board.
CONST JAVADOC: Phase2: Cells in phase 2, e.g. for hexagonal tiling colouring.
CONST JAVADOC: Phase3: Cells in phase 3, e.g. for exotic tiling colourings.
CONST JAVADOC: Phase4: Cells in phase 4, e.g. for exotic tiling colouring.
CONST JAVADOC: Phase5: Cells in phase 5, e.g. for exotic tiling colourings.
CONST JAVADOC: Symbols: Symbols drawn on the board, e.g. Senet, Hnefatafl, Royal Game of Ur...
CONST JAVADOC: InnerVertices: Intersections of lines on the board, e.g. where Go stones are played.
CONST JAVADOC: OuterVertices: Intersections of lines on the board, along the perimeter of the board.
TYPE: metadata.graphics.util.ComponentStyleType
TYPE JAVADOC: Supported style types for rendering particular components.
CONST JAVADOC: Piece: Style for pieces.
CONST JAVADOC: Text: Style for text/numbers (e.g. N Puzzles).
CONST JAVADOC: Tile: Style for tiles (components that fill a cell and may have marked paths).
CONST JAVADOC: Card: Style for playing cards.
CONST JAVADOC: Die: Style for die components used as playing pieces.
CONST JAVADOC: Domino: Style for dominoes
CONST JAVADOC: LargePiece: Style for large pieces that srtaddle more than once site, e.g. the L Game.
CONST JAVADOC: ExtendedShogi: Extended style for Shogi pieces.
CONST JAVADOC: ExtendedXiangqi: Extended style for Shogi pieces.
CONST JAVADOC: NativeAmericanDice: Style for native american dice.
TYPE: metadata.graphics.util.ContainerStyleType
TYPE JAVADOC: Supported style types for rendering particular boards.
CONST JAVADOC: Board: General style for boards.
CONST JAVADOC: Hand: General style for player hands.
CONST JAVADOC: Deck: General style for player Decks.
CONST JAVADOC: Dice: General style for player Dice.
CONST JAVADOC: Boardless: General style for boardless games, e.g. Andantino.
CONST JAVADOC: ConnectiveGoal: General board style for games with connective goals.
CONST JAVADOC: Mancala: General style for Mancala boards.
CONST JAVADOC: PenAndPaper: General style for the pen \& paper style games, such as graph games.
CONST JAVADOC: Shibumi: Style for square pyramidal games played on the Shibumi board, e.g. Spline.
CONST JAVADOC: Spiral: General style for games played on a spiral board, e.g. Mehen.
CONST JAVADOC: Isometric: General style for games played on a isometric board.
CONST JAVADOC: Puzzle: General style for deduction puzzle boards.
CONST JAVADOC: Backgammon: Custom style for the Backgammon board.
CONST JAVADOC: Chess: Custom style for the Chess board.
CONST JAVADOC: Connect4: Custom style for the Connect4 board.
CONST JAVADOC: Go: Custom style for the Go board.
CONST JAVADOC: Graph: General style for graph game boards.
CONST JAVADOC: HoundsAndJackals: Custom style for the Hounds and Jackals (58 Holes) board.
CONST JAVADOC: Janggi: Custom style for the Janggi board.
CONST JAVADOC: Lasca: Custom style for the Lasca board.
CONST JAVADOC: Shogi: Custom style for the Shogi board.
CONST JAVADOC: SnakesAndLadders: Custom style for the Snakes and Ladders board.
CONST JAVADOC: Surakarta: Custom style for the Surakarta board.
CONST JAVADOC: Table: Custom style for the Table board.
CONST JAVADOC: Tafl: Custom style for Tafl boards.
CONST JAVADOC: Xiangqi: Custom style for the Xiangqi board.
CONST JAVADOC: UltimateTicTacToe: Custom style for the Ultimate Tic-Tac-Toe board.
CONST JAVADOC: Futoshiki: Custom style for the Futoshiki puzzle board.
CONST JAVADOC: Hashi: Custom style for the Hashi puzzle board.
CONST JAVADOC: Kakuro: Custom style for the Kakuro puzzle board.
CONST JAVADOC: Sudoku: Custom style for the Sudoku board.
TYPE: metadata.graphics.util.ControllerType
TYPE JAVADOC: Defines supported controller types for handling user interactions for particular topologies.
CONST JAVADOC: BasicController: Basic user interaction controller.
CONST JAVADOC: PyramidalController: User interaction controller for games played on pyramidal topologies.
TYPE: metadata.graphics.util.CurveType
TYPE JAVADOC: Supported style types for drawing curves.
CONST JAVADOC: Spline: Spline curve based on relative distances.
CONST JAVADOC: Bezier: Bezier curve based on absolute distances.
TYPE: metadata.graphics.util.EdgeType
TYPE JAVADOC: Defines edge type for drawing board elements, e.g. for graph games.
CONST JAVADOC: All: All board edges.
CONST JAVADOC: Inner: Inner board edges.
CONST JAVADOC: Outer: Outer board edges.
CONST JAVADOC: Interlayer: Interlayer board edges.
TYPE: metadata.graphics.util.HoleType
TYPE JAVADOC: Defines hole styles for Mancala board.
CONST JAVADOC: Square: Hole as Square.
CONST JAVADOC: Oval: Oval as Square.
TYPE: metadata.graphics.util.LineStyle
TYPE JAVADOC: Defines line styles for drawing board elements, e.g. edges for graph games.
CONST JAVADOC: Thin: Thin line.
CONST JAVADOC: Thick: Thick line.
CONST JAVADOC: ThinDotted: Thin dotted line.
CONST JAVADOC: ThickDotted: Thick dotted line.
CONST JAVADOC: ThinDashed: Thin dashed line.
CONST JAVADOC: ThickDashed: Thick dashed line.
CONST JAVADOC: Hidden: Line not drawn.
TYPE: metadata.graphics.util.PieceColourType
TYPE JAVADOC: Defines different colours for a piece.
CONST JAVADOC: Fill: Fill colour.
CONST JAVADOC: Edge: Edge colour.
CONST JAVADOC: Secondary: Secondary colour. Used for things like the count colour.
TYPE: metadata.graphics.util.PieceStackType
TYPE JAVADOC: Defines different ways of visualising stacks of pieces.
CONST JAVADOC: Default: Stacked one above the other (with offset).
CONST JAVADOC: Ground: Spread on the ground, e.g. Snakes and Ladders or Pachisi.
CONST JAVADOC: GroundDynamic: Spread on the ground, but position based on size of stack.
CONST JAVADOC: Reverse: Reverse stacking downwards.
CONST JAVADOC: Fan: Spread to show each component like a hand of cards.
CONST JAVADOC: FanAlternating: Spread to show each component like a hand of cards, alternating left and right side of centre.
CONST JAVADOC: None: No visible stacking.
CONST JAVADOC: Backgammon: Stacked Backgammon-style in lines of five.
CONST JAVADOC: Count: Show just top piece, with the stack value as number.
CONST JAVADOC: DefaultAndCount: Stacked one above the other (with offset), with the stack value as number.
CONST JAVADOC: CountColoured: Show just top piece, with the stack value as number(s), coloured by who.
CONST JAVADOC: Ring: Stacked Ring-style around cell perimeter.
CONST JAVADOC: TowardsCenter: Stacked towards the center of the board.
TYPE: metadata.graphics.util.PuzzleDrawHintType
TYPE JAVADOC: Defines different ways of visualising stacks of pieces.
CONST JAVADOC: Default: Hints drawn in the middle.
CONST JAVADOC: TopLeft: Hints drawn in the top left.
CONST JAVADOC: NextTo: Draw the hint next to the region.
CONST JAVADOC: None: No hints.
TYPE: metadata.graphics.util.PuzzleHintLocationType
TYPE JAVADOC: Defines different ways of visualising stacks of pieces.
CONST JAVADOC: Default: Hints placed on top-left site of region.
CONST JAVADOC: BetweenVertices: Draw hint on edge between vertex.
TYPE: metadata.graphics.util.StackPropertyType
TYPE JAVADOC: Defines different aspects of a stack.
CONST JAVADOC: Scale: Stack scale.
CONST JAVADOC: Limit: Stack maximum number of pieces (used by some stack types).
CONST JAVADOC: Type: Stack design.
TYPE: metadata.graphics.util.ValueLocationType
TYPE JAVADOC: Specified where to draw state of an item in the interface, relative to its position.
CONST JAVADOC: None: No location.
CONST JAVADOC: CornerLeft: At the top left corner of the item's location.
CONST JAVADOC: CornerRight: At the top left corner of the item's location.
CONST JAVADOC: Top: At the top of the item's location.
CONST JAVADOC: Middle: Centred on the item's location.
TYPE: metadata.graphics.util.WhenScoreType
TYPE JAVADOC: Specifies when to show player scores to the user.
CONST JAVADOC: Always: Always show player scores.
CONST JAVADOC: Never: Never show player scores.
CONST JAVADOC: AtEnd: Only show player scores at end of game.
TYPE: metadata.graphics.util.colour.Colour
TYPE JAVADOC: Defines a colour for use in metadata items.
NEW CTOR
(colour int int int)
PARAM JAVADOC: int: Red component [0..255].
PARAM JAVADOC: int: Green component [0..255].
PARAM JAVADOC: int: Blue component [0..255].
EXAMPLE: (colour 255 0 0)
NEW CTOR
(colour int int int int)
PARAM JAVADOC: int: Red component [0..255].
PARAM JAVADOC: int: Green component [0..255].
PARAM JAVADOC: int: Blue component [0..255].
PARAM JAVADOC: int: Alpha component [0..255].
EXAMPLE: (colour 255 0 0 127)
NEW CTOR
(colour <string>)
PARAM JAVADOC: <string>: Six digit hexadecimal code.
EXAMPLE: (colour "#00ff1a")
NEW CTOR
(colour <userColourType>)
PARAM JAVADOC: <userColourType>: Predefined user colour type.
EXAMPLE: (colour DarkBlue)
TYPE: metadata.graphics.util.colour.UserColourType
TYPE JAVADOC: Specifies the colour of the user.
CONST JAVADOC: White: Plain white.
CONST JAVADOC: Black: Plain black.
CONST JAVADOC: Grey: Medium grey.
CONST JAVADOC: LightGrey: Light grey.
CONST JAVADOC: VeryLightGrey: Very light grey.
CONST JAVADOC: DarkGrey: Dark grey.
CONST JAVADOC: VeryDarkGrey: Very dark grey.
CONST JAVADOC: Dark: Almost black.
CONST JAVADOC: Red: Plain red.
CONST JAVADOC: Green: Plain green.
CONST JAVADOC: Blue: Blue.
CONST JAVADOC: Yellow: Yellow.
CONST JAVADOC: Pink: Pink.
CONST JAVADOC: Cyan: Cyan.
CONST JAVADOC: Brown: Medium brown.
CONST JAVADOC: DarkBrown: Dark brown.
CONST JAVADOC: VeryDarkBrown: Very dark brown.
CONST JAVADOC: Purple: Purple.
CONST JAVADOC: Magenta: Magenta.
CONST JAVADOC: Turquoise: Turquoise.
CONST JAVADOC: Orange: Orange.
CONST JAVADOC: LightOrange: Light orange.
CONST JAVADOC: LightRed: Light red.
CONST JAVADOC: DarkRed: Dark red.
CONST JAVADOC: Burgundy: Burgundy.
CONST JAVADOC: LightGreen: Light green.
CONST JAVADOC: DarkGreen: Dark green.
CONST JAVADOC: LightBlue: Light blue.
CONST JAVADOC: VeryLightBlue: Very light blue.
CONST JAVADOC: DarkBlue: Dark blue.
CONST JAVADOC: IceBlue: Light icy blue.
CONST JAVADOC: Gold: Gold.
CONST JAVADOC: Silver: Silver.
CONST JAVADOC: Bronze: Bronze.
CONST JAVADOC: GunMetal: Gun metal blue.
CONST JAVADOC: HumanLight: Light human skin tone.
CONST JAVADOC: HumanDark: Dark human skin tone.
CONST JAVADOC: Cream: Cream.
CONST JAVADOC: DeepPurple: Deep purple.
CONST JAVADOC: PinkFloyd: Pink.
CONST JAVADOC: BlackSabbath: Very dark bluish black.
CONST JAVADOC: KingCrimson: King of the crimsons.
CONST JAVADOC: TangerineDream: Tangerine.
CONST JAVADOC: BabyBlue: Baby Blue.
CONST JAVADOC: LightTan: Light tan (as per Tafl boards).
CONST JAVADOC: Hidden: Invisible.
TYPE: metadata.info.Info
TYPE JAVADOC: General information about the game.
NEW CTOR
(info (<infoItem>  | {<infoItem>}))
PARAM JAVADOC: <infoItem>: The info item of the game.
PARAM JAVADOC: {<infoItem>}: The info items of the game.
EXAMPLE: (info { (description "Description of The game") (source "Source of the game") (version "1.0.0") (classification "board/space/territory") (origin "Origin of the game.") })
TYPE: metadata.info.InfoItem
TYPE JAVADOC: Metadata containing some specific type of information about the game (author, date, rules, etc.).
SUBCLASS: metadata.info.database.Aliases
SUBCLASS: metadata.info.database.Author
SUBCLASS: metadata.info.database.Classification
SUBCLASS: metadata.info.database.Credit
SUBCLASS: metadata.info.database.Date
SUBCLASS: metadata.info.database.Description
SUBCLASS: metadata.info.database.Id
SUBCLASS: metadata.info.database.Origin
SUBCLASS: metadata.info.database.Publisher
SUBCLASS: metadata.info.database.Rules
SUBCLASS: metadata.info.database.Source
SUBCLASS: metadata.info.database.Version
TYPE: metadata.info.database.Aliases
TYPE JAVADOC: Specifies a list of additional aliases for the game's name.
NEW CTOR
(aliases {<string>})
PARAM JAVADOC: {<string>}: Set of additional aliases for the name of this game.
EXAMPLE: (aliases {"Caturanga" "Catur"})
TYPE: metadata.info.database.Author
TYPE JAVADOC: Specifies the author of the game or ruleset.
NEW CTOR
(author <string>)
PARAM JAVADOC: <string>: The author of the game.
EXAMPLE: (author "John Doe")
TYPE: metadata.info.database.Classification
TYPE JAVADOC: Specifies the location of this game within the Ludii classification scheme.
NEW CTOR
(classification <string>)
PARAM JAVADOC: <string>: The game's location within the Ludii classification scheme.
EXAMPLE: (classification "games/board/war/chess")
REMARKS: The Ludii classification is a combination of the schemes used in H. J. R. Murray's {\it A History of Board Games other than Chess} and David Parlett's {\it The Oxford History of Board Games}, with additional categories to reflect the wider range of games supported by Ludii.
TYPE: metadata.info.database.Credit
TYPE JAVADOC: Specifies the author of the .lud file and any relevant credit information.
NEW CTOR
(credit <string>)
PARAM JAVADOC: <string>: The author of the .lud file.
EXAMPLE: (credit "A. Fool, April Fool Games, 1/4/2020")
REMARKS: The is *not* for the author of the game or ruleset. The "author" info item should be used for that.
TYPE: metadata.info.database.Date
TYPE JAVADOC: Specifies the (approximate) date that the game was created.
NEW CTOR
(date <string>)
PARAM JAVADOC: <string>: The date the game was created.
EXAMPLE: (date "2015-10-05")
REMARKS: Date is specified in the format (YYYY-MM-DD).
TYPE: metadata.info.database.Description
TYPE JAVADOC: Specifies a description of the game.
NEW CTOR
(description <string>)
PARAM JAVADOC: <string>: An English description of the game.
EXAMPLE: (description "A traditional game that comes from Egypt.")
TYPE: metadata.info.database.Id
TYPE JAVADOC: Specifies the database Id for the currently chosen ruleset.
NEW CTOR
(id <string>)
PARAM JAVADOC: <string>: The ruleset database table Id.
EXAMPLE: (id "35")
TYPE: metadata.info.database.Origin
TYPE JAVADOC: Specifies the location of the earliest known origin for this game.
NEW CTOR
(origin <string>)
PARAM JAVADOC: <string>: Earliest known origin for this game.
EXAMPLE: (origin "1953")
TYPE: metadata.info.database.Publisher
TYPE JAVADOC: Specifies the publisher of the game.
NEW CTOR
(publisher <string>)
PARAM JAVADOC: <string>: The publisher of the game.
EXAMPLE: (publisher "Games Inc.")
TYPE: metadata.info.database.Rules
TYPE JAVADOC: Specifies an English description of the rules of a game.
NEW CTOR
(rules <string>)
PARAM JAVADOC: <string>: An English description of the game's rules.
EXAMPLE: (rules "Try to make a line of four.")
TYPE: metadata.info.database.Source
TYPE JAVADOC: Specifies the reference for the game, or its currently chosen ruleset.
NEW CTOR
(source <string>)
PARAM JAVADOC: <string>: The source of the game's rules.
EXAMPLE: (source "Murray 1969")
TYPE: metadata.info.database.Version
TYPE JAVADOC: Specifies the latest Ludii version that this .lud is known to work for.
NEW CTOR
(version <string>)
PARAM JAVADOC: <string>: Ludii version in String form.
EXAMPLE: (version "1.0.0")
REMARKS: The version format is (Major version).(Minor version).(Build number). For example, the first major version for public release is "1.0.0".
TYPE: metadata.recon.ReconItem
TYPE JAVADOC: Metadata containing some specific reconstruction requirements.
SUBCLASS: metadata.recon.concept.Concept
TYPE: metadata.recon.concept.Concept
TYPE JAVADOC: Specifies the what concept values are required.
NEW CTOR
(concept <string> (<float>  | <boolean>))
PARAM JAVADOC: <string>: The name of the concept.
PARAM JAVADOC: <float>: The double value.
PARAM JAVADOC: <boolean>: The boolean value.
EXAMPLE: (concept "Num Players" 6)
NEW CTOR
(concept <string> minValue:<float> maxValue:<float>)
PARAM JAVADOC: <string>: The name of the concept.
PARAM JAVADOC: minValue:<float>: The minimum value.
PARAM JAVADOC: maxValue:<float>: The maximum value.
EXAMPLE: (concept "Num Players" minValue:2 maxValue:4)
DEFINE: IsInCheck
DEFINE JAVADOC: Checks if a specific piece is threatened by any other enemy piece. #1 = The name of the piece (without the number). #2 = The roleType of the owner of the piece. #3 = The location where is the piece or The specific moves used to threat. This parameter is optional. If not specify the current location of the piece is used and all the legal moves are used. 
DEFINE EXAMPLE: ("IsInCheck" "Osho" Next)
DEFINE EXAMPLE: ("IsInCheck" "King" Mover at:(to))
DEFINE: IsEnemyAt
DEFINE JAVADOC: Checks if an enemy is on a site. #1 = The site. #2 = The level [the topest]. 
DEFINE EXAMPLE: ("IsEnemyAt" (to))
DEFINE: IsFriendAt
DEFINE JAVADOC: Checks if a friend is on a site. #1 = The site. #2 = The level [the topest]. 
DEFINE EXAMPLE: ("IsFriendAt" (to))
DEFINE: AllOwnedPiecesIn
DEFINE JAVADOC: Checks if all pieces on the board owned by the mover are in a region. #1 = The region. 
DEFINE EXAMPLE: ("AllOwnedPiecesIn" (sites Top))
DEFINE: DieNotUsed
DEFINE JAVADOC: Checks if a die is not used when using the ludeme (forEach Die ...). 
DEFINE EXAMPLE: ("DieNotUsed")
DEFINE: HandEmpty
DEFINE JAVADOC: Checks if all the sites in a specific hand are empty. This ludemeplex is working only for non stacking games. #1 = The owner of the hand, can be a RoleType or the index of the owner. 
DEFINE EXAMPLE: ("HandEmpty" Mover)
DEFINE: HandOccupied
DEFINE JAVADOC: Checks if at least a site in a specific hand is not empty. This ludemeplex is working only for non stacking games. #1 = The owner of the hand, can be a RoleType or the index of the owner. 
DEFINE EXAMPLE: ("HandOccupied" Mover)
DEFINE: HasFreedom
DEFINE JAVADOC: Checks if a group of pieces has some liberties around it. The specified directions (by default Adjacent) are the directions between the elements of the group. #1 = = Directions of the pieces in the group. 
DEFINE EXAMPLE: ("HasFreedom" Orthogonal)
DEFINE: IsEmptyAndNotVisited
DEFINE JAVADOC: Checks if a site is empty and not visited so far in the same turn. #1 = The site. 
DEFINE EXAMPLE: ("IsEmptyAndNotVisited" (to))
DEFINE: IsPhaseOne
DEFINE JAVADOC: Checks if a site is phase 1. #1 = The site. 
DEFINE EXAMPLE: ("IsPhaseOne" (between))
DEFINE: IsPhaseZero
DEFINE JAVADOC: Checks if a site is phase 0. #1 = The site. 
DEFINE EXAMPLE: ("IsPhaseZero" (between))
DEFINE: IsPieceAt
DEFINE JAVADOC: Checks if a piece #1 owned by #2 is at a site #3. #1 = The name of the piece. #2 = The owner of the piece. #3 = The site. #4 = The level. 
DEFINE EXAMPLE: ("IsPieceAt" "Ball" Shared 32)
DEFINE: IsSingleGroup
DEFINE JAVADOC: Checks if only one single group with pieces owned by a player exists. #1 = The owner of the pieces in the group. #2 = The direction used to connect the pieces in the group (by default Adjacent). 
DEFINE EXAMPLE: ("IsSingleGroup" Mover)
DEFINE: NoPieceOnBoard
DEFINE JAVADOC: Checks if the board is empty. This ludemeplex is not working for games involving stacks. 
DEFINE EXAMPLE: ("NoPieceOnBoard)
DEFINE: NoSites
DEFINE JAVADOC: Checks if a region has no sites. #1 = The region. 
DEFINE EXAMPLE: ("NoSites" (sites Empty))
DEFINE: IsEmptyOrSingletonStack
DEFINE JAVADOC: Checks if a stack has a size of 1 at a site or if the site is empty. #1 = The site. 
DEFINE EXAMPLE: ("IsEmptyOrSingletonStack" (to))
DEFINE: IsSingletonStack
DEFINE JAVADOC: Checks if a stack has a size of 1 at a site. #1 = The site. 
DEFINE EXAMPLE: ("IsSingletonStack" (to))
DEFINE: IsTopLevel
DEFINE JAVADOC: Checks if a level is at the top of a stack. #1 = The site. 
DEFINE EXAMPLE: ("IsTopLevel" (to))
DEFINE: NoEnemyOrOnlyOne
DEFINE JAVADOC: Checks if no enemy or only one in a stack game. #1 = The site. 
DEFINE EXAMPLE: ("NoEnemyOrOnlyOne" (to))
DEFINE: IsEndTrack
DEFINE JAVADOC: Checks if a site returned by a track is the ending site of the track. #1 = The site. 
DEFINE EXAMPLE: ("IsEndTrack" ("NextSiteOnTrack" 3))
DEFINE: IsNotEndTrack
DEFINE JAVADOC: Checks if a site returned by a track is not the ending site of the track. #1 = The site. 
DEFINE EXAMPLE: ("IsNotEndTrack" ("NextSiteOnTrack" 3))
DEFINE: IsNotOffBoard
DEFINE JAVADOC: Checks if a site returned by a track is not off board. #1 = The site. 
DEFINE EXAMPLE: ("IsNotOffBoard" ("NextSiteOnTrack" 3))
DEFINE: IsOffBoard
DEFINE JAVADOC: Checks if a site returned by a track is off board. #1 = The site. 
DEFINE EXAMPLE: ("IsOffBoard" ("NextSiteOnTrack" 3))
DEFINE: NewTurn
DEFINE JAVADOC: Checks if this is new turn, i.e. the current move is not the previous mover. 
DEFINE EXAMPLE: ("NewTurn")
DEFINE: SameTurn
DEFINE JAVADOC: Checks if the previous mover is the same player than the current mover, consequently this is the same turn. 
DEFINE EXAMPLE: ("SameTurn")
DEFINE: LastDirection
DEFINE JAVADOC: Returns the direction between the last `from' location and the last `to' location. #1 = The site type of the sites. 
DEFINE EXAMPLE: ("LastDirection" Cell)
DEFINE: DraughtsEquipment
DEFINE JAVADOC: Defines all the equipment used in most of the draught games. #1 = The graph of the board. #2 = The default site type to use [Optional by default Cell]. #3 = An optional element of the equipment. 
DEFINE EXAMPLE: ("DraughtsEquipment" (square 8))
DEFINE: CrossBoard
DEFINE JAVADOC: Defines a regular start board (example: Kaooa). #1 = The dimension of the start. 
DEFINE EXAMPLE: ("StarBoard" 5)
DEFINE: LascaBoard
DEFINE JAVADOC: Defines the original Lasca board. 
DEFINE EXAMPLE: ("LascaBoard")
DEFINE: StarBoard
DEFINE JAVADOC: Defines a regular cross board tilled by squares (example: Pachisi). #1 = The dimension of an arm of the cross. #2 = The full dimension of the board. #3 = The default site type of the board. #4 = The type of the diagonals of each tiling. 
DEFINE EXAMPLE: ("CrossBoard" 3 7 use:Vertex diagonals:Alternating)
DEFINE: AlquerqueBoard
DEFINE JAVADOC: Defines a rectangular board with Alquerque-style alternating diagonals. 
DEFINE EXAMPLE: ("AlquerqueBoard" 5 5)
DEFINE: AlquerqueBoardWithBottomAndTopTriangles
DEFINE JAVADOC: Defines a rectangular board with Alquerque-style alternating diagonals with a triangle extension at the bottom and another at the top. 
DEFINE EXAMPLE: ("AlquerqueBoardWithBottomAndTopTriangles")
DEFINE: AlquerqueBoardWithBottomTriangle
DEFINE JAVADOC: Defines a rectangular board with Alquerque-style alternating diagonals with a triangle extension at the bottom. 
DEFINE EXAMPLE: ("AlquerqueBoardWithBottomTriangle")
DEFINE: AlquerqueBoardWithEightTriangles
DEFINE JAVADOC: Defines a rectangular board with Alquerque-style alternating diagonals with eight triangle extensions. 
DEFINE EXAMPLE: ("AlquerqueBoardWithEightTriangles")
DEFINE: AlquerqueBoardWithFourTriangles
DEFINE JAVADOC: Defines a rectangular board with Alquerque-style alternating diagonals with four triangle extensions on each side. 
DEFINE EXAMPLE: ("AlquerqueBoardWithFourTriangles")
DEFINE: NineMensMorrisBoard
DEFINE JAVADOC: Defines a nine men's morris board. 
DEFINE EXAMPLE: ("NineMensMorrisBoard")
DEFINE: ThreeMensMorrisBoard
DEFINE JAVADOC: Defines a Three Men's Morris board. 
DEFINE EXAMPLE: ("ThreeMensMorrisBoard")
DEFINE: ThreeMensMorrisBoardWithLeftAndRightTriangles
DEFINE JAVADOC: Defines a Three Men's Morris board with two triangle extensions at the left and right. 
DEFINE EXAMPLE: ("ThreeMensMorrisBoardWithLeftAndRightTriangles")
DEFINE: BackgammonBoard
DEFINE JAVADOC: Defines a backgammon board (without the style). #1 = The tracks of the players. 
DEFINE EXAMPLE: ("BackgammonBoard")
DEFINE: FortyStonesWithFourGapsBoard
DEFINE JAVADOC: Defines a circle board defined with 40 stones, with a gap after each 10 stones. The board is playable on the edges. 
DEFINE EXAMPLE: ("FortyStonesWithFourGapsBoard")
DEFINE: KintsBoard
DEFINE JAVADOC: Defines a rectangular board with some arcs used in some native american games such as Kints. #1 = The tracks of the players. 
DEFINE EXAMPLE: ("KintsBoard")
DEFINE: PachisiBoard
DEFINE JAVADOC: Defines a pachisi board. 
DEFINE EXAMPLE: ("PachisiBoard")
DEFINE: TableBoard
DEFINE JAVADOC: Defines a table board (without the style). #1 = The tracks of the players. 
DEFINE EXAMPLE: ("TableBoard")
DEFINE: BackgammonTracks
DEFINE JAVADOC: Defines the most popular backgammon tracks. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracks")
DEFINE: BackgammonTracksSameDirectionOppositeCorners
DEFINE JAVADOC: Defines backgammon tracks following the same direction for each player but starting from opposite corners. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracksSameDirectionOppositeCorners")
DEFINE: BackgammonTracksSameDirectionOppositeCornersWithBars
DEFINE JAVADOC: Defines backgammon tracks following the same direction for each player but starting from opposite corners in using the bar of the board. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracksSameDirectionOppositeCornersWithBars")
DEFINE: BackgammonTracksSameDirectionOppositeCornersWithBars2
DEFINE JAVADOC: Defines backgammon tracks following the same direction for each player but starting from opposite corners in using the bar of the board. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracksSameDirectionOppositeCornersWithBars2")
DEFINE: BackgammonTracksSameDirectionWithBar
DEFINE JAVADOC: Defines backgammon tracks following the same direction for each player in using the bar of the board. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracksSameDirectionWithBar")
DEFINE: BackgammonTracksSameDirectionWithHands
DEFINE JAVADOC: Defines backgammon tracks following the same direction for each player in using the hands of the players. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracksSameDirectionWithHands")
DEFINE: BackgammonTracksWithBar
DEFINE JAVADOC: Defines the most popular backgammon tracks in using the bar of the board. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracksWithBar")
DEFINE: BackgammonTracksWithHands
DEFINE JAVADOC: Defines the most popular backgammon tracks in using the hands of the players. #1 = An optional End site. 
DEFINE EXAMPLE: ("BackgammonTracksWithHands")
DEFINE: TableTracksOpposite
DEFINE JAVADOC: Defines two opposite table tracks. #1 = An optional End site. 
DEFINE EXAMPLE: ("TableTracksOpposite")
DEFINE: TableTracksOpposite2
DEFINE JAVADOC: Defines two opposite table tracks. #1 = An optional End site. 
DEFINE EXAMPLE: ("TableTracksOpposite2")
DEFINE: TableTracksOppositeWithHands
DEFINE JAVADOC: Defines two opposite table tracks and using hand sites. #1 = An optional End site. 
DEFINE EXAMPLE: ("TableTracksOppositeWithHands")
DEFINE: TableTracksOppositeWithHands2
DEFINE JAVADOC: Defines two opposite table tracks and using hand sites. #1 = An optional End site. 
DEFINE EXAMPLE: ("TableTracksOppositeWithHands2")
DEFINE: TableTracksSameDirectionOppositeCorners
DEFINE JAVADOC: Defines table tracks following the same direction for each player but starting from opposite corners. #1 = An optional End site. 
DEFINE EXAMPLE: ("TableTracksSameDirectionOppositeCorners")
DEFINE: TableTracksSameDirectionWithHands
DEFINE JAVADOC: Defines two table tracks following the same directions and using hand sites. #1 = An optional End site. 
DEFINE EXAMPLE: ("TableTracksSameDirectionWithHands")
DEFINE: StickDice
DEFINE JAVADOC: Defines a specified number of D2 dice with values 0 and 1. 
DEFINE EXAMPLE: ("StickDice" 4)
DEFINE: CrossGraph
DEFINE JAVADOC: Defines a regular cross graph tilled by squares (example: Pachisi). #1 = The dimension of an arm of the cross. #2 = The full dimension of the board. #3 = The type of the diagonals of each tiling. 
DEFINE EXAMPLE: ("CrossGraph" 3 7 diagonals:Alternating)
DEFINE: LascaGraph
DEFINE JAVADOC: Defines the original Lasca graph. 
DEFINE EXAMPLE: ("LascaGraph")
DEFINE: AlquerqueGraph
DEFINE JAVADOC: Defines a rectangular graph with Alquerque-style alternating diagonals. 
DEFINE EXAMPLE: ("AlquerqueGraph" 5 5)
DEFINE: AlquerqueGraphWithBottomAndTopTriangles
DEFINE JAVADOC: Defines a rectangular graph with Alquerque-style alternating diagonals with a triangle extension at the bottom and another at the top. 
DEFINE EXAMPLE: ("AlquerqueGraphWithBottomAndTopTriangles")
DEFINE: AlquerqueGraphWithBottomTriangle
DEFINE JAVADOC: Defines a rectangular graph with Alquerque-style alternating diagonals with a triangle extension at the bottom. 
DEFINE EXAMPLE: ("AlquerqueGraphWithBottomTriangle")
DEFINE: AlquerqueGraphWithFourTriangles
DEFINE JAVADOC: Defines a rectangular graph with Alquerque-style alternating diagonals with four triangle extension on each side. 
DEFINE EXAMPLE: ("AlquerqueGraphWithFourTriangles")
DEFINE: ThreeMensMorrisGraphWithLeftAndRightTriangles
DEFINE JAVADOC: Defines a Three Men's Morris graph with two triangle extensions at the left and right. 
DEFINE EXAMPLE: ("ThreeMensMorrisGraphWithLeftAndRightTriangles")
DEFINE: ChessBishop
DEFINE JAVADOC: Defines a piece moving like a bishop in Chess. #1 = The name of the piece. #2 = Consequences of the capture effect. #3 = The consequences of the moves. 
DEFINE EXAMPLE: ("ChessBishop" "Bishop")
DEFINE: ChessKing
DEFINE JAVADOC: Defines a piece moving like a king in Chess (castling is not described in this ludemeplex). #1 = The name of the piece. #2 = Consequences of the capture effect. #3 = The consequences of the moves. 
DEFINE EXAMPLE: ("ChessKing" "King")
DEFINE: ChessKnight
DEFINE JAVADOC: Defines a piece moving like a knight in Chess. #1 = The name of the piece. #2 = Consequences of the capture effect. #3 = The consequences. 
DEFINE EXAMPLE: ("ChessKnight" "Knight")
DEFINE: ChessPawn
DEFINE JAVADOC: Defines a piece moving like a pawn in Chess (En Passant, Initial double step moves and promotion are not described in this ludemeplex). #1 = The name of the piece. #2 = Other moves which can be added to the pawn pieces. #3 = The consequences. 
DEFINE EXAMPLE: ("ChessPawn" "Pawn")
DEFINE: ChessQueen
DEFINE JAVADOC: Defines a piece moving like a queen in Chess. #1 = The name of the piece. #2 = Consequences of the capture effect. #3 = The consequences of the moves. 
DEFINE EXAMPLE: ("ChessQueen" "Queen")
DEFINE: ChessRook
DEFINE JAVADOC: Defines a piece moving like a rook in Chess. #1 = The name of the piece. #2 = Consequences of the capture effect. #3 = The consequences of the moves. 
DEFINE EXAMPLE: ("ChessRook" "Rook")
DEFINE: ShogiGold
DEFINE JAVADOC: Defines a piece moving like a gold in Shogi. The effect of the capture have to be defined. #1 = The name of the piece. #2 = The capture effect. #3 = The consequences of the moves. 
DEFINE EXAMPLE: ("ShogiGold" "Tokin")
DEFINE: TwoPlayersNorthSouth
DEFINE JAVADOC: Defines two players, P1 moving in direction to the north and P2 moving in direction to the south. 
DEFINE EXAMPLE: ("TwoPlayersNorthSouth")
DEFINE: LastDistance
DEFINE JAVADOC: Returns the number of steps between the last `from' location and the last `to' location. #1 = The relation type to use between the sites [Adjacent]. 
DEFINE EXAMPLE: ("LastDistance")
DEFINE: NextSiteOnTrack
DEFINE JAVADOC: Returns the next site on a track. #1 = The number of steps. #2 = From site [(from)]. #3 = Which track [First track of the mover]. 
DEFINE EXAMPLE: ("NextSiteOnTrack" 3)
DEFINE: OccupiedNbors
DEFINE JAVADOC: Returns the number of pieces owned by a player around a given site. #1 = The site to test around. #2 = The owner of the pieces to count. 
DEFINE EXAMPLE: ("OccupiedNbors" (to) Mover)
DEFINE: LastHoleSowed
DEFINE JAVADOC: Returns a region of one site corresponding to the last `to' position after applying the consequences. In the mancala games, this site is the last hole in which a seed was sowed. 
DEFINE EXAMPLE: ("LastHoleSowed")
DEFINE: OppositeOuterPit
DEFINE JAVADOC: Returns the index of the outer opposite pit on a mancala board with four rows. This ludemeplex is working only if the description is defining "Columns" as the number of holes of the board. #1 = The site. 
DEFINE EXAMPLE: ("OppositeOuterPit" (to))
DEFINE: OppositePit
DEFINE JAVADOC: Returns the index of the opposite pit on a mancala board. This ludemeplex is working only if the description is defining "Columns" as the number of holes of the board. #1 = The site. 
DEFINE EXAMPLE: ("OppositePit" (to))
DEFINE: OppositePitTwoRows
DEFINE JAVADOC: Returns the index of the opposite pit on a two rows mancala board. This ludemeplex is working only if the description is defining "Columns" as the number of holes of the board. #1 = The site. 
DEFINE EXAMPLE: ("OppositePitTwoRows" (to))
DEFINE: CaptureAll
DEFINE JAVADOC: Checks if a player has no piece and lose. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("CaptureAll" Next)
DEFINE: CaptureAllTeam
DEFINE JAVADOC: Checks if all the enemies have no piece and makes the current team to win. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("CaptureAllTeam")
DEFINE: Checkmate
DEFINE JAVADOC: If the next player is checkmate, the mover is winning. This ludemeplex can be used only in an ending condition. #1 = The name of the piece to check. 
DEFINE EXAMPLE: ("Checkmate" "King")
DEFINE: HavingLessPiecesLoss
DEFINE JAVADOC: Checks if a player has a less or equal number of pieces and lose. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("HavingLessPiecesLoss" Next 2)
DEFINE: MancalaByScoreWhen
DEFINE JAVADOC: Ends a mancala game when a condition is verified in computing the score of each player thanks to a ludemeplex called "PiecesOwnedBy" taking in input the role of P1 or P2. This ludemeplex can be used only in an ending condition. #1 The condition. 
DEFINE EXAMPLE: ("MancalaByScoreWhen" (no Moves Next))
DEFINE: NoMovesLossAndLessNumPiecesPlayerLoss
DEFINE JAVADOC: Checks if the next player has no legal moves and the next player loses and checks if a specific player has less or equal than a number of pieces to lose. This ludemeplex can be used only in an ending condition. #1 = The owner of the pieces. #2 = The number of pieces. 
DEFINE EXAMPLE: ("NoMovesLossAndLessNumPiecesPlayerLoss" P1 3)
DEFINE: NoMovesLossAndNoPiecesPlayerLoss
DEFINE JAVADOC: Checks if the next player has no legal moves and the next player loses and checks if a specific player has no pieces to lose. This ludemeplex can be used only in an ending condition. #1 = The owner of the pieces. 
DEFINE EXAMPLE: ("NoMovesLossAndNoPiecesPlayerLoss" P1)
DEFINE: NoMovesP1NoPiecesP2
DEFINE JAVADOC: Checks if P1 has no moves and P2 wins and checks if P2 has no pieces and P1 wins. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("NoMovesP1NoPiecesP2")
DEFINE: NoMovesP2NoPiecesP1
DEFINE JAVADOC: Checks if P2 has no moves and P1 wins and checks if P1 has no pieces and P2 wins. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("NoMovesP2NoPiecesP1")
DEFINE: EscapeTeamWin
DEFINE JAVADOC: Checks if the team has no pieces and makes it win. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("EscapeTeamWin")
DEFINE: EscapeWin
DEFINE JAVADOC: Checks if the mover has no pieces and makes it win. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("EscapeWin")
DEFINE: FillWin
DEFINE JAVADOC: If the mover is filling all the spaces of a region with his pieces, the mover is winning. This ludemeplex can be used only in an ending condition. #1 = The name of the piece to check. 
DEFINE EXAMPLE: ("FillWin" (sites Top))
DEFINE: PieceTypeReachWin
DEFINE JAVADOC: Checks if a specific piece type reached a region and makes a player is wining. This ludemeplex can be used only in an ending condition. #1 = The name of the piece. #2 = The region to reach. #3 = The player 
DEFINE EXAMPLE: ("PieceTypeReachWin" "Jarl2" (sites Corners) P2)
DEFINE: ReachWin
DEFINE JAVADOC: If the mover is reaching a space of a region with his last movement, a player is winning. This ludemeplex can be used only in an ending condition. #1 = The region to reach. #2 = The player to win. 
DEFINE EXAMPLE: ("ReachWin" (sites Top) P1)
DEFINE: BlockWin
DEFINE JAVADOC: If the next player has no legal moves, the mover is winning. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("BlockWin")
DEFINE: DrawIfNoMoves
DEFINE JAVADOC: Checks if a player has no legal moves and the game ends in a draw. #1 = The Player with no moves. 
DEFINE EXAMPLE: ("DrawIfNoMoves" Next)
DEFINE: ForEachNonMoverNoMovesLoss
DEFINE JAVADOC: Makes a player losing when this player has no moves. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("ForEachNonMoverNoMovesLoss")
DEFINE: ForEachPlayerNoMovesLoss
DEFINE JAVADOC: Makes a player losing when this player has no moves. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("ForEachPlayerNoMovesLoss")
DEFINE: ForEachPlayerNoPiecesLoss
DEFINE JAVADOC: Makes a player losing when this player has no pieces. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("ForEachPlayerNoPiecesLoss")
DEFINE: Line3Win
DEFINE JAVADOC: If the mover has 3 pieces aligned, the mover is winning. This ludemeplex can be used only in an ending condition. #1 = Directions of the line (by default Adjacent) or role type of the owner of the pieces making the line. 
DEFINE EXAMPLE: ("Line3Win")
DEFINE: MisereBlockWin
DEFINE JAVADOC: If the mover has no legal moves, the mover is winning. This ludemeplex can be used only in an ending condition. 
DEFINE EXAMPLE: ("MisereBlockWin")
DEFINE: NoMoves
DEFINE JAVADOC: Checks if the next player has no legal moves and apply a specific result to the next player. This ludemeplex can be used only in an ending condition. #1 = The result to apply. 
DEFINE EXAMPLE: ("NoMoves" Loss)
DEFINE: SingleGroupWin
DEFINE JAVADOC: Checks if only one single group with pieces owned by a player exists. This ludemeplex can be used only in an ending condition. #1 = The owner of the pieces in the group. #2 = The direction used to connect the pieces in the group (by default Adjacent). 
DEFINE EXAMPLE: ("SingleGroupWin" Mover)
DEFINE: PhaseMovePiece
DEFINE JAVADOC: Defines a phase to move each piece according to the move ludeme associated with each piece. #1 = The name of the phase. #2 = Optional ending condition applied only in this phase. 
DEFINE EXAMPLE: ("PhaseMovePiece" "Movement")
DEFINE: CustodialCapture
DEFINE JAVADOC: Defines a custodial capture in all the directions specified (by default Adjacent) to capture an enemy piece. The enemy piece is removed. #1 = Directions of the capture. #2 = Constraints related to the number of pieces to capture. #3 = The consequences. 
DEFINE EXAMPLE: ("CustodialCapture")
DEFINE: CustodialCapturePieceType
DEFINE JAVADOC: Defines a custodial capture in all the directions specified (by default Adjacent) to capture a specific piece type owned by the next player. The piece is removed. #1 = The name of the piece type. #2 = Directions of the capture. #3 = Constraints related to the number of pieces to capture. #4 = The consequences. 
DEFINE EXAMPLE: ("CustodialCapturePieceType" "Jarl")
DEFINE: EncloseCapture
DEFINE JAVADOC: Defines a enclose capture by all the directions specified (by default Adjacent). The enemy pieces are removed. #1 = Directions of the capture. #2 = The consequences. 
DEFINE EXAMPLE: ("EncloseCapture")
DEFINE: HittingCapture
DEFINE JAVADOC: Defines the capture of an enemy piece returning to a site. This ludemeplex can be used only as an effect. 
DEFINE EXAMPLE: ("HittingCapture" (handSite (who at:(to))))
DEFINE: HittingStackCapture
DEFINE JAVADOC: Defines the capture of a stack with an enemy piece at the top returning to a site. This ludemeplex can be used only as an effect. 
DEFINE EXAMPLE: ("HittingStackCapture" (handSite (who at:(to) level:(level))))
DEFINE: InterveneCapture
DEFINE JAVADOC: Defines an intervene capture in all the directions specified (by default Adjacent). The enemy piece is removed. #1 = Directions of the capture. #2 = The consequences. 
DEFINE EXAMPLE: ("InterveneCapture")
DEFINE: SurroundCapture
DEFINE JAVADOC: Defines a surround capture in all the directions specified (by default Adjacent). The enemy piece is removed. #1 = Directions of the capture. #2 = Constraints related to the number of pieces to capture. #3 = The consequences. 
DEFINE EXAMPLE: ("SurroundCapture")
DEFINE: ReplayIfCanMove
DEFINE JAVADOC: Move again if the player can do the move specified. #1 = The moves. #2 = The movement to allow if the piece did not reach the region (Optional). 
DEFINE EXAMPLE: ("ReplayIfCanMove" (forEach Piece))
DEFINE: ReplayIfLine3
DEFINE JAVADOC: Move again if the last `to' position just made a line of 3. #1 = The directions of the line (by default adjacent). #1 = If true, then lines cannot exceed minimum length (by default false). 
DEFINE EXAMPLE: ("ReplayIfLine3")
DEFINE: ReplayInMovingOn
DEFINE JAVADOC: Move again if the last `to' position is on a specified region. #1 = The region. 
DEFINE EXAMPLE: ("ReplayInMovingOn" (sites Top))
DEFINE: ReplayNotAllDiceUsed
DEFINE JAVADOC: Move again if all the dice are not used when using the ludeme (forEach Die ...). 
DEFINE EXAMPLE: ("ReplayNotAllDiceUsed")
DEFINE: RollEachNewTurnMove
DEFINE JAVADOC: Roll dice at each new turn before to compute the legal moves. #1 = The legal moves. #2 = The consequences. 
DEFINE EXAMPLE: ("RollEachNewTurnMove" (forEach Piece))
DEFINE: RollMove
DEFINE JAVADOC: Roll dice before to compute the legal moves. #1 = The legal moves. #2 = The consequences. 
DEFINE EXAMPLE: ("RollMove" (forEach Piece))
DEFINE: MoveToEmptyOrOccupiedByLargerPiece
DEFINE JAVADOC: Defines a move from a region to any empty sites or sites occupied by a larger pieces on the board. This ludemeplex involves stacks and the size of the piece are related to the indexes of the pieces (in the hypothesis that each player has the same number of pieces). Some graphic metadata will be needed to scale the pieces according to this. #1 = The from region. #2 = A condition on the from location (optional). 
DEFINE EXAMPLE: ("MoveToEmptyOrOccupiedByLargerPiece" (sites Hand Mover))
DEFINE: HopAllPiecesToEmpty
DEFINE JAVADOC: Defines a hop move in all the directions specified (by default Adjacent) over any occupied site to an empty site. #1 = The from site. #2 = Directions of the hop. #3 = The range of the hop. #4 = The consequences. 
DEFINE EXAMPLE: ("HopAllPiecesToEmpty")
DEFINE: HopCapture
DEFINE JAVADOC: Defines a hop move in all the directions specified (by default Adjacent) over an enemy to an empty site. The enemy piece is removed. #1 = The from site. #2 = Directions of the hop. #3 = The consequences. 
DEFINE EXAMPLE: ("HopCapture")
DEFINE: HopCaptureDistance
DEFINE JAVADOC: Defines a hop move in all the directions specified (by default Adjacent) over an enemy to an empty site at any distance. The enemy piece is removed. #1 = The from site. #2 = Directions of the hop. #3 = The range of pieces you can hop (by default 1). #4 = The consequences. 
DEFINE EXAMPLE: ("HopCaptureDistance" (from (last To)) Diagonal)
DEFINE: HopCaptureDistanceNotAlreadyHopped
DEFINE JAVADOC: Defines a hop move in the specified directions over an enemy to an empty site at any distance. The enemy pieces are removed and you can not hop a piece you already hopped during your turn. #1 = The from site. #2 = The directions. #2 = The consequences. 
DEFINE EXAMPLE: ("HopCaptureDistanceNotAlreadyHopped")
DEFINE: HopDiagonalCapture
DEFINE JAVADOC: Defines a hop move in all the diagonal directions over an enemy to an empty site. The enemy piece is removed. 
DEFINE EXAMPLE: ("HopDiagonalCapture")
DEFINE: HopDiagonalSequenceCapture
DEFINE JAVADOC: Defines a sequence of hop move in all the diagonal directions over an enemy to an empty site. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopDiagonalSequenceCapture")
DEFINE EXAMPLE: ("HopDiagonalSequenceCapture" before:(count Rows) after:(count Rows) at:EndOfTurn)
DEFINE: HopDiagonalSequenceCaptureAgain
DEFINE JAVADOC: Defines a sequence of hop move in all the diagonal directions over an enemy to an empty site from the last ``to'' location of the previous move. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopDiagonalSequenceCaptureAgain")
DEFINE EXAMPLE: ("HopDiagonalSequenceCaptureAgain" before:(count Rows) after:(count Rows) at:EndOfTurn)
DEFINE: HopFriendCapture
DEFINE JAVADOC: Defines a hop move in all the directions specified (by default Adjacent) over a friend to an empty site. The friend piece is removed. #1 = The from site. #2 = Directions of the hop. #3 = The consequences. 
DEFINE EXAMPLE: ("HopFriendCapture")
DEFINE: HopInternationalDraughtsStyle
DEFINE JAVADOC: Defines a hop move in diagonal over an enemy to an empty site. The enemy pieces are removed at the end of the turn and you can not hop a piece you already hopped during your turn. #1 = The from site. #2 = The consequences. 
DEFINE EXAMPLE: ("HopInternationalDraughtsStyle")
DEFINE: HopOnlyCounters
DEFINE JAVADOC: Defines a hop move in the specified directions (by default Adjacent) over an enemy counter to an empty site. The enemy counter is removed. #1 = The from site. #2 = The direction of the hop. #3 = The consequences. 
DEFINE EXAMPLE: ("HopOnlyCounters" (from (last To)) (directions {FR FL}))
DEFINE: HopOrthogonalCapture
DEFINE JAVADOC: Defines a hop move in all the orthogonal directions over an enemy to an empty site. The enemy piece is removed. 
DEFINE EXAMPLE: ("HopOrthogonalCapture")
DEFINE: HopOrthogonalSequenceCapture
DEFINE JAVADOC: Defines a sequence of hop move in all the orthogonal directions over an enemy to an empty site. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopOrthogonalSequenceCapture")
DEFINE EXAMPLE: ("HopOrthogonalSequenceCapture" before:(count Rows) after:(count Rows) at:EndOfTurn)
DEFINE: HopOrthogonalSequenceCaptureAgain
DEFINE JAVADOC: Defines a sequence of hop move in all the orthogonal directions over an enemy to an empty site from the last ``to'' location of the previous move. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopOrthogonalSequenceCaptureAgain")
DEFINE EXAMPLE: ("HopOrthogonalSequenceCaptureAgain" before:(count Rows) after:(count Rows) at:EndOfTurn)
DEFINE: HopRotationalCapture
DEFINE JAVADOC: Defines a hop move in all the rotational directions over an enemy to an empty site. The enemy piece is removed. 
DEFINE EXAMPLE: ("HopRotationalCapture")
DEFINE: HopRotationalSequenceCapture
DEFINE JAVADOC: Defines a sequence of hop move in all the rotational directions over an enemy to an empty site. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopRotationalSequenceCapture")
DEFINE: HopRotationalSequenceCaptureAgain
DEFINE JAVADOC: Defines a sequence of hop move in all the rotational directions over an enemy to an empty site from the last ``to'' location of the previous move. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopRotationalSequenceCaptureAgain")
DEFINE: HopSequenceCapture
DEFINE JAVADOC: Defines a sequence of hop move in all the adjacent directions over an enemy to an empty site. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopSequenceCapture")
DEFINE EXAMPLE: ("HopSequenceCapture" before:(count Rows) after:(count Rows) at:EndOfTurn)
DEFINE: HopSequenceCaptureAgain
DEFINE JAVADOC: Defines a sequence of hop move in all the adjacent directions over an enemy to an empty site from the last ``to'' location of the previous move. The enemy pieces are removed. #1 = Maximum distance before the hop [0]. #2 = Maximum distance after the hop [0]. #3 = When to perform the capture (immediately or at the end of the turn) [immediately]. 
DEFINE EXAMPLE: ("HopSequenceCaptureAgain")
DEFINE EXAMPLE: ("HopSequenceCaptureAgain" before:(count Rows) after:(count Rows) at:EndOfTurn)
DEFINE: HopStackEnemyCaptureTop
DEFINE JAVADOC: Defines a hop move in all the directions specified (by default Adjacent) over a stack with on top an enemy to an empty site. The enemy piece is moved to the top of the jumping stack. #1 = The from site. #2 = Directions of the hop. #3 = The consequences. 
DEFINE EXAMPLE: ("HopStackEnemyCaptureTop")
DEFINE: HopStackEnemyCaptureTopDistance
DEFINE JAVADOC: Defines a hop move in all the directions specified (by default Adjacent) over a stack with on top an enemy to an empty site at any distance. The enemy piece is moved to the top of the jumping stack. #1 = The from site. #2 = Directions of the hop. #3 = The consequences. 
DEFINE EXAMPLE: ("HopStackEnemyCaptureTopDistance")
DEFINE: LeapCapture
DEFINE JAVADOC: Defines a leap move to empty or enemy sites. The enemy pieces are removed. #1 = The walk. #2 = Consequences of the capture effect. #3 = The consequences. 
DEFINE EXAMPLE: ("LeapCapture" "KnightWalk")
DEFINE: LeapToEmpty
DEFINE JAVADOC: Defines a leap move to an empty site. #1 = The walk. #2 = The consequences. 
DEFINE EXAMPLE: ("LeapToEmpty" "KnightWalk")
DEFINE: PromoteIfReach
DEFINE JAVADOC: Promote the last piece moving if this piece reached a region. #1 = The region. #2 = The name of the piece to promote to. #3 = The movement to allow if the piece did not reach the region (Optional). 
DEFINE EXAMPLE: ("PromoteIfReach" (sites Next) "DoubleCounter")
DEFINE: RemoveAnyEnemyPiece
DEFINE JAVADOC: Allows to remove one piece of the enemy player. #1 = The consequences. 
DEFINE EXAMPLE: ("RemoveAnyEnemyPiece")
DEFINE: RemoveAnyEnemyPieceNotInLine3
DEFINE JAVADOC: Allows to remove one piece of the enemy player which is not in a line 3. #1 = The directions of the line (by default adjacent). 
DEFINE EXAMPLE: ("RemoveAnyEnemyPieceNotInLine3")
DEFINE: DoubleStepForwardToEmpty
DEFINE JAVADOC: Defines a forward slide move to empty sites at distance 2. #1 = The consequences of the moves. 
DEFINE EXAMPLE: ("DoubleStepForwardToEmpty")
DEFINE: SlideCapture
DEFINE JAVADOC: Defines a slide move to capture an enemy piece. #1 = Directions of the slide. #2 = Between conditions to specify (by default sliding on empty sites). #3 = Consequences of the capture effect. #4 = The consequences of the moves. 
DEFINE EXAMPLE: ("SlideCapture" Orthogonal)
DEFINE: StepBackwardToEmpty
DEFINE JAVADOC: Defines a step move to the backward direction according to the facing direction of the piece in the 'from' location to an empty site. 
DEFINE EXAMPLE: ("StepBackwardToEmpty")
DEFINE: StepDiagonalToEmpty
DEFINE JAVADOC: Defines a step move to all the diagonal directions to an empty site. 
DEFINE EXAMPLE: ("StepDiagonalToEmpty")
DEFINE: StepForwardsToEmpty
DEFINE JAVADOC: Defines a step move to all the forwards directions according to the facing direction of the piece in the ``from'' location to an empty site. 
DEFINE EXAMPLE: ("StepForwardsToEmpty")
DEFINE: StepForwardToEmpty
DEFINE JAVADOC: Defines a step move to the forward direction according to the facing direction of the piece in the 'from' location to an empty site. 
DEFINE EXAMPLE: ("StepForwardToEmpty")
DEFINE: StepOrthogonalToEmpty
DEFINE JAVADOC: Defines a step move to all the orthogonal directions to an empty site. 
DEFINE EXAMPLE: ("StepOrthogonalToEmpty")
DEFINE: StepRotationalToEmpty
DEFINE JAVADOC: Defines a step move to all the rotational directions to an empty site. 
DEFINE EXAMPLE: ("StepRotationalToEmpty")
DEFINE: StepStackToEmpty
DEFINE JAVADOC: Defines a step move of a full stack to all the directions specified (adjacent by default) to an empty site. #1 = The direction(s) to step. #2 = The consequences. 
DEFINE EXAMPLE: ("StepStackToEmpty")
DEFINE: StepToEmpty
DEFINE JAVADOC: Defines a step move to all the directions specified (adjacent by default) to an empty site. #1 = The direction(s) to step. #2 = The consequences. 
DEFINE EXAMPLE: ("StepToEmpty")
DEFINE: StepToEnemy
DEFINE JAVADOC: Defines a step move to all the directions specified (adjacent by default) to a site occupied by an enemy piece. The enemy piece is removed. #1 = The direction(s) to step. #2 = The consequences. 
DEFINE EXAMPLE: ("StepToEnemy")
DEFINE: StepToNotFriend
DEFINE JAVADOC: Defines a step move to all the directions specified (adjacent by default) to a site occupied by an enemy piece or an empty site. The enemy piece is removed. #1 = The direction(s) to step. #2 = The consequences. 
DEFINE EXAMPLE: ("StepToNotFriend")
DEFINE: BeforeAfterCentreSetup
DEFINE JAVADOC: Defines starting rules placing one piece on each site before and after the centre (e.g. Starting rules of Zamma). #1 = The name of the piece of P1. #2 = The name of the piece of P2. 
DEFINE EXAMPLE: ("BeforeAfterCentreSetup" "Marker1" "Marker2")
DEFINE: BlackCellsSetup
DEFINE JAVADOC: Defines starting rules placing one counter on each black cell of a square board (e.g. Starting rules of Draughts). #1 = The number of rows to place pieces for each player. 
DEFINE EXAMPLE: ("BlackCellsSetup" 3)
DEFINE: BottomTopSetup
DEFINE JAVADOC: Defines starting rules placing one piece on each cell of the bottom and the top rows of the board (e.g. Starting rules of Breakthrough). #1 = The number of rows to place pieces for each player. #2 = The name of the piece of P1. #3 = The name of the piece of P2. 
DEFINE EXAMPLE: ("BottomTopSetup" 3 "Counter1" "Counter2")
DEFINE: WhiteCellsSetup
DEFINE JAVADOC: Defines starting rules placing one counter on each white cell of a square board (e.g. Starting rules of Draughts). #1 = The number of rows to place pieces for each player. 
DEFINE EXAMPLE: ("WhiteCellsSetup" 3)
DEFINE: DominoWalk
DEFINE JAVADOC: Defines a graphics turtle walk to build a domino as a large piece. 
DEFINE EXAMPLE: ("DominoWalk")
DEFINE: GiraffeWalk
DEFINE JAVADOC: Defines a graphics turtle walk to get the locations where can move a Chess giraffe. 
DEFINE EXAMPLE: ("GiraffeWalk")
DEFINE: KnightWalk
DEFINE JAVADOC: Defines a graphics turtle walk to get the locations where can move a Chess knight. 
DEFINE EXAMPLE: ("KnightWalk")
DEFINE: LWalk
DEFINE JAVADOC: Defines a graphics turtle walk to build a large L piece. 
DEFINE EXAMPLE: ("LWalk")
DEFINE: TWalk
DEFINE JAVADOC: Defines a graphics turtle walk to build a large T piece. 
DEFINE EXAMPLE: ("TWalk")
