Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abandon(AbandonReason, PlayerType) - Method in class net.royalur.Game
-
Marks that the game was abandoned due to
reason
. - ABANDONED_REASON_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the reason that a game was abandoned.
- AbandonedGameState - Class in net.royalur.rules.state
-
A game state that represents a game being abandoned.
- AbandonedGameState(Board, PlayerState, PlayerState, long, AbandonReason, PlayerType) - Constructor for class net.royalur.rules.state.AbandonedGameState
-
Instantiates a game state representing a game being abandoned.
- AbandonReason - Enum Class in net.royalur.model
-
The reason that a game was abandoned before it was finished.
- ActionGameState - Class in net.royalur.rules.state
-
A game state that is included in the middle of a game to record an action that was taken, but that is not a valid state to be in.
- ActionGameState(Board, PlayerState, PlayerState, long, PlayerType) - Constructor for class net.royalur.rules.state.ActionGameState
-
Instantiates a game state for an ongoing point in a game.
- add(int) - Method in class net.royalur.lut.store.OrderedUInt32Buffer
- add(int) - Method in class net.royalur.lut.store.OrderedUInt32BufferSet
- add(int) - Method in class net.royalur.rules.simple.fast.FastSimpleMoveList
- addMetadata(String, JsonNode) - Method in class net.royalur.lut.LutMetadata
- addMetadata(String, String) - Method in class net.royalur.lut.LutMetadata
- addState(GameState) - Method in class net.royalur.Game
-
Adds the state
state
to this game. - addStates(Iterable<GameState>) - Method in class net.royalur.Game
-
Adds all states from
states
to this game. - Agent - Interface in net.royalur.agent
-
An agent that can autonomously play the Royal Game of Ur.
- appendDiceRoll(RuleSet, StringBuilder, RolledGameState) - Method in class net.royalur.notation.RGN
-
Encodes the dice roll from
rolledState
intobuilder
. - appendMove(RuleSet, StringBuilder, Move) - Method in class net.royalur.notation.RGN
-
Encodes the move from
movedState
intobuilder
. - appendMove(RuleSet, StringBuilder, Move, boolean) - Method in class net.royalur.notation.RGN
-
Encodes the move from
movedState
intobuilder
. - apply(Board) - Method in class net.royalur.model.Move
-
Apply this move to update the board
board
. - applyAbandon(GameState, long, AbandonReason, PlayerType) - Method in class net.royalur.rules.RuleSet
-
Applies an abandonment of the game due to
reason
. - applyMove(int) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- applyMove(WaitingForMoveGameState, long, Move) - Method in class net.royalur.rules.RuleSet
-
Applies
move
tostate
to generate the new state of the game. - applyMove(WaitingForMoveGameState, long, Move) - Method in class net.royalur.rules.simple.SimpleRuleSet
- applyPieceCaptured(PlayerState, Piece) - Method in interface net.royalur.rules.PlayerStateProvider
-
Generates a new player state that is a copy of
playerState
, with the given piece captured. - applyPieceCaptured(PlayerState, Piece) - Method in class net.royalur.rules.simple.SimplePlayerStateProvider
- applyPieceIntroduced(PlayerState, Piece) - Method in interface net.royalur.rules.PlayerStateProvider
-
Generates a new player state that is a copy of
playerState
, with the given piece introduced to the board. - applyPieceIntroduced(PlayerState, Piece) - Method in class net.royalur.rules.simple.SimplePlayerStateProvider
- applyPieceScored(PlayerState, Piece) - Method in interface net.royalur.rules.PlayerStateProvider
-
Generates a new player state that is a copy of
playerState
, with the given piece scored. - applyPieceScored(PlayerState, Piece) - Method in class net.royalur.rules.simple.SimplePlayerStateProvider
- applyResign(GameState, long, PlayerType) - Method in class net.royalur.rules.RuleSet
-
Applies a resignation by
player
to generate the new state of the game. - applyRoll(int, FastSimpleMoveList) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- applyRoll(WaitingForRollGameState, long, Roll) - Method in class net.royalur.rules.RuleSet
-
Applies
roll
tostate
to generate the new state of the game. - applyRoll(WaitingForRollGameState, long, Roll) - Method in class net.royalur.rules.simple.SimpleRuleSet
- areRosettesSafe - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- areRosettesSafe() - Method in class net.royalur.model.GameSettings
-
Gets whether pieces on rosette tiles are safe from capture.
- areRosettesSafe() - Method in class net.royalur.rules.RuleSet
-
Gets whether rosettes are considered safe squares in this rule set.
- areRosettesSafe() - Method in class net.royalur.rules.simple.SimpleRuleSet
- aseb() - Method in class net.royalur.GameBuilder
-
Creates a new builder that allows the construction of games following the Aseb rules.
- ASEB - Enum constant in enum class net.royalur.model.path.PathType
-
The standard path used for Aseb.
- ASEB - Enum constant in enum class net.royalur.model.shape.BoardType
-
The Aseb board shape.
- ASEB - Static variable in class net.royalur.model.GameSettings
-
The settings used for Aseb.
- AsebBoardShape - Class in net.royalur.model.shape
-
The shape of the board used for the game Aseb:
xxxx xxxxxxxxxxxx xxxx
- AsebBoardShape() - Constructor for class net.royalur.model.shape.AsebBoardShape
-
Instantiates the board shape used for Aseb.
- AsebPathPair - Class in net.royalur.model.path
-
The standard paths that are used for Aseb.
- AsebPathPair() - Constructor for class net.royalur.model.path.AsebPathPair
-
Instantiates the standard paths for the light and dark player in Aseb.
- AVAILABLE_MOVES_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the moves that are available in a state.
B
- BadAgent - Class in net.royalur.agent
-
An agent that prioritises moving the least advanced piece, and avoids introducing pieces, moving on to rosettes, or capturing.
- BadAgent() - Constructor for class net.royalur.agent.BadAgent
- BaseAgent - Class in net.royalur.agent
-
An agent that can autonomously play the Royal Game of Ur.
- BaseAgent() - Constructor for class net.royalur.agent.BaseAgent
- BELL - Enum constant in enum class net.royalur.model.path.PathType
-
The path proposed by Bell for the Royal Game of Ur.
- BellPathPair - Class in net.royalur.model.path
-
The paths proposed by Bell for the Royal Game of Ur.
- BellPathPair() - Constructor for class net.royalur.model.path.BellPathPair
-
Instantiates Bell's paths for the light and dark player.
- BetterGreedyAgent - Class in net.royalur.agent
-
An agent that prioritises capturing, followed by moving on to rosettes, and that prioritises moving the most advanced piece.
- BetterGreedyAgent() - Constructor for class net.royalur.agent.BetterGreedyAgent
- BinaryDice - Class in net.royalur.model.dice
-
Rolls a number of binary die and counts the result.
- BinaryDice(String, RandomGenerator, int) - Constructor for class net.royalur.model.dice.BinaryDice
-
Instantiates this binary dice with
random
as the source of randomness to generate rolls. - BinaryDice0AsMax - Class in net.royalur.model.dice
-
A set of binary dice where a roll of zero actually represents the highest roll possible, rather than the lowest.
- BinaryDice0AsMax(String, RandomGenerator, int) - Constructor for class net.royalur.model.dice.BinaryDice0AsMax
-
Instantiates this binary dice with
random
as the source of randomness to generate rolls. - BLITZ - Static variable in class net.royalur.model.GameSettings
-
The settings used for Blitz.
- board - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- Board - Class in net.royalur.model
-
Stores the placement of pieces on the tiles of a Royal Game of Ur board.
- Board(Board) - Constructor for class net.royalur.model.Board
-
Instantiates a board with the same shape and pieces as
template
. - Board(BoardShape) - Constructor for class net.royalur.model.Board
-
Instantiates an empty board with the shape
shape
. - BOARD_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the state of the board.
- BOARD_PIECES_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the pieces on a board.
- BOARD_SHAPE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the game setting of the board shape used.
- BOARD_TILES - Static variable in class net.royalur.model.shape.AsebBoardShape
-
The set of all tiles that exist on the board.
- BOARD_TILES - Static variable in class net.royalur.model.shape.StandardBoardShape
-
The set of all tiles that exist on the standard board.
- boardBits - Variable in class net.royalur.lut.SimpleGameStateEncoding
- boardIndexCount - Variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- boardShape - Variable in class net.royalur.rules.RuleSet
-
The shape of the game board.
- boardShape(BoardShape) - Method in class net.royalur.GameBuilder
-
Copies this game builder with the shape of the board set to
boardShape
. - boardShape(BoardType) - Method in class net.royalur.GameBuilder
-
Copies this game builder with the shape of the board set to
boardType
. - BoardShape - Class in net.royalur.model.shape
-
A type of board shape available for the Royal Game of Ur.
- BoardShape(String, Set<Tile>, Set<Tile>) - Constructor for class net.royalur.model.shape.BoardShape
-
Instantiates a board shape with
tiles
representing the tiles on the board. - BoardShapeFactory - Interface in net.royalur.model.shape
-
A factory that creates a board shape.
- BoardType - Enum Class in net.royalur.model.shape
-
The type of board to use in a game.
- build() - Method in class net.royalur.GameBuilder
-
Generates a new game using the rules set in this builder.
- builder() - Static method in class net.royalur.Game
-
Creates a builder to assist in constructing games with custom settings.
- buildRules() - Method in class net.royalur.GameBuilder
-
Generates a rule set to match the settings in this builder.
C
- calcLowerKey(long) - Static method in interface net.royalur.lut.GameStateEncoding
-
Gets the lower 32 bits of the given key.
- calcTileIndex(int, int) - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- calculateDepths(File) - Method in class net.royalur.LutVisualisation
- calcUpperKey(long) - Static method in interface net.royalur.lut.GameStateEncoding
-
Gets the upper 32 bits of the given key.
- CAPTURES_GRANT_EXTRA_ROLLS_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the game setting of whether rosettes grant extra rolls.
- capturesGrantExtraRoll - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- capturesGrantExtraRolls(boolean) - Method in class net.royalur.GameBuilder
-
Copies this game builder with capturing pieces granting extra dice rolls if
capturesGrantExtraRolls
is true. - checkedToArray(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToBool(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToChar(String, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToDouble(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToFloat(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToInt(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToLong(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToNumber(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToObject(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- checkedToString(JsonNode, String) - Static method in class net.royalur.notation.JsonHelper
- ChunkedWriter - Interface in net.royalur.lut.store
- clear() - Method in class net.royalur.model.Board
-
Removes all pieces from this board.
- clear() - Method in class net.royalur.model.GameMetadata
-
Removes all metadata.
- clear() - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- clear() - Method in class net.royalur.rules.simple.fast.FastSimpleMoveList
- compress() - Method in class net.royalur.lut.store.OrderedUInt32Buffer
- compute(double[]) - Static method in enum class net.royalur.stats.SummaryStat
-
Computes all summary statistics for the measurements in
measurements
. - contains(Tile) - Method in class net.royalur.model.Board
-
Determines whether
tile
falls within the bounds of this board. - contains(Tile) - Method in class net.royalur.model.shape.BoardShape
-
Determines whether
tile
falls within this board shape. - contains(Tile) - Method in class net.royalur.model.shape.StandardBoardShape
- containsAll(Collection<Tile>) - Method in class net.royalur.model.shape.BoardShape
-
Determines whether all tiles in
tiles
are included in this board shape. - containsIndices(int, int) - Method in class net.royalur.model.Board
-
Determines whether the tile at the indices (
ix
,iy
), 0-based, falls within the bounds of this board. - containsIndices(int, int) - Method in class net.royalur.model.shape.BoardShape
-
Determines whether the tile at indices (
ix
,iy
), 0-based, falls within the bounds of this shape of board. - containsIndices(int, int) - Method in class net.royalur.model.shape.StandardBoardShape
- CONTROL_PLAYER_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the player that abandoned the game.
- ControlGameState - Class in net.royalur.rules.state
-
A game state that records a control action that was made.
- ControlGameState(Board, PlayerState, PlayerState, long) - Constructor for class net.royalur.rules.state.ControlGameState
-
Instantiates a game state for a control action.
- ControlGameState(Board, PlayerState, PlayerState, long, PlayerType) - Constructor for class net.royalur.rules.state.ControlGameState
-
Instantiates a game state for a control action.
- copy() - Method in class net.royalur.Game
-
Generates a copy of this game.
- copy() - Method in class net.royalur.model.Board
-
Creates an exact copy of this board.
- copy() - Method in class net.royalur.model.GameMetadata
-
Creates a copy of this metadata.
- copyFrom(Game) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- copyFrom(Board) - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- copyFrom(Dice) - Method in class net.royalur.model.dice.Dice
-
Copies the state of
other
into this dice. - copyFrom(PlayerState) - Method in class net.royalur.rules.simple.fast.FastSimplePlayer
- copyFrom(FastSimpleBoard) - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- copyFrom(FastSimpleGame) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- copyFrom(FastSimplePlayer) - Method in class net.royalur.rules.simple.fast.FastSimplePlayer
- copyFrom(GameState) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- copyValuesToFloat32() - Method in class net.royalur.lut.Lut
- countPieces(PlayerType) - Method in class net.royalur.model.Board
-
Counts the number of pieces that are on the board for
player
. - countStates() - Method in class net.royalur.rules.simple.fast.FastSimpleFlags
- countStates(Function<FastSimpleGame, Boolean>) - Method in class net.royalur.rules.simple.fast.FastSimpleFlags
- create(GameSettings) - Static method in class net.royalur.Game
-
Creates a simple game with custom settings.
- create(GameSettings, GameMetadata) - Method in interface net.royalur.rules.RuleSetProvider
-
Creates a rule set to match the given settings and game metadata.
- create(GameSettings, GameMetadata) - Method in class net.royalur.rules.simple.SimpleRuleSetProvider
- create(PlayerType, int) - Method in interface net.royalur.rules.PieceProvider
-
Generate a piece on the board.
- create(PlayerType, int) - Method in class net.royalur.rules.simple.SimplePieceProvider
- create(PlayerType, int, int) - Method in interface net.royalur.rules.PlayerStateProvider
-
Generates a state for the
player
player. - create(PlayerType, int, int) - Method in class net.royalur.rules.simple.SimplePlayerStateProvider
- createAbandonedState(RuleSet, long, AbandonReason, PlayerType) - Method in class net.royalur.notation.DerivedStateSource
- createAbandonedState(RuleSet, long, AbandonReason, PlayerType) - Method in class net.royalur.notation.FullStateSource
- createAbandonedState(RuleSet, long, AbandonReason, PlayerType) - Method in class net.royalur.notation.StateSource
- createAseb() - Static method in class net.royalur.Game
-
Creates a game of Aseb.
- createBoardShape() - Method in interface net.royalur.model.shape.BoardShapeFactory
-
Create an instance of the board shape.
- createBoardShape() - Method in enum class net.royalur.model.shape.BoardType
-
Create an instance of the board shape.
- createBuffer(int) - Method in enum class net.royalur.lut.buffer.ValueType
- createCompatibleFastGame() - Method in class net.royalur.rules.simple.SimpleRuleSet
- createDice() - Method in interface net.royalur.model.dice.DiceFactory
-
Create an instance of the dice using a default source of randomness.
- createDice() - Method in enum class net.royalur.model.dice.DiceType
- createDice(RandomGenerator) - Method in enum class net.royalur.model.dice.DiceType
-
Creates a set of these dice using
random
as its source of randomness. - createEndState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.DerivedStateSource
- createEndState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.FullStateSource
- createEndState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.StateSource
- createFactory(Supplier<RandomGenerator>) - Method in enum class net.royalur.model.dice.DiceType
-
Creates a factory that produces dice using
randomProvider
to generate the source of randomness for each dice that is produced. - createFinkel() - Static method in class net.royalur.Game
-
Creates a game that follows the rules proposed by Irving Finkel.
- createIntBuffer(int) - Method in enum class net.royalur.lut.buffer.ValueType
- createIntroduced(PlayerType, int) - Method in interface net.royalur.rules.PieceProvider
-
Generates a new piece to be introduced to the board.
- createIntroduced(PlayerType, int) - Method in class net.royalur.rules.simple.SimplePieceProvider
- createList(int...) - Static method in class net.royalur.model.Tile
-
Constructs a list of tiles from the tile coordinates.
- createMasters() - Static method in class net.royalur.Game
-
Creates a game that follows the rules proposed by James Masters.
- createMoved(Piece, int) - Method in interface net.royalur.rules.PieceProvider
-
Generates a piece that has been moved from another tile on the board.
- createMoved(Piece, int) - Method in class net.royalur.rules.simple.SimplePieceProvider
- createMovedState(RuleSet, long, PlayerType, Roll, Move) - Method in class net.royalur.notation.DerivedStateSource
- createMovedState(RuleSet, long, PlayerType, Roll, Move) - Method in class net.royalur.notation.FullStateSource
- createMovedState(RuleSet, long, PlayerType, Roll, Move) - Method in class net.royalur.notation.StateSource
- createPath(int...) - Static method in class net.royalur.model.Tile
-
Constructs a path from waypoints on the board.
- createPathPair() - Method in interface net.royalur.model.path.PathPairFactory
-
Create an instance of the paths.
- createPathPair() - Method in enum class net.royalur.model.path.PathType
-
Create an instance of the paths.
- createResignedState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.DerivedStateSource
- createResignedState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.FullStateSource
- createResignedState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.StateSource
- createRoll(int) - Method in interface net.royalur.model.dice.DiceFactory
-
Generates a roll with the given value.
- createRolledState(RuleSet, long, PlayerType, Roll) - Method in class net.royalur.notation.DerivedStateSource
- createRolledState(RuleSet, long, PlayerType, Roll) - Method in class net.royalur.notation.FullStateSource
- createRolledState(RuleSet, long, PlayerType, Roll) - Method in class net.royalur.notation.StateSource
- createSimple(GameSettings) - Static method in interface net.royalur.lut.GameStateEncoding
-
Creates an encoding for a simple set of rules.
- createSimple(GameSettings) - Static method in class net.royalur.rules.RuleSet
-
Creates a simple rule set that follows the given game settings.
- createStartingAtEpochMs(long) - Static method in interface net.royalur.rules.TimeProvider
-
Creates a new time provider where the game starts at the given time.
- createStartingNow() - Static method in interface net.royalur.rules.TimeProvider
-
Creates a new time provider where the game starts now.
- createStartingState(PlayerType) - Method in interface net.royalur.rules.PlayerStateProvider
-
Generates the starting state for the
player
player. - createStartingState(PlayerType) - Method in class net.royalur.rules.simple.SimplePlayerStateProvider
- createUntimed() - Static method in interface net.royalur.rules.TimeProvider
-
Creates a new time provider where the game is not timed.
- createUntimed(RuleSet) - Static method in class net.royalur.Game
-
Instantiates a new game of the Royal Game of Ur that is untimed.
- createWaitingForMoveState(RuleSet, long, PlayerType, Roll) - Method in class net.royalur.notation.DerivedStateSource
- createWaitingForMoveState(RuleSet, long, PlayerType, Roll) - Method in class net.royalur.notation.FullStateSource
- createWaitingForMoveState(RuleSet, long, PlayerType, Roll) - Method in class net.royalur.notation.StateSource
- createWaitingForRollState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.DerivedStateSource
- createWaitingForRollState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.FullStateSource
- createWaitingForRollState(RuleSet, long, PlayerType) - Method in class net.royalur.notation.StateSource
D
- dark - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- DARK - Enum constant in enum class net.royalur.model.PlayerType
-
The dark player.
- DARK - Enum constant in enum class net.royalur.stats.GameStatsTarget
-
The statistics of the dark player.
- DARK_PATH - Static variable in class net.royalur.model.path.AsebPathPair
-
The path of the dark player's pieces.
- DARK_PATH - Static variable in class net.royalur.model.path.BellPathPair
-
The path of the dark player's pieces.
- DARK_PATH - Static variable in class net.royalur.model.path.MastersPathPair
-
The path of the dark player's pieces.
- DARK_PATH - Static variable in class net.royalur.model.path.MurrayPathPair
-
The path of the dark player's pieces.
- DARK_PATH - Static variable in class net.royalur.model.path.SkiriukPathPair
-
The path of the dark player's pieces.
- DARK_PATH_INDEX_MASK - Static variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- DARK_PATH_INDEX_SHIFT - Static variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- darkSafeBoardIndices - Variable in class net.royalur.lut.SimpleGameStateEncoding
- DataSink - Class in net.royalur.lut.store
-
Provides an interface to write binary data.
- DataSink() - Constructor for class net.royalur.lut.store.DataSink
- DataSink.FileDataSink - Class in net.royalur.lut.store
-
Provides an interface to write binary data to a file.
- DataSource - Class in net.royalur.lut.store
-
Provides an interface to read binary data.
- DataSource() - Constructor for class net.royalur.lut.store.DataSource
- DataSource.FileDataSource - Class in net.royalur.lut.store
-
Provides an interface to write binary data to a file.
- decideMove(Game, List<Move>) - Method in interface net.royalur.agent.Agent
-
Determines the move to be executed from the current state of the game.
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.BadAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.BetterGreedyAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.DeterministicAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.FlippedLutAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.GreedyAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.LeastAdvancedGreedyAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.LikelihoodAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.LutAgent
- decideMove(Game, List<Move>) - Method in class net.royalur.agent.RandomAgent
- decode(JsonNotation, String) - Static method in class net.royalur.lut.LutMetadata
- decodeGame(String) - Method in class net.royalur.notation.JsonNotation
- decodeGame(String) - Method in interface net.royalur.notation.Notation
-
Decodes the game from the text
encoded
, based upon the rulesrules
. - decodeGame(String) - Method in class net.royalur.notation.RGN
- DEFAULT_ENTRIES_PER_BUFFER - Static variable in class net.royalur.lut.store.OrderedUInt32BufferSet
- DEFAULT_MAX_ACTION_LINE_LENGTH - Static variable in class net.royalur.notation.RGN
-
The default maximum length for lines in RGN that encode the actions taken in a game.
- DEFAULT_MAX_TURN_LINE_LENGTH - Static variable in class net.royalur.notation.RGN
-
The default maximum length of each line representing a turn in RGN.
- DerivedStateSource - Class in net.royalur.notation
-
Produces game states from previous game states using the actions that were taken in a game.
- DerivedStateSource(GameState) - Constructor for class net.royalur.notation.DerivedStateSource
- describe() - Method in class net.royalur.model.Move
-
Generates an English description of this move.
- describe() - Method in class net.royalur.rules.state.AbandonedGameState
- describe() - Method in class net.royalur.rules.state.EndGameState
- describe() - Method in class net.royalur.rules.state.GameState
-
Generates an English text description of the state of the game.
- describe() - Method in class net.royalur.rules.state.MovedGameState
- describe() - Method in class net.royalur.rules.state.ResignedGameState
- describe() - Method in class net.royalur.rules.state.RolledGameState
- describe() - Method in class net.royalur.rules.state.WaitingForMoveGameState
- describe() - Method in class net.royalur.rules.state.WaitingForRollGameState
- DeterministicAgent - Class in net.royalur.agent
-
An agent that makes deterministic move choices for testing.
- DeterministicAgent() - Constructor for class net.royalur.agent.DeterministicAgent
- dice(DiceFactory) - Method in class net.royalur.GameBuilder
-
Copies this game builder with the factory used to generate dice for games set to
diceFactory
. - Dice - Class in net.royalur.model.dice
-
A generator of dice rolls, that is _not_ necessarily thread-safe.
- Dice(String) - Constructor for class net.royalur.model.dice.Dice
-
Instantiates this dice with the given ID.
- DICE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the game settings of the dice used.
- diceFactory - Variable in class net.royalur.rules.RuleSet
-
The generator of dice that are used to generate dice rolls.
- DiceFactory - Interface in net.royalur.model.dice
-
A factory that creates dice.
- DiceType - Enum Class in net.royalur.model.dice
-
The type of dice to be used in a game.
- didLightWin() - Method in class net.royalur.stats.GameStats
-
Returns whether the light player won the game.
- didMoveCapturePiece(int) - Static method in class net.royalur.rules.simple.fast.FastSimpleGame
- didMoveGrantExtraRoll(int) - Static method in class net.royalur.rules.simple.fast.FastSimpleGame
- didMoveIntroducePiece(int) - Static method in class net.royalur.rules.simple.fast.FastSimpleGame
- didMoveScorePiece(int) - Static method in class net.royalur.rules.simple.fast.FastSimpleGame
- doCapturesGrantExtraRolls() - Method in class net.royalur.model.GameSettings
-
Gets whether capturing a piece grants the player an additional roll of the dice.
- doCapturesGrantExtraRolls() - Method in class net.royalur.rules.RuleSet
-
Gets whether capturing a piece grants an additional roll.
- doCapturesGrantExtraRolls() - Method in class net.royalur.rules.simple.SimpleRuleSet
- doRosettesGrantExtraRolls() - Method in class net.royalur.model.GameSettings
-
Gets whether landing on a rosette tile grants the player an additional roll of the dice.
- doRosettesGrantExtraRolls() - Method in class net.royalur.rules.RuleSet
-
Gets whether landing on rosette tiles grants an additional roll.
- doRosettesGrantExtraRolls() - Method in class net.royalur.rules.simple.SimpleRuleSet
E
- encode(StringBuilder) - Method in class net.royalur.model.Tile
-
Encodes the location of this tile into
builder
. - encode(JsonNotation) - Method in class net.royalur.lut.LutMetadata
- encodeDate(Instant) - Static method in class net.royalur.notation.JsonHelper
- encodeGame(Game) - Method in class net.royalur.notation.JsonNotation
- encodeGame(Game) - Method in interface net.royalur.notation.Notation
-
Encodes the given game,
game
, into text. - encodeGame(Game) - Method in class net.royalur.notation.RGN
- encodeGameState(FastSimpleGame) - Method in class net.royalur.lut.FinkelGameStateEncoding
- encodeGameState(FastSimpleGame) - Method in interface net.royalur.lut.GameStateEncoding
-
Encode the given game state to a binary key.
- encodeGameState(FastSimpleGame) - Method in class net.royalur.lut.SimpleGameStateEncoding
- encodeNullableDate(Instant) - Static method in class net.royalur.notation.JsonHelper
- encodePiece(Piece) - Method in class net.royalur.notation.JsonNotation
- encodeSymmetricalGameState(FastSimpleGame, FastSimpleGame) - Method in interface net.royalur.lut.GameStateEncoding
-
Encode the given game state to a binary key that is always encoded as the light player.
- encodeX(StringBuilder) - Method in class net.royalur.model.Tile
-
Encodes the x-coordinate as an upper-case letter, and appends it to
builder
. - encodeXLowerCase(StringBuilder) - Method in class net.royalur.model.Tile
-
Encodes the x-coordinate as a lower-case letter, and appends it to
builder
. - encodeY(StringBuilder) - Method in class net.royalur.model.Tile
-
Encodes the y-coordinate as a number, and appends it to
builder
. - END_DATETIME_KEY - Static variable in class net.royalur.model.GameMetadata
-
The key for storing when a game was finished.
- EndGameState - Class in net.royalur.rules.state
-
A game state where a player has won the game.
- EndGameState(Board, PlayerState, PlayerState, long, PlayerType) - Constructor for class net.royalur.rules.state.EndGameState
-
Instantiates a game state where a player has won the game.
- equals(Object) - Method in class net.royalur.model.Board
- equals(Object) - Method in record class net.royalur.model.dice.SimpleRoll
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class net.royalur.model.GameMetadata
- equals(Object) - Method in class net.royalur.model.GameSettings
- equals(Object) - Method in class net.royalur.model.Move
- equals(Object) - Method in class net.royalur.model.path.PathPair
- equals(Object) - Method in class net.royalur.model.Piece
- equals(Object) - Method in class net.royalur.model.PlayerState
- equals(Object) - Method in class net.royalur.model.shape.BoardShape
- equals(Object) - Method in class net.royalur.model.Tile
- equals(Object) - Method in class net.royalur.model.TimeControl
- equals(Object) - Method in class net.royalur.rules.state.AbandonedGameState
- equals(Object) - Method in class net.royalur.rules.state.ActionGameState
- equals(Object) - Method in class net.royalur.rules.state.ControlGameState
- equals(Object) - Method in class net.royalur.rules.state.EndGameState
- equals(Object) - Method in class net.royalur.rules.state.GameState
- equals(Object) - Method in class net.royalur.rules.state.MovedGameState
- equals(Object) - Method in class net.royalur.rules.state.OngoingGameState
- equals(Object) - Method in class net.royalur.rules.state.PlayableGameState
- equals(Object) - Method in class net.royalur.rules.state.ResignedGameState
- equals(Object) - Method in class net.royalur.rules.state.RolledGameState
- equals(Object) - Method in class net.royalur.rules.state.WaitingForMoveGameState
- equals(Object) - Method in class net.royalur.rules.state.WaitingForRollGameState
- escape(String) - Static method in class net.royalur.notation.RGN
-
Escapes
value
so that it can be included as a metadata value. - EXTERNAL - Enum constant in enum class net.royalur.model.AbandonReason
-
An external event caused the game to end before it finished.
F
- FastSimpleBoard - Class in net.royalur.rules.simple.fast
-
The board of a simple game that is optimised for speed.
- FastSimpleBoard(BoardShape) - Constructor for class net.royalur.rules.simple.fast.FastSimpleBoard
- FastSimpleFlags - Class in net.royalur.rules.simple.fast
-
Flags about the tiles on the board that can be accessed efficiently.
- FastSimpleFlags(GameSettings) - Constructor for class net.royalur.rules.simple.fast.FastSimpleFlags
- FastSimpleGame - Class in net.royalur.rules.simple.fast
-
A simple game that is optimised for speed.
- FastSimpleGame(GameSettings) - Constructor for class net.royalur.rules.simple.fast.FastSimpleGame
- FastSimpleMoveList - Class in net.royalur.rules.simple.fast
-
A list of moves that may be reused without allocating memory.
- FastSimpleMoveList() - Constructor for class net.royalur.rules.simple.fast.FastSimpleMoveList
- FastSimpleMoveList(int) - Constructor for class net.royalur.rules.simple.fast.FastSimpleMoveList
- FastSimplePlayer - Class in net.royalur.rules.simple.fast
- FastSimplePlayer(int[], boolean) - Constructor for class net.royalur.rules.simple.fast.FastSimplePlayer
- FileDataSink(FileChannel, ByteBuffer) - Constructor for class net.royalur.lut.store.DataSink.FileDataSink
- FileDataSource(FileChannel, ByteBuffer) - Constructor for class net.royalur.lut.store.DataSource.FileDataSource
- findAvailableMoves() - Method in class net.royalur.Game
-
Finds all moves that can be made from the current position.
- findAvailableMoves(Board, PlayerState, Roll) - Method in class net.royalur.rules.RuleSet
-
Finds all available moves from the given state.
- findAvailableMoves(Board, PlayerState, Roll) - Method in class net.royalur.rules.simple.SimpleRuleSet
- findAvailableMoves(FastSimpleMoveList) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
-
Populates
moveList
with all available moves in the current state of the game. - findMoveByPiece(Piece) - Method in class net.royalur.Game
-
Finds the move of the piece
piece
. - findMoveByTile(Tile) - Method in class net.royalur.Game
-
Finds the move of the piece on
tile
. - findMoveIntroducingPiece() - Method in class net.royalur.Game
-
Finds a move that introduces a new piece to the board.
- findMoveScoringPiece() - Method in class net.royalur.Game
-
Finds a move that scores a piece.
- finkel() - Method in class net.royalur.GameBuilder
-
Creates a new builder that allows the construction of games following the simple rules proposed by Irving Finkel.
- FINKEL - Static variable in class net.royalur.model.GameSettings
-
The rules used in the YouTube video Tom Scott vs.
- FinkelGameStateEncoding - Class in net.royalur.lut
- FinkelGameStateEncoding() - Constructor for class net.royalur.lut.FinkelGameStateEncoding
- flags - Variable in class net.royalur.lut.SimpleGameStateEncoding
- FlippedLutAgent - Class in net.royalur.agent
-
A variant of LutAgent that tries to make the worst moves possible.
- FlippedLutAgent(Lut) - Constructor for class net.royalur.agent.FlippedLutAgent
- FLOAT32 - Enum constant in enum class net.royalur.lut.buffer.ValueType
- Float32ValueBuffer - Class in net.royalur.lut.buffer
- Float32ValueBuffer(int) - Constructor for class net.royalur.lut.buffer.Float32ValueBuffer
- FLOAT64 - Enum constant in enum class net.royalur.lut.buffer.ValueType
- Float64ValueBuffer - Class in net.royalur.lut.buffer
- Float64ValueBuffer(int) - Constructor for class net.royalur.lut.buffer.Float64ValueBuffer
- FloatValueBuffer - Class in net.royalur.lut.buffer
-
Stores binary values and provides efficient methods to manipulate it.
- FloatValueBuffer(ValueType, int) - Constructor for class net.royalur.lut.buffer.FloatValueBuffer
- formatDatetime(TemporalAccessor) - Static method in class net.royalur.model.GameMetadata
- FOUR - Static variable in record class net.royalur.model.dice.SimpleRoll
-
A constant representing a roll of four.
- FOUR_BINARY - Enum constant in enum class net.royalur.model.dice.DiceType
-
Represents rolling four binary die and counting the number of ones that were rolled.
- fromIndices(int, int) - Static method in class net.royalur.model.Tile
-
Creates a new tile representing the tile at the indices (
ix
,iy
), 0-based. - fromMetadata(GameMetadata) - Static method in interface net.royalur.rules.TimeProvider
-
Creates a new time provider that takes the game start time from the given metadata.
- fromString(String) - Static method in class net.royalur.model.Tile
-
Converts text representations of the tile of the format "[letter][number]".
- fromString(String) - Static method in class net.royalur.model.TimeControl
- FullStateSource - Class in net.royalur.notation
-
Produces game states from scratch.
- FullStateSource(Board, PlayerState, PlayerState) - Constructor for class net.royalur.notation.FullStateSource
G
- Game - Class in net.royalur
-
A game of the Royal Game of Ur.
- Game(Game) - Constructor for class net.royalur.Game
-
Instantiates a game of the Royal Game of Ur that is a copy of
game
. - Game(RuleSet) - Constructor for class net.royalur.Game
-
Instantiates a game of the Royal Game of Ur that has not yet had any moves played.
- Game(RuleSet, GameMetadata, List<GameState>) - Constructor for class net.royalur.Game
-
Instantiates a game of the Royal Game of Ur.
- GameBuilder - Class in net.royalur
-
A builder to help in the creation of custom games of the Royal Game of Ur.
- GameBuilder(GameSettings, RuleSetProvider) - Constructor for class net.royalur.GameBuilder
-
Instantiates a new game builder.
- GameMetadata - Class in net.royalur.model
-
Stores the metadata of games, such as the date the game was played, the players of the game, and the game rules.
- GameMetadata() - Constructor for class net.royalur.model.GameMetadata
-
Instantiates an empty metadata for a game.
- GameMetadata(Map<String, String>) - Constructor for class net.royalur.model.GameMetadata
-
Instantiates metadata for a game of the Royal Game of Ur.
- GameSettings - Class in net.royalur.model
-
Settings for running games of the Royal Game of Ur.
- GameSettings(BoardShape, PathPair, DiceFactory, int, boolean, boolean, boolean) - Constructor for class net.royalur.model.GameSettings
-
Instantiates a new set of game settings for the Royal Game of Ur.
- GameState - Class in net.royalur.rules.state
-
A game state represents a single point within a game.
- GameState(Board, PlayerState, PlayerState, long) - Constructor for class net.royalur.rules.state.GameState
-
Instantiates a game state.
- GameStateEncoding - Interface in net.royalur.lut
-
Encodes the state of a game to a small binary key.
- GameStats - Class in net.royalur.stats
-
Statistics about a game of the Royal Game of Ur.
- GameStats(boolean, int[], int[], int[], int[], int) - Constructor for class net.royalur.stats.GameStats
-
Instantiates statistics about a game of the Royal Game of Ur.
- GameStatsSummary - Class in net.royalur.stats
-
Combined set of statistics from many games.
- GameStatsSummary(double[][], double[][], double[][], double[][], double[], double[]) - Constructor for class net.royalur.stats.GameStatsSummary
-
Instantiates a summary of the statistics from several games.
- GameStatsTarget - Enum Class in net.royalur.stats
-
A target for the accumulation of statistics for games of the Royal Game of Ur.
- gather(Game) - Static method in class net.royalur.stats.GameStats
-
Gathers statistics about the game
game
. - generateDataForShapeVisualisation(Lut, PrintStream) - Static method in class net.royalur.lut.LutCLI
- generateInitialGameState() - Method in class net.royalur.rules.RuleSet
-
Generates the initial state for a game.
- generateInitialGameState() - Method in class net.royalur.rules.simple.SimpleRuleSet
- generateRoll(int) - Method in class net.royalur.model.dice.BinaryDice
- generateRoll(int) - Method in class net.royalur.model.dice.BinaryDice0AsMax
- generateRoll(int) - Method in class net.royalur.model.dice.Dice
-
Generates a roll with value
value
using this dice. - get(int) - Method in class net.royalur.lut.store.OrderedUInt32Buffer
- get(int) - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
-
Gets a piece from the board.
- get(String) - Method in class net.royalur.model.GameMetadata
-
Get the metadata value associated with
key
, ornull
if there is no value associated with the key. - get(PlayerType) - Method in class net.royalur.model.path.PathPair
-
Gets the path of
player
, excluding the start and end tiles that exist off the board. - get(PlayerType) - Static method in enum class net.royalur.stats.GameStatsTarget
-
Retrieves the target associated with
player
. - get(Tile) - Method in class net.royalur.model.Board
-
Gets the piece on
tile
. - getAbandonedState() - Method in class net.royalur.Game
-
Gets the last control state in this game as an instance of
AbandonedGameState
. - getAbandoningPlayer() - Method in class net.royalur.Game
-
Gets the player that abandoned the game.
- getAbandonReason() - Method in class net.royalur.Game
-
Gets the reason this game was abandoned.
- getActionStates() - Method in class net.royalur.Game
-
Gets the states that represent the actions that have been made so far in the game.
- getAdditionalMetadata() - Method in class net.royalur.lut.LutMetadata
- getAll() - Method in class net.royalur.model.GameMetadata
-
Retrieves a copy of all the metadata stored.
- getAllStates() - Method in class net.royalur.notation.DerivedStateSource
- getArea() - Method in class net.royalur.model.shape.BoardShape
-
Gets the number of tiles contained in this board shape.
- getAssociatedPlayer() - Method in enum class net.royalur.stats.GameStatsTarget
-
Gets the specific player associated with this target.
- getAvailableMoves() - Method in class net.royalur.rules.state.RolledGameState
-
Gets the moves that are available from this position using the given roll.
- getAvailableMoves() - Method in class net.royalur.rules.state.WaitingForMoveGameState
-
Gets the moves that are available to be made from this position.
- getBoard() - Method in class net.royalur.Game
-
Gets the current state of the board.
- getBoard() - Method in class net.royalur.rules.state.GameState
-
Get the state of the pieces on the board.
- getBoardShape() - Method in class net.royalur.model.GameSettings
-
Gets the shape of the game board.
- getBoardShape() - Method in class net.royalur.rules.RuleSet
-
Gets the shape of the board used in this rule set.
- getBoardType() - Method in class net.royalur.model.shape.BoardShape
-
Gets the type of this board.
- getBuffer() - Method in class net.royalur.lut.store.OrderedUInt32Buffer
- getByChar(char) - Static method in enum class net.royalur.model.PlayerType
-
Finds the player associated with the given character.
- getByID(String) - Static method in enum class net.royalur.model.AbandonReason
-
Retrieves the abandon reason with .
- getByID(String) - Static method in enum class net.royalur.model.dice.DiceType
-
Get the dice type with an ID of .
- getByID(String) - Static method in enum class net.royalur.model.path.PathType
-
Get the path type with an ID of .
- getByID(String) - Static method in enum class net.royalur.model.shape.BoardType
-
Get the board type with an ID of .
- getByIDOrNull(String) - Static method in enum class net.royalur.model.dice.DiceType
-
Get the dice type with an ID of , or else
null
. - getByIDOrNull(String) - Static method in enum class net.royalur.model.path.PathType
-
Get the path type with an ID of , or else
null
. - getByIDOrNull(String) - Static method in enum class net.royalur.model.shape.BoardType
-
Get the board type with an ID of , or else
null
. - getByIndices(int, int) - Method in class net.royalur.model.Board
-
Gets the piece on the tile at the indices (
ix
,iy
), 0-based. - getByte(int) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- getByte(int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- getByte(int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- getByte(int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- getByte(int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- getByte(int) - Method in class net.royalur.lut.buffer.ValueBuffer
- getByte(int) - Method in class net.royalur.lut.store.LutMap
- getByteCount() - Method in enum class net.royalur.lut.buffer.ValueType
- getCapacity() - Method in class net.royalur.lut.buffer.ValueBuffer
- getCapturedPiece() - Method in class net.royalur.model.Move
-
Gets the piece that will be captured by this move.
- getCapturedPieceOrNull() - Method in class net.royalur.model.Move
-
Gets the piece that will be captured by this move, or null if there is no piece that will be captured.
- getChar() - Method in enum class net.royalur.model.PlayerType
-
Gets a constant character representing the player.
- getCharStr() - Method in enum class net.royalur.model.PlayerType
-
Gets a constant character representing the player.
- getDark() - Method in class net.royalur.model.path.PathPair
-
Gets the path that the dark player's pieces must take, excluding the start and end tiles that exist off the board.
- getDarkEnd() - Method in class net.royalur.model.path.PathPair
-
Gets the end tile for the dark player that exists off the board.
- getDarkPlayer() - Method in class net.royalur.Game
-
Gets the current state of the dark player.
- getDarkPlayer() - Method in class net.royalur.rules.state.GameState
-
Get the state of the dark player.
- getDarkStart() - Method in class net.royalur.model.path.PathPair
-
Gets the start tile for the dark player that exists off the board.
- getDarkWithStartEnd() - Method in class net.royalur.model.path.PathPair
-
Gets the path that the dark player's pieces must take, including the start and end tiles that exist off the board.
- getDest() - Method in class net.royalur.model.Move
-
Gets the destination tile of this move.
- getDest(PathPair) - Method in class net.royalur.model.Move
-
Gets the destination tile of this move, including off the board tiles when scoring a piece.
- getDestIndex(PathPair) - Method in class net.royalur.model.Move
-
Gets the index of the destination piece in the path.
- getDestOrNull() - Method in class net.royalur.model.Move
-
Gets the destination tile of this move, or else returns null if there is no destination piece, in the case where a piece is moved off the board.
- getDestPiece() - Method in class net.royalur.model.Move
-
Gets the destination piece of this move.
- getDestPieceOrNull() - Method in class net.royalur.model.Move
-
Gets the destination piece of this move, or null if there is no destination piece, in the case where a piece is moved off the board.
- getDice() - Method in class net.royalur.Game
-
Gets the dice to are used to make dice rolls.
- getDice() - Method in class net.royalur.model.GameSettings
-
Gets the generator of the dice that should be used to generate dice rolls.
- getDiceFactory() - Method in class net.royalur.rules.RuleSet
-
Gets the generator of dice that are used to generate dice rolls.
- getDiceType() - Method in class net.royalur.model.dice.Dice
-
Gets the type of this dice.
- getDiceType() - Method in interface net.royalur.model.dice.DiceFactory
-
Gets the type of this dice.
- getDieCount() - Method in enum class net.royalur.model.dice.DiceType
-
Gets the number of dice.
- getDouble(int) - Method in class net.royalur.lut.buffer.Float32ValueBuffer
- getDouble(int) - Method in class net.royalur.lut.buffer.Float64ValueBuffer
- getDouble(int) - Method in class net.royalur.lut.buffer.IntValueBuffer
- getDouble(int) - Method in class net.royalur.lut.buffer.Percent16ValueBuffer
- getDouble(int) - Method in class net.royalur.lut.buffer.ValueBuffer
- getDouble(int) - Method in class net.royalur.lut.store.LutMap
- getDrama(PlayerType) - Method in class net.royalur.stats.GameStats
-
Gets the number of times that
player
took the lead from behind. - getDrama(GameStatsTarget) - Method in class net.royalur.stats.GameStats
-
Gets the drama counted for the target
target
. - getDramaStatistic(GameStatsTarget, SummaryStat) - Method in class net.royalur.stats.GameStatsSummary
-
Gets the value of the summary statistic
statistic
about drama for targettarget
. - getEnd(PlayerType) - Method in class net.royalur.model.path.PathPair
-
Gets the end tile of
player
that exists off the board. - getEndState() - Method in class net.royalur.Game
-
Gets the current state of this game as an instance of
EndGameState
. - getEndTime() - Method in class net.royalur.model.GameMetadata
-
Gets the date and time when this game was finished, or
null
if no end time is included in this game's metadata. - getEntryCount() - Method in class net.royalur.lut.Lut
- getEntryCount() - Method in class net.royalur.lut.store.LutMap
- getEntryCount() - Method in class net.royalur.lut.store.OrderedUInt32Buffer
- getEntryCount() - Method in class net.royalur.lut.store.OrderedUInt32BufferSet
- getFloat(int) - Method in class net.royalur.lut.buffer.Float32ValueBuffer
- getFloat(int) - Method in class net.royalur.lut.buffer.Float64ValueBuffer
- getFloat(int) - Method in class net.royalur.lut.buffer.IntValueBuffer
- getFloat(int) - Method in class net.royalur.lut.buffer.Percent16ValueBuffer
- getFloat(int) - Method in class net.royalur.lut.buffer.ValueBuffer
- getFloat(int) - Method in class net.royalur.lut.store.LutMap
- getGameSettings() - Method in class net.royalur.lut.Lut
- getGameSettings() - Method in class net.royalur.lut.LutMetadata
- getGameStartEpochMs() - Method in class net.royalur.Game
- getGameStartEpochMs() - Method in interface net.royalur.rules.TimeProvider
-
Gets the start time of the game in milliseconds since the epoch.
- getGameStartEpochMs() - Method in class net.royalur.rules.TimeProvider.Timed
- getGameStartEpochMs() - Method in class net.royalur.rules.TimeProvider.Untimed
- getGameStartTime() - Method in interface net.royalur.rules.TimeProvider
-
Gets the start time of the game, or
null
if the start time is not recorded. - getGameStateEncoding() - Method in class net.royalur.lut.Lut
- getHeight() - Method in class net.royalur.model.Board
-
Gets the height of the board, which represents the number of y-coordinates in this board.
- getHeight() - Method in class net.royalur.model.shape.BoardShape
-
Gets the height of the board shape.
- getID() - Method in enum class net.royalur.lut.buffer.ValueType
- getID() - Method in enum class net.royalur.model.AbandonReason
-
Gets a unique ID associated with this abandon reason.
- getID() - Method in class net.royalur.model.dice.Dice
-
Gets the ID of this dice type.
- getID() - Method in interface net.royalur.model.dice.DiceFactory
-
Gets the ID of this dice type.
- getID() - Method in enum class net.royalur.model.dice.DiceType
-
Gets the ID that refers to this dice type.
- getID() - Method in class net.royalur.model.path.PathPair
-
Gets the ID of this path pair.
- getID() - Method in enum class net.royalur.model.path.PathType
-
Gets the ID that refers to this path type.
- getID() - Method in class net.royalur.model.shape.BoardShape
-
Gets the ID of this board shape.
- getID() - Method in enum class net.royalur.model.shape.BoardType
-
Gets the ID that refers to this board type.
- getInt(int) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- getInt(int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- getInt(int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- getInt(int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- getInt(int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- getInt(int) - Method in class net.royalur.lut.buffer.ValueBuffer
- getInt(int) - Method in class net.royalur.lut.store.LutMap
- getJsonFactory() - Method in class net.royalur.notation.JsonNotation
- getKeyBuffer() - Method in class net.royalur.lut.store.LutMap
- getLandmarkStates() - Method in class net.royalur.Game
-
Gets all moves that were made in the game, as well as the current state of the game.
- getLastControlStateOrNull() - Method in class net.royalur.Game
-
Gets the last control state in this game, or
null
if there is no control state in this game. - getLight() - Method in class net.royalur.model.path.PathPair
-
Gets the path that the light player's pieces must take, excluding the start and end tiles that exist off the board.
- getLightEnd() - Method in class net.royalur.model.path.PathPair
-
Gets the end tile for the light player that exists off the board.
- getLightPlayer() - Method in class net.royalur.Game
-
Gets the current state of the light player.
- getLightPlayer() - Method in class net.royalur.rules.state.GameState
-
Get the state of the light player.
- getLightStart() - Method in class net.royalur.model.path.PathPair
-
Gets the start tile for the light player that exists off the board.
- getLightWinPercent(FastSimpleGame) - Method in class net.royalur.lut.Lut
-
Assumes that the game is using symmetrical paths.
- getLightWinPercent(FastSimpleGame, FastSimpleGame) - Method in class net.royalur.lut.Lut
-
Assumes that the game is using symmetrical paths.
- getLightWinPercent(GameState) - Method in class net.royalur.lut.Lut
-
Assumes that the game is using symmetrical paths.
- getLightWithStartEnd() - Method in class net.royalur.model.path.PathPair
-
Gets the path that the light player's pieces must take, including the start and end tiles that exist off the board.
- getLong(int) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- getLong(int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- getLong(int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- getLong(int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- getLong(int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- getLong(int) - Method in class net.royalur.lut.buffer.ValueBuffer
- getLong(int) - Method in class net.royalur.lut.store.LutMap
- getLoser() - Method in class net.royalur.Game
-
Gets the player that lost the game.
- getLoser() - Method in class net.royalur.rules.state.EndGameState
-
Gets the player that lost the game.
- getLosingPlayer() - Method in class net.royalur.Game
-
Gets the state of the losing player.
- getLosingPlayer() - Method in class net.royalur.rules.state.EndGameState
-
Gets the state of the player that lost the game.
- getMap(int) - Method in class net.royalur.lut.Lut
- getMaps() - Method in class net.royalur.lut.Lut
- getMaxRollValue() - Method in class net.royalur.model.dice.BinaryDice
- getMaxRollValue() - Method in class net.royalur.model.dice.BinaryDice0AsMax
- getMaxRollValue() - Method in class net.royalur.model.dice.Dice
-
Gets the maximum value that could be rolled by this dice.
- getMetadata() - Method in class net.royalur.Game
-
Gets the metadata of this game.
- getMetadata() - Method in class net.royalur.lut.Lut
- getMove() - Method in class net.royalur.rules.state.MovedGameState
-
Gets the move that was made.
- getMoves(PlayerType) - Method in class net.royalur.stats.GameStats
-
Gets the number of moves made by
player
. - getMoves(GameStatsTarget) - Method in class net.royalur.stats.GameStats
-
Gets the number of moves counted for the target
target
. - getMovesStatistic(GameStatsTarget, SummaryStat) - Method in class net.royalur.stats.GameStatsSummary
-
Gets the value of the summary statistic
statistic
about moves for targettarget
. - getName() - Method in enum class net.royalur.model.AbandonReason
-
Gets an English name that can describe this abandon reason.
- getName() - Method in class net.royalur.model.dice.Dice
-
Gets the name of this dice.
- getName() - Method in interface net.royalur.model.dice.DiceFactory
-
Gets the name of this dice.
- getName() - Method in enum class net.royalur.model.dice.DiceType
-
Gets the name of this dice type.
- getName() - Method in class net.royalur.model.path.PathPair
-
Gets the name of this path.
- getName() - Method in enum class net.royalur.model.path.PathType
-
Gets the name of this path type.
- getName() - Method in enum class net.royalur.model.PlayerType
-
Gets the name of this player type.
- getName() - Method in class net.royalur.model.shape.BoardShape
-
Gets the name of this board.
- getName() - Method in enum class net.royalur.model.shape.BoardType
-
Gets the name of this board type.
- getName() - Method in enum class net.royalur.stats.GameStatsTarget
-
Gets a human-readable name representing this target, in English.
- getObjectMapper() - Method in class net.royalur.notation.JsonNotation
- getOtherPlayer() - Method in enum class net.royalur.model.PlayerType
-
Retrieves the PlayerType representing the other player.
- getOwner() - Method in class net.royalur.model.Piece
-
Gets the player that owns this piece.
- getPathIndex() - Method in class net.royalur.model.Piece
-
Gets the path index of this piece.
- getPathIndex(PathPair) - Method in class net.royalur.model.Move
-
Gets the index of the source tile of this move in the player's path.
- getPaths() - Method in class net.royalur.model.GameSettings
-
Gets the paths that each player must take around the board.
- getPaths() - Method in class net.royalur.rules.RuleSet
-
Gets the paths that the players must take around the board.
- getPathType() - Method in class net.royalur.model.path.PathPair
-
Gets the type of this path.
- getPercentInLead() - Method in class net.royalur.stats.GameStats
-
Gets the percentage of turns that the winner held the lead before winning.
- getPercentInLeadStatistic(SummaryStat) - Method in class net.royalur.stats.GameStatsSummary
-
Gets the value of the summary statistic
statistic
about percentage in lead. - getPerMoveSeconds() - Method in class net.royalur.model.TimeControl
- getPieceCount() - Method in class net.royalur.model.PlayerState
-
Gets the number of pieces that the player has available to introduce to the board.
- getPieceProvider() - Method in class net.royalur.rules.RuleSet
-
Gets the provider of piece manipulations.
- getPlayableState() - Method in class net.royalur.Game
-
Gets the current state of this game as a
PlayableGameState
. - getPlayer() - Method in class net.royalur.model.Move
-
Gets the instigator of this move.
- getPlayer() - Method in class net.royalur.model.PlayerState
-
Gets the player that this state represents.
- getPlayer() - Method in class net.royalur.rules.state.ControlGameState
-
Gets the player that performed the control action.
- getPlayer(boolean) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- getPlayer(PlayerType) - Method in class net.royalur.Game
-
Gets the current state of the player
player
. - getPlayerState(PlayerType) - Method in class net.royalur.rules.state.GameState
-
Gets the state of the player
player
. - getPlayerStateProvider() - Method in class net.royalur.rules.RuleSet
-
Gets the provider of player state manipulations.
- getReason() - Method in class net.royalur.rules.state.AbandonedGameState
-
Gets the reason that the game was abandoned.
- getResignedState() - Method in class net.royalur.Game
-
Gets the last control state in this game as an instance of
ResignedGameState
. - getResigningPlayer() - Method in class net.royalur.Game
-
Gets the player that resigned from this game.
- getRoll() - Method in class net.royalur.Game
-
Gets the roll that was made that can be used by the current turn player to make a move.
- getRoll() - Method in class net.royalur.rules.state.MovedGameState
-
Gets the roll of the dice that was used for the move.
- getRoll() - Method in class net.royalur.rules.state.RolledGameState
-
Gets the roll that the player made.
- getRoll() - Method in class net.royalur.rules.state.WaitingForMoveGameState
-
Gets the roll that the player made.
- getRollProbabilities() - Method in class net.royalur.model.dice.BinaryDice
- getRollProbabilities() - Method in class net.royalur.model.dice.BinaryDice0AsMax
- getRollProbabilities() - Method in class net.royalur.model.dice.Dice
-
Gets the probability of rolling each value of the dice, where the index into the returned array represents the value of the roll.
- getRolls(PlayerType) - Method in class net.royalur.stats.GameStats
-
Gets the number of rolls performed by
player
. - getRolls(GameStatsTarget) - Method in class net.royalur.stats.GameStats
-
Gets the number of rolls counted for the target
target
. - getRollsStatistic(GameStatsTarget, SummaryStat) - Method in class net.royalur.stats.GameStatsSummary
-
Gets the value of the summary statistic
statistic
about rolls for targettarget
. - getRosetteTiles() - Method in class net.royalur.model.shape.BoardShape
-
Gets the set of tiles that represent rosette tiles in this board shape.
- getRules() - Method in class net.royalur.Game
-
Gets the set of rules that are being used for this game.
- getRuleSetProvider() - Method in class net.royalur.GameBuilder
-
Gets the provider to use to construct the final rule set.
- getSampleDice() - Method in class net.royalur.rules.RuleSet
-
Gets a sample dice that can be used for parsing, but should not be used for running games.
- getScore() - Method in class net.royalur.model.PlayerState
-
Gets the number of pieces that the player has taken off the board.
- getSettings() - Method in class net.royalur.GameBuilder
-
Get the settings of the game being built.
- getSettings() - Method in class net.royalur.rules.RuleSet
-
Get the settings used for this rule set.
- getShape() - Method in class net.royalur.model.Board
-
Gets the shape of this board.
- getShort(int) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- getShort(int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- getShort(int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- getShort(int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- getShort(int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- getShort(int) - Method in class net.royalur.lut.buffer.ValueBuffer
- getShort(int) - Method in class net.royalur.lut.store.LutMap
- getSource() - Method in class net.royalur.model.Move
-
Gets the source tile of this move.
- getSource(PathPair) - Method in class net.royalur.model.Move
-
Gets the source tile of this move, including off the board tiles when introducing a piece.
- getSourceIndex() - Method in class net.royalur.model.Move
-
Gets the index of the source piece in the path, or -1 if there is no source piece.
- getSourceOrNull() - Method in class net.royalur.model.Move
-
Gets the source tile of this move, or else returns null if there is no source piece, in the case where a new piece is moved onto the board.
- getSourcePiece() - Method in class net.royalur.model.Move
-
Gets the source piece of this move.
- getSourcePieceOrNull() - Method in class net.royalur.model.Move
-
Gets the source piece of this move, or null if there is no source piece, in the case where a new piece is moved onto the board.
- getStart(PlayerType) - Method in class net.royalur.model.path.PathPair
-
Gets the start tile of
player
, which exists off the board. - getStartingPieceCount() - Method in class net.royalur.model.GameSettings
-
Gets the number of pieces that each player starts with.
- getStartingPieceCount() - Method in interface net.royalur.rules.PlayerStateProvider
-
Gets the number of pieces that players start with.
- getStartingPieceCount() - Method in class net.royalur.rules.simple.SimplePlayerStateProvider
- getStartTime() - Method in class net.royalur.model.GameMetadata
-
Gets the date and time when this game began, or
null
if no end time is included in this game's metadata. - getState() - Method in class net.royalur.Game
-
Retrieve the state that the game is currently in.
- getStates() - Method in class net.royalur.Game
-
Gets the states that have occurred so far in the game.
- getStateType(GameState) - Method in class net.royalur.notation.JsonNotation
- getSubject() - Method in class net.royalur.rules.state.ControlGameState
- getSubject() - Method in class net.royalur.rules.state.EndGameState
- getSubject() - Method in class net.royalur.rules.state.GameState
-
Get the subject player of the game state.
- getSubject() - Method in class net.royalur.rules.state.OngoingGameState
- getTiles() - Method in class net.royalur.model.shape.BoardShape
-
Gets the set of tiles that fall within the bounds of this board shape.
- getTilesByColumn() - Method in class net.royalur.model.shape.BoardShape
-
The tiles that fall within the bounds of this board shape, ordered by ascending column number, and then ascending row number.
- getTilesByRow() - Method in class net.royalur.model.shape.BoardShape
-
Returns the tiles that fall within the bounds of this board shape, ordered by ascending row number, and then ascending column number.
- getTimeControl() - Method in class net.royalur.model.GameMetadata
-
Gets the time control used for this game, or
null
if no time control was included in this game's metadata. - getTimeSinceGameStartMs() - Method in class net.royalur.Game
- getTimeSinceGameStartMs() - Method in class net.royalur.rules.state.GameState
-
Gets the time this state was created, measured by the number of milliseconds elapsed since the start of the game.
- getTimeSinceGameStartMs() - Method in interface net.royalur.rules.TimeProvider
-
Gets the number of milliseconds elapsed since the start of the game.
- getTimeSinceGameStartMs() - Method in class net.royalur.rules.TimeProvider.Timed
- getTimeSinceGameStartMs() - Method in class net.royalur.rules.TimeProvider.Untimed
- getTotalDrama() - Method in class net.royalur.stats.GameStats
-
Gets the total count of drama in the game.
- getTotalMoves() - Method in class net.royalur.stats.GameStats
-
Gets the total number of moves made by both players.
- getTotalRolls() - Method in class net.royalur.stats.GameStats
-
Gets the total number of rolls performed by both players.
- getTotalTurns() - Method in class net.royalur.stats.GameStats
-
Gets the total number of turns in the game.
- getTurn() - Method in class net.royalur.Game
-
Gets the player who can make the next interaction with the game.
- getTurn() - Method in class net.royalur.rules.state.OngoingGameState
-
Gets the player who can make the next interaction with the game.
- getTurnOrWinner() - Method in class net.royalur.Game
-
Gets the player who can make the next interaction with the game, or the winner of the game if it is finished.
- getTurnPlayer() - Method in class net.royalur.Game
-
Gets the state of the player whose turn it is.
- getTurnPlayer() - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- getTurnPlayer() - Method in class net.royalur.rules.state.OngoingGameState
-
Gets the state of the player that we are waiting on to interact with the game.
- getTurns(PlayerType) - Method in class net.royalur.stats.GameStats
-
Gets the number of turns that
player
had. - getTurns(GameStatsTarget) - Method in class net.royalur.stats.GameStats
-
Gets the number of turns counted for the target
target
. - getTurnsInLead() - Method in class net.royalur.stats.GameStats
-
Gets the number of turns that the winner held the lead before winning.
- getTurnsInLeadStatistic(SummaryStat) - Method in class net.royalur.stats.GameStatsSummary
-
Gets the value of the summary statistic
statistic
about turns in lead. - getTurnsStatistic(GameStatsTarget, SummaryStat) - Method in class net.royalur.stats.GameStatsSummary
-
Gets the value of the summary statistic
statistic
about turns for targettarget
. - getType() - Method in class net.royalur.lut.buffer.ValueBuffer
- getValueBuffer() - Method in class net.royalur.lut.store.LutMap
- getWaiting() - Method in class net.royalur.Game
-
Gets the player that is waiting whilst the other player makes the next interaction with the game.
- getWaiting() - Method in class net.royalur.rules.state.OngoingGameState
-
Gets the player that is waiting whilst the other player makes the next interaction with the game.
- getWaitingForMoveState() - Method in class net.royalur.Game
-
Gets the current state of this game as an instance of
WaitingForMoveGameState
. - getWaitingForRollState() - Method in class net.royalur.Game
-
Gets the current state of this game as an instance of
WaitingForRollGameState
. - getWaitingPlayer() - Method in class net.royalur.Game
-
Gets the state of the player that is waiting as it is not their turn.
- getWaitingPlayer() - Method in class net.royalur.rules.state.OngoingGameState
-
Gets the state of the player that is waiting whilst the other player makes the next interaction with the game.
- getWidth() - Method in class net.royalur.model.Board
-
Gets the width of the board, which represents the number of x-coordinates in this board.
- getWidth() - Method in class net.royalur.model.shape.BoardShape
-
Gets the width of the board shape.
- getWinner() - Method in class net.royalur.Game
-
Gets the player that won the game.
- getWinner() - Method in class net.royalur.rules.state.EndGameState
-
Gets the player that won the game.
- getWinningPlayer() - Method in class net.royalur.Game
-
Gets the state of the winning player.
- getWinningPlayer() - Method in class net.royalur.rules.state.EndGameState
-
Gets the state of the player that won the game.
- getWithStartEnd(PlayerType) - Method in class net.royalur.model.path.PathPair
-
Gets the path of
player
, including the start and end tiles that exist off the board. - getX() - Method in class net.royalur.model.Tile
-
Gets the x-coordinate of the tile.
- getXIndex() - Method in class net.royalur.model.Tile
-
Gets the x-index of the tile.
- getY() - Method in class net.royalur.model.Tile
-
Gets the y-coordinate of the tile.
- getYIndex() - Method in class net.royalur.model.Tile
-
Gets the y-index of the tile.
- GreedyAgent - Class in net.royalur.agent
-
An agent that prioritises capturing, followed by moving on to rosettes, and that prioritises moving the most advanced piece.
- GreedyAgent() - Constructor for class net.royalur.agent.GreedyAgent
H
- has(String) - Method in class net.royalur.model.GameMetadata
-
Checks whether there is any metadata associated with
key
. - hasAssociatedPlayer() - Method in enum class net.royalur.stats.GameStatsTarget
-
Gets whether this target is associated with a specific player.
- hasBoardType() - Method in class net.royalur.model.shape.BoardShape
-
Gets whether this board has an associated board type.
- hasDest() - Method in class net.royalur.model.Move
-
Determines whether this moves a piece to a destination on the board.
- hasDiceType() - Method in class net.royalur.model.dice.Dice
-
Gets whether this dice has an associated dice type.
- hasDiceType() - Method in interface net.royalur.model.dice.DiceFactory
-
Gets whether this dice has an associated dice type.
- hasEndTime() - Method in class net.royalur.model.GameMetadata
-
Checks whether this metadata contains the date and time when this game was finished.
- hashCode() - Method in record class net.royalur.model.dice.SimpleRoll
-
Returns a hash code value for this object.
- hashCode() - Method in class net.royalur.model.Move
- hashCode() - Method in class net.royalur.model.Piece
- hashCode() - Method in class net.royalur.model.PlayerState
- hashCode() - Method in class net.royalur.model.Tile
- hasLoser() - Method in class net.royalur.Game
-
Gets whether this game has a winner.
- hasLoser() - Method in class net.royalur.rules.state.EndGameState
-
Gets whether the game ended with a loser.
- hasPathType() - Method in class net.royalur.model.path.PathPair
-
Gets whether this path has an associated path type.
- hasPerMoveSeconds() - Method in class net.royalur.model.TimeControl
- hasPlayer() - Method in class net.royalur.rules.state.ControlGameState
-
Gets whether this control state has an associated player.
- hasPlayerMadeAnyActions(PlayerType) - Method in class net.royalur.Game
-
Checks whether the given player has made any actions in this game.
- hasPlayerMadeAnyMoves(PlayerType) - Method in class net.royalur.Game
-
Checks whether the given player has made any moves in this game.
- hasSource() - Method in class net.royalur.model.Move
-
Determines whether this move is moving a piece on the board.
- hasStartTime() - Method in class net.royalur.model.GameMetadata
-
Checks whether this metadata contains the date and time when this game began.
- hasState() - Method in class net.royalur.model.dice.Dice
-
Returns whether this dice holds any state that affects its dice rolls.
- hasTimeControl() - Method in class net.royalur.model.GameMetadata
-
Checks whether this metadata contains the time control used for the game.
- hasWinner() - Method in class net.royalur.Game
-
Gets whether this game has a winner.
- hasWinner() - Method in class net.royalur.rules.state.EndGameState
-
Gets whether the game ended with a winner.
- height - Variable in class net.royalur.rules.simple.fast.FastSimpleBoard
I
- indexOf(byte, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
- indexOf(byte, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOf(byte, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOf(byte, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOf(byte, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOf(int, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
- indexOf(int, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOf(int, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOf(int, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOf(int, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOf(long, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
- indexOf(long, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOf(long, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOf(long, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOf(long, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOf(short, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
- indexOf(short, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOf(short, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOf(short, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOf(short, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOfBinarySearch(byte, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
-
Expects the buffer to be sorted in unsigned ascending order.
- indexOfBinarySearch(byte, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOfBinarySearch(byte, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOfBinarySearch(byte, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOfBinarySearch(byte, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOfBinarySearch(int, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
-
Expects the buffer to be sorted in unsigned ascending order.
- indexOfBinarySearch(int, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOfBinarySearch(int, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOfBinarySearch(int, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOfBinarySearch(int, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOfBinarySearch(long, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
-
Expects the buffer to be sorted in unsigned ascending order.
- indexOfBinarySearch(long, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOfBinarySearch(long, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOfBinarySearch(long, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOfBinarySearch(long, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOfBinarySearch(short, int, int) - Method in class net.royalur.lut.buffer.IntValueBuffer
-
Expects the buffer to be sorted in unsigned ascending order.
- indexOfBinarySearch(short, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- indexOfBinarySearch(short, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- indexOfBinarySearch(short, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- indexOfBinarySearch(short, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- indexOfKey(int) - Method in class net.royalur.lut.store.LutMap
- INITIAL_STATE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the initial state of the board and players.
- IntValueBuffer - Class in net.royalur.lut.buffer
-
Stores binary values and provides efficient methods to manipulate it.
- IntValueBuffer(ValueType, int) - Constructor for class net.royalur.lut.buffer.IntValueBuffer
- isActionState(String) - Method in class net.royalur.notation.JsonNotation
- isCapture() - Method in class net.royalur.model.Move
-
Determines whether this move is capturing an existing piece on the board.
- isCompatible(PathPair) - Method in class net.royalur.model.shape.BoardShape
-
Determines whether
paths
can be used on this shape of board. - isControlState(String) - Method in class net.royalur.notation.JsonNotation
- isDestRosette(BoardShape) - Method in class net.royalur.model.Move
-
Determines whether this move will land a piece on a rosette.
- isEquivalent(PathPair) - Method in class net.royalur.model.path.PathPair
-
Determines whether the paths that the light player's pieces must take, and the paths that the dark player's pieces must take, are equivalent between this path pair and
other
. - isEquivalent(BoardShape) - Method in class net.royalur.model.shape.BoardShape
-
Determines whether this board shape covers the same tiles, and has the same rosettes, as
other
. - isFinished - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- isFinished() - Method in class net.royalur.Game
-
Checks whether the game is currently in a finished state.
- isFinished() - Method in class net.royalur.rules.state.ControlGameState
- isFinished() - Method in class net.royalur.rules.state.EndGameState
- isFinished() - Method in class net.royalur.rules.state.GameState
-
Returns whether this state represents a finished game.
- isFinished() - Method in class net.royalur.rules.state.OngoingGameState
- isFloat() - Method in enum class net.royalur.lut.buffer.ValueType
- isFull() - Method in class net.royalur.lut.store.OrderedUInt32Buffer
- isInt() - Method in enum class net.royalur.lut.buffer.ValueType
- isIntroduction() - Method in class net.royalur.model.Move
-
Determines whether this move is moving a new piece onto the board.
- isLight - Variable in class net.royalur.rules.simple.fast.FastSimplePlayer
- isLightTurn - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- isOngoingState(String) - Method in class net.royalur.notation.JsonNotation
- isPlayable() - Method in class net.royalur.Game
-
Determines whether the game is currently in a playable state.
- isPlayable() - Method in class net.royalur.rules.state.ActionGameState
- isPlayable() - Method in class net.royalur.rules.state.ControlGameState
- isPlayable() - Method in class net.royalur.rules.state.EndGameState
- isPlayable() - Method in class net.royalur.rules.state.GameState
-
Returns whether this state is a valid state to be played from.
- isPlayable() - Method in class net.royalur.rules.state.PlayableGameState
- isPlayableState(String) - Method in class net.royalur.notation.JsonNotation
- isRosette(Tile) - Method in class net.royalur.model.shape.BoardShape
-
Determines whether
tile
is a rosette tile in this board shape. - isRosette(Tile) - Method in class net.royalur.model.shape.StandardBoardShape
- isRosetteIndices(int, int) - Method in class net.royalur.model.shape.BoardShape
-
Determines whether the tile at the indices (
ix
,iy
), 0-based, is a rosette tile in this board shape. - isRosetteIndices(int, int) - Method in class net.royalur.model.shape.StandardBoardShape
- isScore() - Method in class net.royalur.model.Move
-
Determines whether this move is moving a piece off of the board to score it.
- isSorted() - Method in class net.royalur.lut.store.OrderedUInt32BufferSet
- isTileRosette(int) - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- isTimed() - Method in class net.royalur.Game
- isTimed() - Method in class net.royalur.model.TimeControl
- isTimed() - Method in interface net.royalur.rules.TimeProvider
-
Checks whether this time provider produces values other than zero.
- isTimed() - Method in class net.royalur.rules.TimeProvider.Timed
- isTimed() - Method in class net.royalur.rules.TimeProvider.Untimed
- isWaitingForMove() - Method in class net.royalur.Game
-
Checks whether the game is currently waiting for a move from a player.
- isWaitingForMove() - Method in class net.royalur.rules.simple.fast.FastSimpleGame
-
Checks whether moving a piece is expected.
- isWaitingForRoll() - Method in class net.royalur.Game
-
Determines whether the game is currently waiting for a roll from a player.
- isWaitingForRoll() - Method in class net.royalur.rules.simple.fast.FastSimpleGame
-
Checks whether a roll of the dice is expected.
J
- JsonHelper - Class in net.royalur.notation
-
Contains type checking helper methods for retrieving JSON values, as Jackson doesn't support that for some reason.
- JsonHelper.JsonKeyError - Exception in net.royalur.notation
- JsonHelper.JsonReadError - Exception in net.royalur.notation
- JsonHelper.JsonTypeError - Exception in net.royalur.notation
- JsonKeyError(String) - Constructor for exception net.royalur.notation.JsonHelper.JsonKeyError
- JsonNotation - Class in net.royalur.notation
-
A notation that can be used to encode games of the Royal Game of Ur into JSON for serialisation.
- JsonNotation() - Constructor for class net.royalur.notation.JsonNotation
-
Instantiates a default JSON notation to read simple games.
- JsonNotation(Map<String, ? extends BoardShapeFactory>, Map<String, ? extends PathPairFactory>, Map<String, ? extends DiceFactory>, RuleSetProvider) - Constructor for class net.royalur.notation.JsonNotation
-
Instantiates the JSON notation to encode and decode games.
- JsonNotation(Map<String, ? extends BoardShapeFactory>, Map<String, ? extends PathPairFactory>, Map<String, ? extends DiceFactory>, RuleSetProvider, JsonFactory) - Constructor for class net.royalur.notation.JsonNotation
-
Instantiates the JSON notation to encode and decode games.
- JsonReadError(String) - Constructor for exception net.royalur.notation.JsonHelper.JsonReadError
- JsonTypeError(String) - Constructor for exception net.royalur.notation.JsonHelper.JsonTypeError
L
- lastIndexOf(GameState) - Method in class net.royalur.notation.DerivedStateSource
- LATEST_VERSION - Static variable in class net.royalur.lut.Lut
- LATEST_VERSION - Static variable in class net.royalur.notation.JsonNotation
-
The latest version of the JSON notation.
- LeastAdvancedGreedyAgent - Class in net.royalur.agent
-
An agent that prioritises capturing, followed by moving on to rosettes, and that prioritises moving the least advanced piece.
- LeastAdvancedGreedyAgent() - Constructor for class net.royalur.agent.LeastAdvancedGreedyAgent
- length() - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
-
Gets the underlying length of this board.
- light - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- LIGHT - Enum constant in enum class net.royalur.model.PlayerType
-
The light player.
- LIGHT - Enum constant in enum class net.royalur.stats.GameStatsTarget
-
The statistics of the light player.
- LIGHT_ONLY_FLAG - Static variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- LIGHT_PATH - Static variable in class net.royalur.model.path.AsebPathPair
-
The path of the light player's pieces.
- LIGHT_PATH - Static variable in class net.royalur.model.path.BellPathPair
-
The path of the light player's pieces.
- LIGHT_PATH - Static variable in class net.royalur.model.path.MastersPathPair
-
The path of the light player's pieces.
- LIGHT_PATH - Static variable in class net.royalur.model.path.MurrayPathPair
-
The path of the light player's pieces.
- LIGHT_PATH - Static variable in class net.royalur.model.path.SkiriukPathPair
-
The path of the light player's pieces.
- LIGHT_PATH_INDEX_MASK - Static variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- LIGHT_PATH_INDEX_SHIFT - Static variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- lightSafeBoardIndices - Variable in class net.royalur.lut.SimpleGameStateEncoding
- LikelihoodAgent - Class in net.royalur.agent
-
An agent that makes deterministic move choices for testing.
- LikelihoodAgent(SimpleRuleSet, UtilityFunction, float) - Constructor for class net.royalur.agent.LikelihoodAgent
-
Instantiates a likelihood agent.
- loopLightGameStates(Consumer<FastSimpleGame>) - Method in class net.royalur.rules.simple.fast.FastSimpleFlags
-
Only loops through game states where it is light's turn.
- loopLightGameStatesAndNeighbours(BiConsumer<FastSimpleGame, Collection<FastSimpleGame>>) - Method in class net.royalur.rules.simple.fast.FastSimpleFlags
- Lut - Class in net.royalur.lut
- Lut(GameStateEncoding, LutMetadata, LutMap[]) - Constructor for class net.royalur.lut.Lut
- LutAgent - Class in net.royalur.agent
-
Uses a lookup-table to decide the move to make.
- LutAgent(Lut) - Constructor for class net.royalur.agent.LutAgent
- LutCLI - Class in net.royalur.lut
- LutMap - Class in net.royalur.lut.store
-
A big map of compact keys and values for a Lut.
- LutMap(int, UInt32ValueBuffer, FloatValueBuffer) - Constructor for class net.royalur.lut.store.LutMap
- LutMetadata - Class in net.royalur.lut
-
Holds the metadata stored for a LUT.
- LutMetadata(GameSettings) - Constructor for class net.royalur.lut.LutMetadata
- LutMetadata(GameSettings, Map<String, JsonNode>) - Constructor for class net.royalur.lut.LutMetadata
- LutTrainer - Class in net.royalur.lut
-
A lookup table based upon game states.
- LutTrainer(GameSettings, GameStateEncoding, JsonNotation) - Constructor for class net.royalur.lut.LutTrainer
- LutVisualisation - Class in net.royalur
-
Work to visualise lut.
- LutVisualisation(Lut) - Constructor for class net.royalur.LutVisualisation
M
- MAGIC - Static variable in class net.royalur.lut.Lut
- main(String[]) - Static method in class net.royalur.lut.LutCLI
- main(String[]) - Static method in class net.royalur.Main
- main(String[]) - Static method in class net.royalur.RGUStatistics
-
The main entrypoint to run statistics about the Royal Game of Ur board shapes and paths.
- Main - Class in net.royalur
- masters() - Method in class net.royalur.GameBuilder
-
Creates a new builder that allows the construction of games following the rules proposed by James Masters.
- MASTERS - Enum constant in enum class net.royalur.model.path.PathType
-
The path proposed by Masters for the Royal Game of Ur.
- MASTERS - Static variable in class net.royalur.model.GameSettings
-
The settings proposed by James Masters.
- MastersPathPair - Class in net.royalur.model.path
-
The paths proposed by Masters for the Royal Game of Ur.
- MastersPathPair() - Constructor for class net.royalur.model.path.MastersPathPair
-
Instantiates Masters' paths for the light and dark player.
- MAX - Enum constant in enum class net.royalur.stats.SummaryStat
-
The maximum of all the measurements.
- MAX_DOUBLE_READ_EPSILON - Static variable in class net.royalur.notation.JsonHelper
- MAX_FLOAT_READ_EPSILON - Static variable in class net.royalur.notation.JsonHelper
- MEAN - Enum constant in enum class net.royalur.stats.SummaryStat
-
The mean of all the measurements.
- MEDIAN - Enum constant in enum class net.royalur.stats.SummaryStat
-
The median of all measurements.
- METADATA_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the metadata of the game.
- MIN - Enum constant in enum class net.royalur.stats.SummaryStat
-
The minimum of all the measurements.
- move(Move) - Method in class net.royalur.Game
-
Applies the move
move
to update the state of the game. - Move - Class in net.royalur.model
-
A move that can be made on a board.
- Move(PlayerType, Tile, Piece, Tile, Piece, Piece) - Constructor for class net.royalur.model.Move
-
Creates a new move with origin
source
and destinationdest
. - MOVE_CAPTURED_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the captured piece of a move.
- MOVE_DEST_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the destination piece of a move.
- MOVE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for a move that was made.
- MOVE_SOURCE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the source piece of a move.
- MOVE_STATUS_CAPTURED - Static variable in class net.royalur.rules.simple.fast.FastSimpleGame
- MOVE_STATUS_GRANTED_EXTRA_ROLL - Static variable in class net.royalur.rules.simple.fast.FastSimpleGame
- MOVE_STATUS_INTRODUCED - Static variable in class net.royalur.rules.simple.fast.FastSimpleGame
- MOVE_STATUS_SCORED - Static variable in class net.royalur.rules.simple.fast.FastSimpleGame
- moveCount - Variable in class net.royalur.rules.simple.fast.FastSimpleMoveList
- MovedGameState - Class in net.royalur.rules.state
-
A game state that represents a move of a piece on the board.
- MovedGameState(Board, PlayerState, PlayerState, long, PlayerType, Roll, Move) - Constructor for class net.royalur.rules.state.MovedGameState
-
Instantiates a game state representing a move that was made in a game.
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.Float32ValueBuffer
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.Float64ValueBuffer
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.Percent16ValueBuffer
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- moveIntoPlace(int, int) - Method in class net.royalur.lut.buffer.ValueBuffer
-
Moves the value to targetIndex, and shifts all values in between.
- moveIntoSortedPlace(int) - Method in class net.royalur.lut.buffer.IntValueBuffer
-
Returns the final index that the value was moved to.
- moveIntoSortedPlace(int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- moveIntoSortedPlace(int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- moveIntoSortedPlace(int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- moveIntoSortedPlace(int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- movePiece(Piece) - Method in class net.royalur.Game
-
Moves the piece
piece
, and updates the state of the game. - movePieceOnTile(Tile) - Method in class net.royalur.Game
-
Moves the piece on the given source tile, and updates the state of the game.
- moves - Variable in class net.royalur.rules.simple.fast.FastSimpleMoveList
-
Path indices of tiles to move.
- MS_DURATION - Static variable in class net.royalur.lut.LutCLI
- MURRAY - Enum constant in enum class net.royalur.model.path.PathType
-
The path proposed by Murray for the Royal Game of Ur.
- MurrayPathPair - Class in net.royalur.model.path
-
The paths proposed by Murray for the Royal Game of Ur.
- MurrayPathPair() - Constructor for class net.royalur.model.path.MurrayPathPair
-
Instantiates Murray's paths for the light and dark player.
N
- net.royalur - package net.royalur
- net.royalur.agent - package net.royalur.agent
- net.royalur.agent.utility - package net.royalur.agent.utility
- net.royalur.lut - package net.royalur.lut
- net.royalur.lut.buffer - package net.royalur.lut.buffer
- net.royalur.lut.store - package net.royalur.lut.store
- net.royalur.model - package net.royalur.model
- net.royalur.model.dice - package net.royalur.model.dice
- net.royalur.model.path - package net.royalur.model.path
- net.royalur.model.shape - package net.royalur.model.shape
- net.royalur.notation - package net.royalur.notation
- net.royalur.rules - package net.royalur.rules
- net.royalur.rules.simple - package net.royalur.rules.simple
- net.royalur.rules.simple.fast - package net.royalur.rules.simple.fast
- net.royalur.rules.state - package net.royalur.rules.state
- net.royalur.stats - package net.royalur.stats
- nextBoardIndices - Variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- NONE - Static variable in class net.royalur.model.TimeControl
- Notation - Interface in net.royalur.notation
-
A notation can be used as a shared format for distributing games of the Royal Game of Ur.
O
- OCCUPANTS_MASK - Static variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- of(int) - Static method in record class net.royalur.model.dice.SimpleRoll
-
Generates a roll representing a roll of the value
value
. - OLD_MASTERS - Static variable in class net.royalur.model.GameSettings
-
The settings proposed by James Masters.
- OLD_PIECE_INDEX_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The old key in the JSON for the index of a piece on its path.
- OLD_PIECE_OWNER_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The old key in the JSON for the owner of a piece.
- ONE - Static variable in record class net.royalur.model.dice.SimpleRoll
-
A constant representing a roll of one.
- OngoingGameState - Class in net.royalur.rules.state
-
A game state from within a game where a winner has not yet been determined.
- OngoingGameState(Board, PlayerState, PlayerState, long, PlayerType) - Constructor for class net.royalur.rules.state.OngoingGameState
-
Instantiates a game state for an ongoing point in a game.
- OrderedUInt32Buffer - Class in net.royalur.lut.store
-
A sorted buffer of uint32 values.
- OrderedUInt32Buffer(int) - Constructor for class net.royalur.lut.store.OrderedUInt32Buffer
- OrderedUInt32Buffer(int, int) - Constructor for class net.royalur.lut.store.OrderedUInt32Buffer
- OrderedUInt32BufferSet - Class in net.royalur.lut.store
-
Manages a set of ordered uint32 buffers, and uses merge sort to combine them as needed.
- OrderedUInt32BufferSet() - Constructor for class net.royalur.lut.store.OrderedUInt32BufferSet
- OrderedUInt32BufferSet(int) - Constructor for class net.royalur.lut.store.OrderedUInt32BufferSet
- OVERALL - Enum constant in enum class net.royalur.stats.GameStatsTarget
-
The overall statistics of both players.
P
- parseDate(String) - Static method in class net.royalur.notation.JsonHelper
- parseDatetime(String) - Static method in class net.royalur.model.GameMetadata
- parseSeconds(String) - Static method in class net.royalur.model.TimeControl
- PARSING_MAP - Static variable in enum class net.royalur.model.dice.DiceType
-
A store to be used to parse dice.
- PARSING_MAP - Static variable in enum class net.royalur.model.path.PathType
-
A store to be used to parse path pairs.
- PARSING_MAP - Static variable in enum class net.royalur.model.shape.BoardType
-
A store to be used to parse board shapes.
- path - Variable in class net.royalur.rules.simple.fast.FastSimplePlayer
-
The tile indices of each tile on the path for this player.
- PathPair - Class in net.royalur.model.path
-
Represents a pair of paths for the light and dark players to move their pieces along in a game of the Royal Game of Ur.
- PathPair(String, List<Tile>, List<Tile>) - Constructor for class net.royalur.model.path.PathPair
-
Instantiates a pair of paths.
- PathPairFactory - Interface in net.royalur.model.path
-
A factory that creates a pair of paths.
- paths - Variable in class net.royalur.rules.RuleSet
-
The paths that each player must take around the board.
- paths(PathPair) - Method in class net.royalur.GameBuilder
-
Copies this game builder with the paths taken by each player set to
paths
. - paths(PathType) - Method in class net.royalur.GameBuilder
-
Copies this game builder with the paths taken by each player set to
pathType
. - PATHS_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the game setting of the paths used.
- PathType - Enum Class in net.royalur.model.path
-
The type of path to use in a game.
- PERCENT16 - Enum constant in enum class net.royalur.lut.buffer.ValueType
- Percent16ValueBuffer - Class in net.royalur.lut.buffer
- Percent16ValueBuffer(int) - Constructor for class net.royalur.lut.buffer.Percent16ValueBuffer
- PERCENTILE_25 - Enum constant in enum class net.royalur.stats.SummaryStat
-
The 25th percentile of measurements.
- PERCENTILE_5 - Enum constant in enum class net.royalur.stats.SummaryStat
-
The 5th percentile of measurements.
- PERCENTILE_75 - Enum constant in enum class net.royalur.stats.SummaryStat
-
The 75th percentile of measurements.
- PERCENTILE_95 - Enum constant in enum class net.royalur.stats.SummaryStat
-
The 95th percentile of measurements.
- Piece - Class in net.royalur.model
-
A piece on a board.
- Piece(PlayerType, int) - Constructor for class net.royalur.model.Piece
-
Instantiates a piece that can be placed on a board.
- pieceProvider - Variable in class net.royalur.rules.RuleSet
-
Provides the manipulation of piece values.
- PieceProvider - Interface in net.royalur.rules
-
An interface that provides instances of pieces.
- pieces - Variable in class net.royalur.rules.simple.fast.FastSimpleBoard
-
The pieces that are on all tiles of this board.
- pieces - Variable in class net.royalur.rules.simple.fast.FastSimplePlayer
- PiecesAdvancedUtilityFn - Class in net.royalur.agent.utility
-
Scores game states based upon how far pieces have been advanced by each player.
- PiecesAdvancedUtilityFn(RuleSet) - Constructor for class net.royalur.agent.utility.PiecesAdvancedUtilityFn
- PlayableGameState - Class in net.royalur.rules.state
-
A game state where we are waiting for interactions from a player.
- PlayableGameState(Board, PlayerState, PlayerState, long, PlayerType) - Constructor for class net.royalur.rules.state.PlayableGameState
-
Instantiates a game state for an ongoing point in a game.
- playAutonomously(Game, Agent, Agent) - Static method in interface net.royalur.agent.Agent
-
Completes this game using the two agents to play its moves.
- PLAYER_LEFT - Enum constant in enum class net.royalur.model.AbandonReason
-
A player left the game before it finished.
- PLAYER_PIECES_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the pieces of a player state.
- PLAYER_SCORE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the score of a player state.
- PLAYERS_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the state of the players.
- PlayerState - Class in net.royalur.model
-
A player state represents the state of a single player at a point in the game.
- PlayerState(PlayerType, int, int) - Constructor for class net.royalur.model.PlayerState
-
Instantiates a state for a player in a game.
- playerStateProvider - Variable in class net.royalur.rules.RuleSet
-
Provides the manipulation of player state values.
- PlayerStateProvider - Interface in net.royalur.rules
-
An interface that provides the manipulation of PlayerStates as a game progresses.
- PlayerType - Enum Class in net.royalur.model
-
Represents the players of a game.
- playTurn(Game) - Method in interface net.royalur.agent.Agent
-
Initiates the agent to play their turn in the given game.
- playTurn(Game) - Method in class net.royalur.agent.BaseAgent
-
Initiates the agent to play their turn in the given game.
- populateKeys(int) - Method in class net.royalur.lut.LutTrainer
- populateNewLut() - Method in class net.royalur.lut.LutTrainer
- populateNewLut(int) - Method in class net.royalur.lut.LutTrainer
- populateNewMap(int) - Method in class net.royalur.lut.LutTrainer
- populateNewMaps(int) - Method in class net.royalur.lut.LutTrainer
- put(String, String) - Method in class net.royalur.model.GameMetadata
-
Add a new metadata value,
value
, associated withkey
.
R
- RandomAgent - Class in net.royalur.agent
-
An agent that makes random moves in games.
- RandomAgent() - Constructor for class net.royalur.agent.RandomAgent
-
Instantiates a random agent using a default source of randomness.
- RandomAgent(Random) - Constructor for class net.royalur.agent.RandomAgent
-
Instantiates a random agent that uses
random
as its source of randomness. - read(File) - Static method in class net.royalur.lut.Lut
- read(JsonNotation, ObjectNode) - Static method in class net.royalur.lut.LutMetadata
- read(JsonNotation, Function<GameSettings, GameStateEncoding>, File) - Static method in class net.royalur.lut.Lut
- read(JsonNotation, Function<GameSettings, GameStateEncoding>, FileChannel) - Static method in class net.royalur.lut.Lut
- read(JsonNotation, Function<GameSettings, GameStateEncoding>, DataSource) - Static method in class net.royalur.lut.Lut
- readAbandonedState(RuleSet, long, StateSource, ObjectNode, PlayerType) - Method in class net.royalur.notation.JsonNotation
- readActionState(RuleSet, long, StateSource, ObjectNode, String, PlayerType) - Method in class net.royalur.notation.JsonNotation
- readArray(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readArrayEntry(ArrayNode, int) - Static method in class net.royalur.notation.JsonHelper
- readArrayObjectEntry(ArrayNode, int) - Static method in class net.royalur.notation.JsonHelper
- readBoard(RuleSet, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readBool(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readBoolWithDefault(ObjectNode, String, boolean) - Static method in class net.royalur.notation.JsonHelper
- readByte() - Method in class net.royalur.lut.store.DataSource.FileDataSource
- readByte() - Method in class net.royalur.lut.store.DataSource
- readBytes(int) - Method in class net.royalur.lut.store.DataSource.FileDataSource
- readBytes(int) - Method in class net.royalur.lut.store.DataSource
- readChar(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readCharWithDefault(ObjectNode, String, char) - Static method in class net.royalur.notation.JsonHelper
- readCompleteState(RuleSet, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readContents(DataSource) - Method in class net.royalur.lut.buffer.ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.Float32ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.Float64ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.Percent16ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- readContents(DataSource, int, int) - Method in class net.royalur.lut.buffer.ValueBuffer
- readControlState(RuleSet, long, StateSource, ObjectNode, String) - Method in class net.royalur.notation.JsonNotation
- readDate(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
-
Reads an ISO date string.
- readDateWithDefault(ObjectNode, String, Instant) - Static method in class net.royalur.notation.JsonHelper
-
Reads an ISO date string.
- readDerivedState(RuleSet, StateSource, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readDouble() - Method in class net.royalur.lut.store.DataSource.FileDataSource
- readDouble() - Method in class net.royalur.lut.store.DataSource
- readDouble(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readDoubleWithDefault(ObjectNode, String, double) - Static method in class net.royalur.notation.JsonHelper
- readEndState(RuleSet, long, StateSource, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readFloat() - Method in class net.royalur.lut.store.DataSource.FileDataSource
- readFloat() - Method in class net.royalur.lut.store.DataSource
- readFloat(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readFloatWithDefault(ObjectNode, String, float) - Static method in class net.royalur.notation.JsonHelper
- readGame(ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readGameSettings(ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readGameV1Or2(ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readInt() - Method in class net.royalur.lut.store.DataSource.FileDataSource
- readInt() - Method in class net.royalur.lut.store.DataSource
- readInt(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readIntWithDefault(ObjectNode, String, int) - Static method in class net.royalur.notation.JsonHelper
- readLong() - Method in class net.royalur.lut.store.DataSource.FileDataSource
- readLong() - Method in class net.royalur.lut.store.DataSource
- readLong(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readLongWithDefault(ObjectNode, String, long) - Static method in class net.royalur.notation.JsonHelper
- readMetadata(ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readMove(RuleSet, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readMovedState(RuleSet, long, StateSource, ObjectNode, PlayerType) - Method in class net.royalur.notation.JsonNotation
- readMoveList(RuleSet, ArrayNode) - Method in class net.royalur.notation.JsonNotation
- readNullableArray(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableBool(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableChar(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableDate(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
-
Reads an ISO date string.
- readNullableDouble(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableFloat(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableInt(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableLong(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableNumber(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableObject(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullablePiece(RuleSet, ObjectNode, String) - Method in class net.royalur.notation.JsonNotation
- readNullableString(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNullableValue(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readNumber(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readObject(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readOldPiece(RuleSet, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readOngoingState(RuleSet, long, StateSource, ObjectNode, String) - Method in class net.royalur.notation.JsonNotation
- readPiece(RuleSet, ObjectNode, String) - Method in class net.royalur.notation.JsonNotation
- readPlayableState(RuleSet, long, StateSource, ObjectNode, String, PlayerType) - Method in class net.royalur.notation.JsonNotation
- readPlayerState(RuleSet, PlayerType, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readResignedState(RuleSet, long, StateSource, ObjectNode, PlayerType) - Method in class net.royalur.notation.JsonNotation
- readRoll(RuleSet, ObjectNode) - Method in class net.royalur.notation.JsonNotation
- readRolledState(RuleSet, long, StateSource, ObjectNode, PlayerType) - Method in class net.royalur.notation.JsonNotation
- readShort() - Method in class net.royalur.lut.store.DataSource.FileDataSource
- readShort() - Method in class net.royalur.lut.store.DataSource
- readStates(RuleSet, GameState, ArrayNode) - Method in class net.royalur.notation.JsonNotation
- readString(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readStringWithDefault(ObjectNode, String, String) - Static method in class net.royalur.notation.JsonHelper
- readValue(ObjectNode, String) - Static method in class net.royalur.notation.JsonHelper
- readWaitingForMoveState(RuleSet, long, StateSource, ObjectNode, PlayerType) - Method in class net.royalur.notation.JsonNotation
- readWaitingForRollState(RuleSet, long, StateSource, ObjectNode, PlayerType) - Method in class net.royalur.notation.JsonNotation
- recordRoll(int) - Method in class net.royalur.model.dice.Dice
-
Updates the state of this dice after having rolled
value
. - remove(String) - Method in class net.royalur.model.GameMetadata
-
Removes any metadata value associated with
key
. - replaceSettings(GameSettings) - Method in class net.royalur.GameBuilder
-
Create a copy of this game builder with new settings.
- requiresPlayer() - Method in enum class net.royalur.model.AbandonReason
-
Gets whether this abandonment reason requires a player.
- resign(PlayerType) - Method in class net.royalur.Game
-
Marks that
player
resigned the game. - ResignedGameState - Class in net.royalur.rules.state
-
A game state that represents a player resigning from a game.
- ResignedGameState(Board, PlayerState, PlayerState, long, PlayerType) - Constructor for class net.royalur.rules.state.ResignedGameState
-
Instantiates a game state representing a player resigning from a game.
- reversePlayers(FastSimpleGame) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
-
Copies the state of this game with the players swapped.
- RGN - Class in net.royalur.notation
-
RGN (Royal Game Notation) is a textual format to encode games of the Royal Game of Ur.
- RGN() - Constructor for class net.royalur.notation.RGN
-
Instantiates the RGN notation to encode and decode games.
- RGN(Map<String, ? extends PathPairFactory>, Map<String, ? extends BoardShapeFactory>, int, int) - Constructor for class net.royalur.notation.RGN
-
Instantiates the RGN notation to encode and decode games.
- RGUStatistics - Class in net.royalur
-
This file intends to hold tests that can be performed to different sets of game rules and paths to compare them.
- RGUStatistics() - Constructor for class net.royalur.RGUStatistics
- roll() - Method in class net.royalur.model.dice.Dice
-
Generates a random roll using this dice.
- roll(int) - Method in class net.royalur.model.dice.Dice
-
Generates a roll with value
value
using this dice. - Roll - Interface in net.royalur.model.dice
-
A roll of a dice.
- ROLL_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the roll that was made.
- ROLL_VALUE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the value of a roll.
- rollDice() - Method in class net.royalur.Game
-
Rolls the dice, and updates the state of the game accordingly.
- rollDice(int) - Method in class net.royalur.Game
-
Rolls the dice with a known value of
value
, and updates the state of the game accordingly. - rollDice(Roll) - Method in class net.royalur.Game
-
Rolls the dice, with a known value of
roll
, and updates the state of the game accordingly. - RolledGameState - Class in net.royalur.rules.state
-
A game state that represents a roll that was made in a game.
- RolledGameState(Board, PlayerState, PlayerState, long, PlayerType, Roll, List<Move>) - Constructor for class net.royalur.rules.state.RolledGameState
-
Instantiates a game state that represents a roll that was made in a game.
- rollValue - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- rollValue() - Method in class net.royalur.model.dice.BinaryDice
- rollValue() - Method in class net.royalur.model.dice.BinaryDice0AsMax
- rollValue() - Method in class net.royalur.model.dice.Dice
-
Generates a random roll using this dice, and returns just the value.
- ROSETTE_TILES - Static variable in class net.royalur.model.shape.AsebBoardShape
-
The set of rosette tiles that exist on the board.
- ROSETTE_TILES - Static variable in class net.royalur.model.shape.StandardBoardShape
-
The set of rosette tiles that exist on the standard board.
- ROSETTES_GRANT_EXTRA_ROLLS_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the game setting of whether rosettes grant extra rolls.
- rosettesGrantExtraRoll - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- rosettesGrantExtraRolls(boolean) - Method in class net.royalur.GameBuilder
-
Copies this game builder with rosettes granting extra dice rolls if
rosettesGrantExtraRolls
is true. - rosetteTiles - Variable in class net.royalur.rules.simple.fast.FastSimpleBoard
- RuleSet - Class in net.royalur.rules
-
A set of rules that govern the play of a game of the Royal Game of Ur.
- RuleSet(BoardShape, PathPair, DiceFactory, PieceProvider, PlayerStateProvider) - Constructor for class net.royalur.rules.RuleSet
-
Instantiates a rule set for the Royal Game of Ur.
- RuleSetProvider - Interface in net.royalur.rules
-
Creates rule sets to match game settings.
S
- SAFE_ROSETTES_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the game setting of whether rosettes are safe.
- safeRosettes(boolean) - Method in class net.royalur.GameBuilder
-
Copies this game builder with whether rosettes are safe from capture set to
safeRosettes
. - safeTileBitsPerPlayer - Variable in class net.royalur.lut.SimpleGameStateEncoding
- safeTileCountPerPlayer - Variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- sampleDice - Variable in class net.royalur.rules.RuleSet
-
A sample dice that can be used for parsing, but should not be used for running games.
- score - Variable in class net.royalur.rules.simple.fast.FastSimplePlayer
- scoreGame(FastSimpleGame) - Method in class net.royalur.agent.utility.UtilityFunction
-
Scores the state of the game numerically, where a positive value represents that the current player is advantaged, and a negative value represents that the waiting player is advantaged.
- scoreGameStateForLight(FastSimpleGame) - Method in class net.royalur.agent.utility.PiecesAdvancedUtilityFn
- scoreGameStateForLight(FastSimpleGame) - Method in class net.royalur.agent.utility.UtilityFunction
-
Scores the state of the game numerically, where a positive value represents that light is advantaged, and a negative value represents that dark is advantaged.
- selectLandmarkStates(List<GameState>) - Method in class net.royalur.rules.RuleSet
-
Selects only the states that are required to reproduce exactly what happened in a game using this rule set.
- selectLandmarkStates(List<GameState>) - Method in class net.royalur.rules.simple.SimpleRuleSet
- set(int, byte) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- set(int, byte) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- set(int, byte) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- set(int, byte) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- set(int, byte) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- set(int, byte) - Method in class net.royalur.lut.buffer.ValueBuffer
- set(int, byte) - Method in class net.royalur.lut.store.LutMap
- set(int, double) - Method in class net.royalur.lut.buffer.Float32ValueBuffer
- set(int, double) - Method in class net.royalur.lut.buffer.Float64ValueBuffer
- set(int, double) - Method in class net.royalur.lut.buffer.IntValueBuffer
- set(int, double) - Method in class net.royalur.lut.buffer.Percent16ValueBuffer
- set(int, double) - Method in class net.royalur.lut.buffer.ValueBuffer
- set(int, double) - Method in class net.royalur.lut.store.LutMap
- set(int, float) - Method in class net.royalur.lut.buffer.Float32ValueBuffer
- set(int, float) - Method in class net.royalur.lut.buffer.Float64ValueBuffer
- set(int, float) - Method in class net.royalur.lut.buffer.IntValueBuffer
- set(int, float) - Method in class net.royalur.lut.buffer.Percent16ValueBuffer
- set(int, float) - Method in class net.royalur.lut.buffer.ValueBuffer
- set(int, float) - Method in class net.royalur.lut.store.LutMap
- set(int, int) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- set(int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- set(int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- set(int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- set(int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- set(int, int) - Method in class net.royalur.lut.buffer.ValueBuffer
- set(int, int) - Method in class net.royalur.lut.store.LutMap
- set(int, int) - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- set(int, long) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- set(int, long) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- set(int, long) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- set(int, long) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- set(int, long) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- set(int, long) - Method in class net.royalur.lut.buffer.ValueBuffer
- set(int, long) - Method in class net.royalur.lut.store.LutMap
- set(int, short) - Method in class net.royalur.lut.buffer.FloatValueBuffer
- set(int, short) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- set(int, short) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- set(int, short) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- set(int, short) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- set(int, short) - Method in class net.royalur.lut.buffer.ValueBuffer
- set(int, short) - Method in class net.royalur.lut.store.LutMap
- set(Tile, Piece) - Method in class net.royalur.model.Board
-
Sets the piece on
tile
topiece
. - setByIndices(int, int, Piece) - Method in class net.royalur.model.Board
-
Sets the piece on the tile at the indices (
ix
,iy
), 0-based, to the piecepiece
. - setEndTime(TemporalAccessor) - Method in class net.royalur.model.GameMetadata
-
Sets the date and time when this game was finished.
- setStartTime(TemporalAccessor) - Method in class net.royalur.model.GameMetadata
-
Sets the date and time when this game began.
- setTimeControl(TimeControl) - Method in class net.royalur.model.GameMetadata
-
Sets the time control used for this game.
- settings - Variable in class net.royalur.lut.SimpleGameStateEncoding
- settings - Variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- settings - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- SETTINGS_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the settings of a game.
- shallowCopy() - Method in class net.royalur.agent.LutAgent
-
A different instance of Lut must be used on each thread, so this creates a copy of it.
- shallowCopy() - Method in class net.royalur.lut.Lut
-
A different instance of Lut must be used on each thread.
- shape - Variable in class net.royalur.rules.simple.fast.FastSimpleBoard
- shouldGrantExtraRoll(MovedGameState) - Method in class net.royalur.rules.simple.SimpleRuleSet
-
Determines whether the move represented by
movedState
should grant another roll to the player that made the move. - shouldGrantRoll(int, int) - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- sign - Variable in class net.royalur.rules.simple.fast.FastSimplePlayer
-
The sign of this player for pieces.
- SimpleGameStateEncoding - Class in net.royalur.lut
-
Encoding for simple rule-sets.
- SimpleGameStateEncoding(GameSettings) - Constructor for class net.royalur.lut.SimpleGameStateEncoding
- SimplePieceProvider - Class in net.royalur.rules.simple
-
Provides new instances of, and manipulations to, simple pieces.
- SimplePieceProvider() - Constructor for class net.royalur.rules.simple.SimplePieceProvider
- SimplePlayerStateProvider - Class in net.royalur.rules.simple
-
Provides new instances of, and manipulations to, simple player states.
- SimplePlayerStateProvider(int) - Constructor for class net.royalur.rules.simple.SimplePlayerStateProvider
-
Creates a new simple player state provider.
- SimpleRoll - Record Class in net.royalur.model.dice
-
A roll of dice that contains just a value.
- SimpleRoll(int) - Constructor for record class net.royalur.model.dice.SimpleRoll
-
Instantiates a dice roll.
- SimpleRuleSet - Class in net.royalur.rules.simple
-
The most common, simple, rules of the Royal Game of Ur.
- SimpleRuleSet(BoardShape, PathPair, DiceFactory, PieceProvider, PlayerStateProvider, boolean, boolean, boolean) - Constructor for class net.royalur.rules.simple.SimpleRuleSet
-
Instantiates a simple rule set for the Royal Game of Ur.
- SimpleRuleSetProvider - Class in net.royalur.rules.simple
-
A provider that creates simple rule sets.
- SimpleRuleSetProvider() - Constructor for class net.royalur.rules.simple.SimpleRuleSetProvider
- SKIRIUK - Enum constant in enum class net.royalur.model.path.PathType
-
The path proposed by Skiriuk for the Royal Game of Ur.
- SkiriukPathPair - Class in net.royalur.model.path
-
The paths proposed by Skiriuk for the Royal Game of Ur.
- SkiriukPathPair() - Constructor for class net.royalur.model.path.SkiriukPathPair
-
Instantiates Skiriuk's paths for the light and dark player.
- sort() - Method in class net.royalur.lut.store.OrderedUInt32BufferSet
- STANDARD - Enum constant in enum class net.royalur.model.shape.BoardType
-
The standard board shape.
- STANDARD_KEYS - Static variable in class net.royalur.model.GameMetadata
-
Standard metadata keys that are commonly used.
- StandardBoardShape - Class in net.royalur.model.shape
-
The standard shape of board used for The Royal Game of Ur that follows the game boards that were excavated by Sir Leonard Woolley.
- StandardBoardShape() - Constructor for class net.royalur.model.shape.StandardBoardShape
-
Instantiates the standard board shape used for the Royal Game of Ur.
- START_DATETIME_KEY - Static variable in class net.royalur.model.GameMetadata
-
The key for storing when a game started.
- STARTING_PIECE_COUNT_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for game setting of the starting piece count.
- startingNow() - Static method in class net.royalur.model.GameMetadata
- startingPieceCount - Variable in class net.royalur.rules.simple.fast.FastSimpleGame
- startingPieceCount(int) - Method in class net.royalur.GameBuilder
-
Copies this game builder with the number of starting pieces of each player set to
startingPieceCount
. - STATE_TIME_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the time this state was reached in milliseconds since the start of the game.
- STATE_TYPE_ABANDONED - Static variable in class net.royalur.notation.JsonNotation
-
Represents states of type
AbandonedGameState
. - STATE_TYPE_END - Static variable in class net.royalur.notation.JsonNotation
-
Represents states of type
EndGameState
. - STATE_TYPE_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the type of state.
- STATE_TYPE_MOVED - Static variable in class net.royalur.notation.JsonNotation
-
Represents states of type
MovedGameState
. - STATE_TYPE_RESIGNED - Static variable in class net.royalur.notation.JsonNotation
-
Represents states of type
ResignedGameState
. - STATE_TYPE_ROLLED - Static variable in class net.royalur.notation.JsonNotation
-
Represents states of type
RolledGameState
. - STATE_TYPE_WAITING_FOR_MOVE - Static variable in class net.royalur.notation.JsonNotation
-
Represents states of type
WaitingForMoveGameState
. - STATE_TYPE_WAITING_FOR_ROLL - Static variable in class net.royalur.notation.JsonNotation
-
Represents states of type
WaitingForRollGameState
. - STATES_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the list of states in the game.
- StateSource - Class in net.royalur.notation
-
Produces game states from serialised information.
- StateSource() - Constructor for class net.royalur.notation.StateSource
- STD_DEV - Enum constant in enum class net.royalur.stats.SummaryStat
-
The standard deviation of all the measurements.
- stepTowards(Tile) - Method in class net.royalur.model.Tile
-
Takes a unit length step towards the other tile.
- SUM - Enum constant in enum class net.royalur.stats.SummaryStat
-
The sum of all the measurements.
- summarise(GameStats...) - Static method in class net.royalur.stats.GameStats
-
Summarises the statistics of all the given game statistics from
stats
. - summarise(GameStats...) - Static method in class net.royalur.stats.GameStatsSummary
-
Summarises the statistics from many games.
- SummaryStat - Enum Class in net.royalur.stats
-
A statistic that can be used to summarise a set of measurements.
T
- testAgentActions(List<GameSettings>, Function<SimpleRuleSet, Agent>, Function<SimpleRuleSet, Agent>, int, GameStatsTarget[]) - Method in class net.royalur.RGUStatistics
-
Runs tests using AI agents with many game settings.
- THREE - Static variable in record class net.royalur.model.dice.SimpleRoll
-
A constant representing a roll of three.
- THREE_BINARY_0EQ4 - Enum constant in enum class net.royalur.model.dice.DiceType
-
Represents rolling three binary die and counting the number of ones that were rolled.
- Tile - Class in net.royalur.model
-
A tile represents location on a Royal Game of Ur board.
- Tile(int, int) - Constructor for class net.royalur.model.Tile
-
Instantiates a tile location.
- tileFlags - Variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- TIME_CONTROL_KEY - Static variable in class net.royalur.model.GameMetadata
-
The key for storing the time control of a game.
- TimeControl - Class in net.royalur.model
- TimeControl(int) - Constructor for class net.royalur.model.TimeControl
- Timed(long) - Constructor for class net.royalur.rules.TimeProvider.Timed
- TimeProvider - Interface in net.royalur.rules
-
Provides timing information for recording the history of a game.
- TimeProvider.Timed - Class in net.royalur.rules
- TimeProvider.Untimed - Class in net.royalur.rules
- toChar(Piece) - Static method in class net.royalur.model.Piece
-
Converts
piece
to a single character that can be used to textually represent the owner of a piece. - toChar(PlayerType) - Static method in enum class net.royalur.model.PlayerType
-
Converts
player
to a single character that can be used to textually represent a piece. - toSingleCompressedBuffer() - Method in class net.royalur.lut.store.OrderedUInt32BufferSet
- toString() - Method in class net.royalur.model.Board
- toString() - Method in record class net.royalur.model.dice.SimpleRoll
-
Returns a string representation of this record class.
- toString() - Method in class net.royalur.model.GameMetadata
- toString() - Method in class net.royalur.model.Piece
- toString() - Method in class net.royalur.model.PlayerState
- toString() - Method in class net.royalur.model.Tile
-
Converts the location of this tile into a text representation of the format "[letter][number]".
- toString() - Method in class net.royalur.model.TimeControl
- toString() - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- toString() - Method in class net.royalur.rules.simple.fast.FastSimpleGame
- toString() - Method in class net.royalur.rules.simple.fast.FastSimplePlayer
- toString(String) - Method in class net.royalur.rules.simple.fast.FastSimpleBoard
- toString(String, boolean) - Method in class net.royalur.model.Board
-
Writes the contents of this board into a String, where each column is separated by a delimiter.
- train(Lut, File) - Method in class net.royalur.lut.LutTrainer
- train(Lut, File, double) - Method in class net.royalur.lut.LutTrainer
- trainLut(GameSettings, Lut, File, File) - Static method in class net.royalur.lut.LutCLI
- TURN_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the player whose turn it is in a state.
- TWO - Static variable in record class net.royalur.model.dice.SimpleRoll
-
A constant representing a roll of two.
U
- UINT16 - Enum constant in enum class net.royalur.lut.buffer.ValueType
- UInt16ValueBuffer - Class in net.royalur.lut.buffer
- UInt16ValueBuffer(int) - Constructor for class net.royalur.lut.buffer.UInt16ValueBuffer
- UINT32 - Enum constant in enum class net.royalur.lut.buffer.ValueType
- UInt32ValueBuffer - Class in net.royalur.lut.buffer
- UInt32ValueBuffer(int) - Constructor for class net.royalur.lut.buffer.UInt32ValueBuffer
- UINT64 - Enum constant in enum class net.royalur.lut.buffer.ValueType
- UInt64ValueBuffer - Class in net.royalur.lut.buffer
- UInt64ValueBuffer(int) - Constructor for class net.royalur.lut.buffer.UInt64ValueBuffer
- UINT8 - Enum constant in enum class net.royalur.lut.buffer.ValueType
- UInt8ValueBuffer - Class in net.royalur.lut.buffer
- UInt8ValueBuffer(int) - Constructor for class net.royalur.lut.buffer.UInt8ValueBuffer
- unionLists(Collection<Tile>...) - Static method in class net.royalur.model.Tile
-
Calculates the union of all given tile lists.
- Untimed() - Constructor for class net.royalur.rules.TimeProvider.Untimed
- updateLightWinPercent(FastSimpleGame, double) - Method in class net.royalur.lut.Lut
- UtilityFunction - Class in net.royalur.agent.utility
-
A function that is used to score game states.
- UtilityFunction() - Constructor for class net.royalur.agent.utility.UtilityFunction
V
- value() - Method in interface net.royalur.model.dice.Roll
-
Gets the value of this dice roll.
- value() - Method in record class net.royalur.model.dice.SimpleRoll
-
Gets the value of this dice roll.
- ValueBuffer - Class in net.royalur.lut.buffer
-
Stores binary values and provides efficient methods to manipulate it.
- ValueBuffer(ValueType, int) - Constructor for class net.royalur.lut.buffer.ValueBuffer
- valueOf(String) - Static method in enum class net.royalur.lut.buffer.ValueType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.royalur.model.AbandonReason
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.royalur.model.dice.DiceType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.royalur.model.path.PathType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.royalur.model.PlayerType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.royalur.model.shape.BoardType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.royalur.stats.GameStatsTarget
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.royalur.stats.SummaryStat
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.royalur.lut.buffer.ValueType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.royalur.model.AbandonReason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.royalur.model.dice.DiceType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.royalur.model.path.PathType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.royalur.model.PlayerType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.royalur.model.shape.BoardType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.royalur.stats.GameStatsTarget
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.royalur.stats.SummaryStat
-
Returns an array containing the constants of this enum class, in the order they are declared.
- ValueType - Enum Class in net.royalur.lut.buffer
- VARIANCE - Enum constant in enum class net.royalur.stats.SummaryStat
-
The variance of all the measurements.
- VERSION_0 - Static variable in class net.royalur.lut.Lut
- VERSION_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the version of the notation.
W
- WaitingForMoveGameState - Class in net.royalur.rules.state
-
A game state where the game is waiting for a player to make a move.
- WaitingForMoveGameState(Board, PlayerState, PlayerState, long, PlayerType, Roll, List<Move>) - Constructor for class net.royalur.rules.state.WaitingForMoveGameState
-
Instantiates a game state where the game is waiting for a player to make a move.
- WaitingForRollGameState - Class in net.royalur.rules.state
-
A game state where the game is waiting for a player to roll the dice.
- WaitingForRollGameState(Board, PlayerState, PlayerState, long, PlayerType) - Constructor for class net.royalur.rules.state.WaitingForRollGameState
-
Instantiates a game state where the game is waiting for a player to roll the dice.
- warBoardIndices - Variable in class net.royalur.lut.SimpleGameStateEncoding
- warTileCompression - Variable in class net.royalur.lut.SimpleGameStateEncoding
- warTileCompressionTileCount - Variable in class net.royalur.lut.SimpleGameStateEncoding
- warTileCount - Variable in class net.royalur.rules.simple.fast.FastSimpleFlags
- warTileSegmentBits - Variable in class net.royalur.lut.SimpleGameStateEncoding
- warTileSegmentCount - Variable in class net.royalur.lut.SimpleGameStateEncoding
- wasAbandoned() - Method in class net.royalur.Game
-
Gets whether this game was abandoned.
- wasAbandonedByPlayer() - Method in class net.royalur.Game
-
Gets whether a specific player abandoned the game.
- wasResigned() - Method in class net.royalur.Game
-
Gets whether a player resigned from this game.
- width - Variable in class net.royalur.rules.simple.fast.FastSimpleBoard
- WINNER_KEY - Static variable in class net.royalur.notation.JsonNotation
-
The key in the JSON for the player that won the game.
- withBoardShape(BoardShape) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with
boardShape
. - withBoardShape(BoardShapeFactory) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with a board shape from
boardShapeFactory
. - withCapturesGrantExtraRolls(boolean) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with
capturesGrantExtraRolls
. - withDice(DiceFactory) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with
diceFactory
. - withPaths(PathPair) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with
paths
. - withPaths(PathPairFactory) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with paths generated by
pathsFactory
. - withPerMoveSeconds(int) - Static method in class net.royalur.model.TimeControl
- withRosettesGrantExtraRolls(boolean) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with
rosettesGrantExtraRolls
. - withSafeRosettes(boolean) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with
safeRosettes
. - withStartingPieceCount(int) - Method in class net.royalur.model.GameSettings
-
Generates new game settings with
startingPieceCount
. - write(ByteBuffer, int, int) - Method in interface net.royalur.lut.store.ChunkedWriter
- write(Consumer<ByteBuffer>) - Method in class net.royalur.lut.store.DataSink.FileDataSink
- write(Consumer<ByteBuffer>) - Method in class net.royalur.lut.store.DataSink
- write(JsonNotation, JsonGenerator) - Method in class net.royalur.lut.LutMetadata
- write(JsonNotation, File) - Method in class net.royalur.lut.Lut
- write(JsonNotation, FileChannel) - Method in class net.royalur.lut.Lut
- write(JsonNotation, DataSink) - Method in class net.royalur.lut.Lut
- writeAbandonedState(JsonGenerator, AbandonedGameState) - Method in class net.royalur.notation.JsonNotation
- writeActionState(JsonGenerator, ActionGameState) - Method in class net.royalur.notation.JsonNotation
- writeBoard(JsonGenerator, Board) - Method in class net.royalur.notation.JsonNotation
- writeChunked(ChunkedWriter, int, int, int) - Method in class net.royalur.lut.store.DataSink.FileDataSink
- writeChunked(ChunkedWriter, int, int, int) - Method in class net.royalur.lut.store.DataSink
- writeCompleteState(JsonGenerator, GameState) - Method in class net.royalur.notation.JsonNotation
- writeContents(DataSink) - Method in class net.royalur.lut.buffer.ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.Float32ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.Float64ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.Percent16ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.UInt16ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.UInt32ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.UInt64ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.UInt8ValueBuffer
- writeContents(DataSink, int, int) - Method in class net.royalur.lut.buffer.ValueBuffer
- writeControlState(JsonGenerator, ControlGameState) - Method in class net.royalur.notation.JsonNotation
- writeDerivedState(JsonGenerator, GameState) - Method in class net.royalur.notation.JsonNotation
- writeEndState(JsonGenerator, EndGameState) - Method in class net.royalur.notation.JsonNotation
- writeGame(JsonGenerator, Game) - Method in class net.royalur.notation.JsonNotation
- writeGameSettings(JsonGenerator, GameSettings) - Method in class net.royalur.notation.JsonNotation
- writeMetadata(JsonGenerator, GameMetadata) - Method in class net.royalur.notation.JsonNotation
- writeMove(JsonGenerator, Move) - Method in class net.royalur.notation.JsonNotation
- writeMovedState(JsonGenerator, MovedGameState) - Method in class net.royalur.notation.JsonNotation
- writeMoveList(JsonGenerator, List<Move>) - Method in class net.royalur.notation.JsonNotation
- writeOngoingState(JsonGenerator, OngoingGameState) - Method in class net.royalur.notation.JsonNotation
- writePieceField(JsonGenerator, String, Piece) - Method in class net.royalur.notation.JsonNotation
- writePlayableState(JsonGenerator, PlayableGameState) - Method in class net.royalur.notation.JsonNotation
- writePlayerState(JsonGenerator, PlayerState) - Method in class net.royalur.notation.JsonNotation
- writeResignedState(JsonGenerator, ResignedGameState) - Method in class net.royalur.notation.JsonNotation
- writeRoll(JsonGenerator, Roll) - Method in class net.royalur.notation.JsonNotation
- writeRolledState(JsonGenerator, RolledGameState) - Method in class net.royalur.notation.JsonNotation
- writeStates(JsonGenerator, List<GameState>) - Method in class net.royalur.notation.JsonNotation
- writeWaitingForMoveState(JsonGenerator, WaitingForMoveGameState) - Method in class net.royalur.notation.JsonNotation
- writeWaitingForRollState(JsonGenerator, WaitingForRollGameState) - Method in class net.royalur.notation.JsonNotation
Z
- ZERO - Static variable in record class net.royalur.model.dice.SimpleRoll
-
A constant representing a roll of zero.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form