Index

A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

accept() - Method in interface org.xxdc.oss.example.transport.TransportServer
Receive a move selection from the client.
afterPlayerMoves(int) - Method in record class org.xxdc.oss.example.GameState
Creates a new GameState instance with the current player's move applied to the game board.
alphabeta(BotStrategyConfig) - Static method in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Minimax w.
AlphaBeta - Class in org.xxdc.oss.example.bot
Implements the Alpha-Beta pruning algorithm for a two-player game.
AlphaBeta(GameState) - Constructor for class org.xxdc.oss.example.bot.AlphaBeta
Constructs an instance of the AlphaBeta bot strategy with the given initial game state and default configuration.
AlphaBeta(GameState, BotStrategyConfig) - Constructor for class org.xxdc.oss.example.bot.AlphaBeta
Constructs an instance of the AlphaBeta bot strategy with the given initial game state and configuration.
ALPHABETA - Static variable in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Minimax w.
Analyzers - Class in org.xxdc.oss.example.analysis
A collection of analyzers for gathering data points from the game state.
applyAsInt(GameState) - Method in interface org.xxdc.oss.example.PlayerNode
Gets the player's next move to apply to the game board with the current game state.
applyAsInt(GameState) - Method in class org.xxdc.oss.example.PlayerNode.Local
Gets the player's next move to apply to the given game board.
applyAsInt(GameState) - Method in class org.xxdc.oss.example.PlayerNode.Remote
Gets the player's next move to apply to the given game board.
asJsonString() - Method in interface org.xxdc.oss.example.GameBoard
Converts the game board to a JSON string representation for serialization.
asJsonString() - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
 
asJsonString() - Method in record class org.xxdc.oss.example.GameState
 
asJsonString() - Method in interface org.xxdc.oss.example.JsonSerializable
Returns the JSON representation of the object.
availableMoves() - Method in interface org.xxdc.oss.example.GameBoard
Returns a list of available moves on the game board.
availableMoves() - Method in record class org.xxdc.oss.example.GameState
Returns a list of available moves on the game board.

B

bestMove() - Method in class org.xxdc.oss.example.bot.AlphaBeta
 
bestMove() - Method in interface org.xxdc.oss.example.bot.BotStrategy
Returns the best move for the current game state.
bestMove() - Method in class org.xxdc.oss.example.bot.Custom
 
bestMove() - Method in class org.xxdc.oss.example.bot.MaxN
 
bestMove() - Method in class org.xxdc.oss.example.bot.Minimax
 
bestMove() - Method in class org.xxdc.oss.example.bot.MonteCarloTreeSearch
 
bestMove() - Method in class org.xxdc.oss.example.bot.Paranoid
 
bestMove() - Method in class org.xxdc.oss.example.bot.Random
 
bestMove(List) - Method in interface org.xxdc.oss.example.bot.custom.CustomBotStrategy
Returns the best move for the current game state.
board() - Method in record class org.xxdc.oss.example.GameState
Returns the value of the board record component.
BotPlayer - Record Class in org.xxdc.oss.example
Represents a bot player in the game.
BotPlayer() - Constructor for record class org.xxdc.oss.example.BotPlayer
Constructs a new BotPlayer instance using the default BotStrategy.
BotPlayer(ToIntFunction) - Constructor for record class org.xxdc.oss.example.BotPlayer
Creates an instance of a BotPlayer record class.
BotStrategy - Interface in org.xxdc.oss.example.bot
An interface representing a bot strategy for a game returning a move for the current game state.
BotStrategyConfig - Class in org.xxdc.oss.example.bot
Represents the configuration for a bot strategy, including limits on the number of iterations, depth, and maximum execution time.
BotStrategyConfig.Builder - Class in org.xxdc.oss.example.bot
A builder for constructing a BotStrategyConfig instance.
build() - Method in class org.xxdc.oss.example.bot.BotStrategyConfig.Builder
Builds a BotStrategyConfig instance with the configured settings.
build() - Method in class org.xxdc.oss.example.GameContext.Builder
Builds the game context.
Builder() - Constructor for class org.xxdc.oss.example.bot.BotStrategyConfig.Builder
 
Builder() - Constructor for class org.xxdc.oss.example.GameContext.Builder
 
byIndex(int) - Method in class org.xxdc.oss.example.PlayerNodes
Returns the PlayerNode instance at the specified index in the ordered list of players.

C

CenterSquareControl(String, GameState, int) - Constructor for record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
Creates an instance of a CenterSquareControl record class.
clone() - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
 
close() - Method in class org.xxdc.oss.example.Game
 
close() - Method in class org.xxdc.oss.example.PlayerNode.Remote
 
close() - Method in class org.xxdc.oss.example.PlayerNodes
 
comment(StrategicTurningPoint) - Method in interface org.xxdc.oss.example.commentary.CommentaryPersona
 
comment(StrategicTurningPoint) - Method in class org.xxdc.oss.example.commentary.DefaultAckCommentaryPersona
 
comment(StrategicTurningPoint) - Method in class org.xxdc.oss.example.commentary.DefaultLiveCommentaryPersona
 
comment(StrategicTurningPoint) - Method in class org.xxdc.oss.example.commentary.DefaultPostAnalysisCommentaryPersona
 
comment(StrategicTurningPoint) - Method in class org.xxdc.oss.example.commentary.EsportsLiveCommentaryPersona
 
comment(StrategicTurningPoint) - Method in class org.xxdc.oss.example.commentary.EsportsPostAnalysisCommentaryPersona
 
CommentaryPersona - Interface in org.xxdc.oss.example.commentary
Persona / personality that provides a comment on a strategic turning point in the game.
content() - Method in interface org.xxdc.oss.example.GameBoard
 
content() - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
Returns the value of the content record component.
createdAt() - Method in record class org.xxdc.oss.example.GameContext
Returns the value of the createdAt record component.
currentPlayer() - Method in record class org.xxdc.oss.example.GameState
Returns the current player's marker.
currentPlayerIndex() - Method in record class org.xxdc.oss.example.GameState
Returns the value of the currentPlayerIndex record component.
Custom - Class in org.xxdc.oss.example.bot
Implements a custom bot move strategy for the game, delegating to a specific custom implementation.
Custom(GameState, CustomBotStrategy) - Constructor for class org.xxdc.oss.example.bot.Custom
 
CustomBotStrategy - Interface in org.xxdc.oss.example.bot.custom
Custom, extended bot strategy

D

DEFAULT - Static variable in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a default strategy (Random).
DefaultAckCommentaryPersona - Class in org.xxdc.oss.example.commentary
Persona / personality that provides an acknowledgement of a strategic turning point in the game.
DefaultAckCommentaryPersona() - Constructor for class org.xxdc.oss.example.commentary.DefaultAckCommentaryPersona
 
DefaultLiveCommentaryPersona - Class in org.xxdc.oss.example.commentary
Persona / personality that provides a comment on a strategic turning point in the game.
DefaultLiveCommentaryPersona() - Constructor for class org.xxdc.oss.example.commentary.DefaultLiveCommentaryPersona
 
DefaultPostAnalysisCommentaryPersona - Class in org.xxdc.oss.example.commentary
Persona that provides post-game analysis commentary on a strategic turning point in the game.
DefaultPostAnalysisCommentaryPersona() - Constructor for class org.xxdc.oss.example.commentary.DefaultPostAnalysisCommentaryPersona
 
dimension() - Method in interface org.xxdc.oss.example.GameBoard
Returns the dimension of the game board, which is the number of rows or columns.
dimension() - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
Returns the value of the dimension record component.

E

empty() - Static method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns an empty BotStrategyConfig instance.
equals(Object) - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.BotPlayer
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.GameContext
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.GameState
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.HumanPlayer
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.xxdc.oss.example.transport.TransportConfiguration
Indicates whether some other object is "equal to" this one.
EsportsLiveCommentaryPersona - Class in org.xxdc.oss.example.commentary
Persona that provides energetic, esports-style commentary on a strategic turning point in the game.
EsportsLiveCommentaryPersona() - Constructor for class org.xxdc.oss.example.commentary.EsportsLiveCommentaryPersona
 
EsportsPostAnalysisCommentaryPersona - Class in org.xxdc.oss.example.commentary
Persona that provides esports-style post-game analysis commentary on a strategic turning point in the game.
EsportsPostAnalysisCommentaryPersona() - Constructor for class org.xxdc.oss.example.commentary.EsportsPostAnalysisCommentaryPersona
 
exceedsMaxDepth(int) - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns whether the current depth exceeds the maximum allowed depth for the bot strategy.
exceedsMaxIterations(int) - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns whether the number of iterations for the bot strategy exceeds the maximum allowed.
exceedsMaxTimeMillis(long) - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns whether the current execution time in milliseconds exceeds the maximum allowed time for the bot strategy.

F

from(File) - Static method in class org.xxdc.oss.example.Game
Loads a Game instance from the specified file.
from(GameState, GameState, int) - Static method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
 

G

Game - Class in org.xxdc.oss.example
Represents a game of Tic-Tac-Toe, including the game board, players, and game state.
Game() - Constructor for class org.xxdc.oss.example.Game
Constructs a new Game instance with a 3x3 game board, persistence enabled, and a human player as player 'X' and a bot player as player 'O'.
Game(int, boolean, Consumer, PlayerNode...) - Constructor for class org.xxdc.oss.example.Game
Constructs a new Game with the ability to customize the GameContext before it is built, allowing callers to enrich metadata.
Game(int, boolean, PlayerNode...) - Constructor for class org.xxdc.oss.example.Game
Constructs a new Game instance with the specified game board size, persistence enabled state, and player nodes.
Game(Consumer) - Constructor for class org.xxdc.oss.example.Game
Convenience constructor with default size and persistence flags, but allowing context customization.
GameBoard - Interface in org.xxdc.oss.example
Represents a game board for a game.
GameBoardLocalImpl - Record Class in org.xxdc.oss.example
Represents a game board for a game, such as tic-tac-toe.
GameBoardLocalImpl(int) - Constructor for record class org.xxdc.oss.example.GameBoardLocalImpl
Constructs a new GameBoardLocalImpl instance with the specified dimension and initializes the content array with null values.
GameBoardLocalImpl(int, String[]) - Constructor for record class org.xxdc.oss.example.GameBoardLocalImpl
Creates an instance of a GameBoardLocalImpl record class.
gameContext() - Static method in class org.xxdc.oss.example.Game
Returns the current game context, if any.
GameContext - Record Class in org.xxdc.oss.example
The context of a game.
GameContext(String, long, Map) - Constructor for record class org.xxdc.oss.example.GameContext
Creates an instance of a GameContext record class.
GameContext.Builder - Class in org.xxdc.oss.example
A builder for creating a game context.
GamePersistence - Class in org.xxdc.oss.example
Provides methods for saving and loading a Game object to/from a file.
GamePersistence() - Constructor for class org.xxdc.oss.example.GamePersistence
 
GameServiceException - Exception Class in org.xxdc.oss.example
Represents an exception that can occur when using the game service.
GameServiceException(String) - Constructor for exception class org.xxdc.oss.example.GameServiceException
Constructs a new GameServiceException with the specified error message.
GameServiceException(String, Throwable) - Constructor for exception class org.xxdc.oss.example.GameServiceException
Constructs a new GameServiceException with the specified error message and cause.
gameState() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
Returns the value of the gameState record component.
gameState() - Method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
The game state at the strategic turning point.
gameState() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
Returns the value of the gameState record component.
gameState() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
Returns the value of the gameState record component.
GameState - Record Class in org.xxdc.oss.example
Represents the current state of a game, including the game board, player markers, and the index of the current player.
GameState(GameBoard, List, int) - Constructor for record class org.xxdc.oss.example.GameState
Constructs a new GameState instance with the provided game board, player markers, and the index of the current player.
GameState(GameBoard, List, int, int) - Constructor for record class org.xxdc.oss.example.GameState
Creates an instance of a GameState record class.
GameState(GameState) - Constructor for record class org.xxdc.oss.example.GameState
Constructs a new GameState instance by copying the state from the provided GameState object.
GameWon(String, GameState, int) - Constructor for record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
Creates an instance of a GameWon record class.
getMaxDepth() - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns the maximum depth allowed for the bot strategy.
getMaxIterations() - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns the maximum number of iterations allowed for the bot strategy.
getMaxTimeMillis() - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns the maximum execution time in milliseconds allowed for the bot strategy.
getNextId() - Method in class org.xxdc.oss.example.PlayerIds
Retrieves the current value of the next player ID without incrementing it.
getNextIdAndIncrement() - Method in class org.xxdc.oss.example.PlayerIds
Atomically retrieves the current value of the next player ID and increments it.
getPlayerIdentifier(PlayerNode) - Method in class org.xxdc.oss.example.PlayerPrinter
Generates a player identifier string for the given `PlayerNode` instance.

H

hasChain(String) - Method in interface org.xxdc.oss.example.GameBoard
Checks if the given player has a winning chain of connected game pieces on the game board.
hasChain(String) - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
 
hasChain(String) - Method in record class org.xxdc.oss.example.GameState
Checks if the specified player has a chain on the game board.
hashCode() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.BotPlayer
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.GameContext
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.GameState
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.HumanPlayer
Returns a hash code value for this object.
hashCode() - Method in record class org.xxdc.oss.example.transport.TransportConfiguration
Returns a hash code value for this object.
hasMaxDepth() - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns whether the maximum depth has been set for the bot strategy.
hasMaxIterations() - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns whether the maximum number of iterations has been set for the bot strategy.
hasMaxTimeMillis() - Method in class org.xxdc.oss.example.bot.BotStrategyConfig
Returns whether the maximum execution time in milliseconds has been set for the bot strategy.
hasMovesAvailable() - Method in interface org.xxdc.oss.example.GameBoard
Checks if there are any available moves on the game board.
hasMovesAvailable() - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
 
hasMovesAvailable() - Method in record class org.xxdc.oss.example.GameState
Checks if there are any available moves on the game board.
hasPlayer(String, int) - Method in interface org.xxdc.oss.example.GameBoard
Checks if the given player is present at the given location on the game board.
hasPlayer(String, int) - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
 
HIGH - Enum constant in enum class org.xxdc.oss.example.analysis.StrategicTurningPoint.PriorityLevel
 
history() - Method in class org.xxdc.oss.example.Game
Returns the history of the game, including all moves made.
HumanPlayer - Record Class in org.xxdc.oss.example
Represents a human player in the game.
HumanPlayer() - Constructor for record class org.xxdc.oss.example.HumanPlayer
Creates an instance of a HumanPlayer record class.
HumanPlayer.Input - Interface in org.xxdc.oss.example
Represents an input source that can be used to read a line of text.

I

id() - Method in class org.xxdc.oss.example.Game
Returns the unique identifier for this game instance.
id() - Method in record class org.xxdc.oss.example.GameContext
Returns the value of the id record component.
id(String) - Method in class org.xxdc.oss.example.GameContext.Builder
Sets the ID of the game context.
ImmediateLossPrevention(String, GameState, int) - Constructor for record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
Creates an instance of a ImmediateLossPrevention record class.
initialize(TransportConfiguration) - Method in interface org.xxdc.oss.example.transport.TransportServer
Initialize the transport server.
InvalidMoveException - Exception Class in org.xxdc.oss.example
Thrown when an invalid move is attempted in the game.
InvalidMoveException() - Constructor for exception class org.xxdc.oss.example.InvalidMoveException
Constructs a new InvalidMoveException with no detail message.
InvalidMoveException(String) - Constructor for exception class org.xxdc.oss.example.InvalidMoveException
Constructs a new InvalidMoveException with the specified detail message.
isEmpty() - Method in interface org.xxdc.oss.example.GameBoard
 
isGameContextSet() - Static method in class org.xxdc.oss.example.Game
 
isTerminal() - Method in record class org.xxdc.oss.example.GameState
Checks if the game is in a terminal state, where either there are no more available moves or a player has a chain.
isValidMove(int) - Method in interface org.xxdc.oss.example.GameBoard
Checks if the given location on the game board is a valid move (i.e.
isValidMove(int) - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
 

J

JsonSerializable - Interface in org.xxdc.oss.example
This interface defines a contract for classes that can be serialized to JSON strings.

L

lastMove() - Method in record class org.xxdc.oss.example.GameState
Returns the value of the lastMove record component.
lastPlayer() - Method in record class org.xxdc.oss.example.GameState
Returns the last player's marker from the list of player markers.
lastPlayerHasChain() - Method in record class org.xxdc.oss.example.GameState
Checks if the last player to move has a chain on the game board.
lastPlayerIndex() - Method in record class org.xxdc.oss.example.GameState
Returns the index of the last player to move in the list of player markers.
loadFrom(File) - Method in class org.xxdc.oss.example.GamePersistence
Reads a Game object from the specified file and returns it.
Local(String, P) - Constructor for class org.xxdc.oss.example.PlayerNode.Local
Constructs a new Local PlayerNode instance with the given player marker and player implementation.
log - Static variable in interface org.xxdc.oss.example.GameBoard
 
LOW - Enum constant in enum class org.xxdc.oss.example.analysis.StrategicTurningPoint.PriorityLevel
 

M

maxDepth(Integer) - Method in class org.xxdc.oss.example.bot.BotStrategyConfig.Builder
Sets the maximum depth for the bot strategy.
maxIterations(Integer) - Method in class org.xxdc.oss.example.bot.BotStrategyConfig.Builder
Sets the maximum number of iterations for the bot strategy.
maxn(BotStrategyConfig) - Static method in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a MaxN strategy.
MaxN - Class in org.xxdc.oss.example.bot
Implements the MaxN bot strategy for a game.
MaxN(GameState) - Constructor for class org.xxdc.oss.example.bot.MaxN
Constructs a new MaxN bot strategy with the given initial game state and default configuration.
MaxN(GameState, BotStrategyConfig) - Constructor for class org.xxdc.oss.example.bot.MaxN
Constructs a new MaxN bot strategy with the given initial game state and configuration.
MAXN - Static variable in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a MaxN strategy.
maxTimeMillis(Long) - Method in class org.xxdc.oss.example.bot.BotStrategyConfig.Builder
Sets the maximum execution time in milliseconds for the bot strategy.
maxTimeMillis(TimeUnit, long) - Method in class org.xxdc.oss.example.bot.BotStrategyConfig.Builder
Sets the maximum execution time for the bot strategy.
mcts(BotStrategyConfig) - Static method in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Monte Carlo Tree Search strategy.
MCTS - Static variable in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Monte Carlo Search Tree strategy.
MEDIUM - Enum constant in enum class org.xxdc.oss.example.analysis.StrategicTurningPoint.PriorityLevel
 
metadata() - Method in record class org.xxdc.oss.example.GameContext
Returns the value of the metadata record component.
minimax(BotStrategyConfig) - Static method in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Minimax strategy.
Minimax - Class in org.xxdc.oss.example.bot
Implements a Minimax algorithm-based bot strategy for a game.
Minimax(GameState) - Constructor for class org.xxdc.oss.example.bot.Minimax
Constructs a new Minimax instance with the given initial game state and default bot strategy configuration.
Minimax(GameState, BotStrategyConfig) - Constructor for class org.xxdc.oss.example.bot.Minimax
Constructs a new Minimax instance with the given initial game state and bot strategy configuration.
MINIMAX - Static variable in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Minimax strategy.
MonteCarloTreeSearch - Class in org.xxdc.oss.example.bot
Implements the Monte Carlo Tree Search (MCTS) algorithm for a game bot strategy.
MonteCarloTreeSearch(GameState) - Constructor for class org.xxdc.oss.example.bot.MonteCarloTreeSearch
Constructs a new instance of the MonteCarloTreeSearch class with the given initial game state and a default configuration (max time limit of 1 second).
MonteCarloTreeSearch(GameState, BotStrategyConfig) - Constructor for class org.xxdc.oss.example.bot.MonteCarloTreeSearch
Constructs a new instance of the MonteCarloTreeSearch class with the given initial game state and configuration.
moveNumber() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
Returns the value of the moveNumber record component.
moveNumber() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
Returns the value of the moveNumber record component.
moveNumber() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
Returns the value of the moveNumber record component.
moveNumber() - Method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
The move number at the strategic turning point.
moveNumber() - Method in class org.xxdc.oss.example.Game
Returns the current move number.
movePreventedImmediateLoss(GameState, GameState) - Static method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
Check for a strategic turning point where the player is about to lose.
moveTakesCenterSquareControl(GameState, GameState) - Static method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
Check for a strategic turning point where the player has control of the center square.
moveWinsGame(GameState) - Static method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
Check for a strategic turning point where the player has won the game.

N

NaiveFifoGenerator - Class in org.xxdc.oss.example.bot.custom
Naive FIFO bot implementation that implements the CustomBotStrategy interface.
NaiveFifoGenerator() - Constructor for class org.xxdc.oss.example.bot.custom.NaiveFifoGenerator
 
newBuilder() - Static method in class org.xxdc.oss.example.bot.BotStrategyConfig
Creates a new BotStrategyConfig.Builder instance.
newGeneratedBot() - Static method in class org.xxdc.oss.example.bot.custom.NaiveFifoGenerator
Generates a new instance of the NaiveFifoGenerator class.
nextMove(GameState) - Method in record class org.xxdc.oss.example.BotPlayer
 
nextMove(GameState) - Method in record class org.xxdc.oss.example.HumanPlayer
 
nextMove(GameState) - Method in interface org.xxdc.oss.example.Player
Chooses the next valid move on the game board.
nextPlayerIndex(int) - Method in class org.xxdc.oss.example.PlayerNodes
Returns the index of the next player in the ordered list of players.
numberOfPlayers() - Method in class org.xxdc.oss.example.Game
Returns the number of players in the game.

O

of(PlayerNode...) - Static method in class org.xxdc.oss.example.PlayerNodes
Creates a new PlayerNodes instance and adds the provided PlayerNode instances to it.
ofBots() - Static method in class org.xxdc.oss.example.Game
Constructs a new Game instance with a 3x3 game board, persistence disabled, and a bot player as player 'X' and a bot player as player 'O'.
org.xxdc.oss.example - package org.xxdc.oss.example
 
org.xxdc.oss.example.analysis - package org.xxdc.oss.example.analysis
 
org.xxdc.oss.example.bot - package org.xxdc.oss.example.bot
 
org.xxdc.oss.example.bot.custom - package org.xxdc.oss.example.bot.custom
 
org.xxdc.oss.example.commentary - package org.xxdc.oss.example.commentary
 
org.xxdc.oss.example.transport - package org.xxdc.oss.example.transport
 

P

paranoid(BotStrategyConfig) - Static method in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Paranoid strategy.
Paranoid - Class in org.xxdc.oss.example.bot
Implements a "paranoid" bot strategy for a game.
Paranoid(GameState) - Constructor for class org.xxdc.oss.example.bot.Paranoid
Constructs a new Paranoid bot strategy with the given initial game state.
Paranoid(GameState, BotStrategyConfig) - Constructor for class org.xxdc.oss.example.bot.Paranoid
Constructs a new Paranoid bot strategy with the given initial game state and configuration.
PARANOID - Static variable in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Paranoid strategy.
play() - Method in class org.xxdc.oss.example.Game
Plays the game, rendering the board, applying player moves, and persisting the game state if enabled.
player() - Method in class org.xxdc.oss.example.PlayerNode.Local
 
Player - Interface in org.xxdc.oss.example

Tic-tac-toe player interface for all players

// Create a human player
Player player = new HumanPlayer();

// Choose the next valid move on the game board
int validBoardLocation = player.nextMove(gameState);
PlayerIds - Class in org.xxdc.oss.example
Manages player IDs for a game system.
PlayerIds(int) - Constructor for class org.xxdc.oss.example.PlayerIds
Constructs a new PlayerIds instance with the specified initial value.
playerMarker() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
Returns the value of the playerMarker record component.
playerMarker() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
Returns the value of the playerMarker record component.
playerMarker() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
Returns the value of the playerMarker record component.
playerMarker() - Method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
The player marker for the player who made the strategic move.
playerMarker() - Method in class org.xxdc.oss.example.PlayerNode.Local
 
playerMarker() - Method in interface org.xxdc.oss.example.PlayerNode
Gets the player's marker: a string representation of the player's identity.
playerMarker() - Method in class org.xxdc.oss.example.PlayerNode.Remote
 
playerMarker() - Method in record class org.xxdc.oss.example.transport.TransportConfiguration
Returns the value of the playerMarker record component.
playerMarkerList() - Method in class org.xxdc.oss.example.PlayerNodes
Returns a list of all the player markers in the PlayerNodes instance.
playerMarkers() - Method in record class org.xxdc.oss.example.GameState
Returns the value of the playerMarkers record component.
playerMarkers() - Method in class org.xxdc.oss.example.PlayerNodes
Returns a comma-separated string of all the player markers in the PlayerNodes instance.
PlayerNode - Interface in org.xxdc.oss.example
marker and apply the player's next move to the game state.
PlayerNode.Local<P> - Class in org.xxdc.oss.example
Represents a local player node that implements the player's logic directly in the application.
PlayerNode.Remote - Class in org.xxdc.oss.example
Represents a remote player node that communicates with a client over a transport server.
PlayerNodes - Class in org.xxdc.oss.example
Represents a collection of PlayerNode instances, providing methods to manage and render the players.
PlayerNodes() - Constructor for class org.xxdc.oss.example.PlayerNodes
Constructs a new PlayerNodes instance with an initial capacity of 2 for both the player map and the player marker list.
PlayerPrinter - Class in org.xxdc.oss.example
Provides a utility to generate a player identifier string for a given PlayerNode.
PlayerPrinter() - Constructor for class org.xxdc.oss.example.PlayerPrinter
 
playWithAction(Consumer) - Method in class org.xxdc.oss.example.Game
Plays the game, rendering the board, applying player moves, and persisting the game state if enabled.
priorityLevel() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
 
priorityLevel() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
 
priorityLevel() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
 
priorityLevel() - Method in interface org.xxdc.oss.example.analysis.StrategicTurningPoint
The priority level of the strategic turning point.
put(String, String) - Method in class org.xxdc.oss.example.GameContext.Builder
Adds a single metadata entry.
putAll(Map) - Method in class org.xxdc.oss.example.GameContext.Builder
Adds all metadata entries from the provided map.

R

random(BotStrategyConfig) - Static method in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Random strategy.
Random - Class in org.xxdc.oss.example.bot
Implements a bot strategy that makes random moves based on the available moves in the game state.
Random(GameState) - Constructor for class org.xxdc.oss.example.bot.Random
Constructs a new Random bot strategy instance with the given game state.
RANDOM - Static variable in interface org.xxdc.oss.example.bot.BotStrategy
Returns a function that returns the best move for the current game state using a Random strategy.
readLine() - Method in interface org.xxdc.oss.example.HumanPlayer.Input
Reads a line of text from the input source.
Remote(String, TransportServer) - Constructor for class org.xxdc.oss.example.PlayerNode.Remote
Constructs a new Remote PlayerNode instance that communicates with a client over the provided TransportServer.
render() - Method in class org.xxdc.oss.example.PlayerNodes
Renders a list of players, logging their player identifiers.

S

saveTo(File, Game) - Method in class org.xxdc.oss.example.GamePersistence
Saves the provided Game object to the specified file.
send(GameState) - Method in interface org.xxdc.oss.example.transport.TransportServer
Send the given game state to the client.
StrategicTurningPoint - Interface in org.xxdc.oss.example.analysis
A strategic turning point in a game of Tic-Tac-Toe.
StrategicTurningPoint.CenterSquareControl - Record Class in org.xxdc.oss.example.analysis
A strategic turning point where the player has control of the center square.
StrategicTurningPoint.GameWon - Record Class in org.xxdc.oss.example.analysis
A strategic turning point where the player has won the game.
StrategicTurningPoint.ImmediateLossPrevention - Record Class in org.xxdc.oss.example.analysis
A strategic turning point where the player has prevented an immediate loss.
StrategicTurningPoint.PriorityLevel - Enum Class in org.xxdc.oss.example.analysis
Priority/severity level of the strategic turning point.
strategicTurningPoints() - Static method in class org.xxdc.oss.example.analysis.Analyzers
 
strategyFunction() - Method in record class org.xxdc.oss.example.BotPlayer
Returns the value of the strategyFunction record component.

T

toString() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.CenterSquareControl
Returns a string representation of this record class.
toString() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.GameWon
Returns a string representation of this record class.
toString() - Method in record class org.xxdc.oss.example.analysis.StrategicTurningPoint.ImmediateLossPrevention
Returns a string representation of this record class.
toString() - Method in record class org.xxdc.oss.example.BotPlayer
Returns a string representation of this record class.
toString() - Method in interface org.xxdc.oss.example.GameBoard
Returns a string representation of the game board for presentation to the player.
toString() - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
Returns a string representation of this record class.
toString() - Method in record class org.xxdc.oss.example.GameContext
Returns a string representation of this record class.
toString() - Method in record class org.xxdc.oss.example.GameState
Returns a string representation of this record class.
toString() - Method in record class org.xxdc.oss.example.HumanPlayer
Returns a string representation of this record class.
toString() - Method in class org.xxdc.oss.example.PlayerNode.Local
 
toString() - Method in class org.xxdc.oss.example.PlayerNode.Remote
 
toString() - Method in record class org.xxdc.oss.example.transport.TransportConfiguration
Returns a string representation of this record class.
TransportConfiguration - Record Class in org.xxdc.oss.example.transport
Represents the configuration for the transport layer, including the player marker.
TransportConfiguration(String) - Constructor for record class org.xxdc.oss.example.transport.TransportConfiguration
Creates an instance of a TransportConfiguration record class.
TransportException - Exception Class in org.xxdc.oss.example.transport
Represents an exception that occurred during transport-related operations.
TransportException(String) - Constructor for exception class org.xxdc.oss.example.transport.TransportException
Constructs a new TransportException with the specified detail message.
TransportException(String, Throwable) - Constructor for exception class org.xxdc.oss.example.transport.TransportException
Constructs a new TransportException with the specified detail message and cause.
TransportException(Throwable) - Constructor for exception class org.xxdc.oss.example.transport.TransportException
Constructs a new TransportException with the specified cause.
TransportServer - Interface in org.xxdc.oss.example.transport
A server that communicates with a client over a transport protocol.

U

useNative - Static variable in interface org.xxdc.oss.example.GameBoard
 

V

valueOf(String) - Static method in enum class org.xxdc.oss.example.analysis.StrategicTurningPoint.PriorityLevel
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.xxdc.oss.example.analysis.StrategicTurningPoint.PriorityLevel
Returns an array containing the constants of this enum class, in the order they are declared.

W

withDimension(int) - Static method in interface org.xxdc.oss.example.GameBoard
Creates a new GameBoard instance with the given dimension.
withMove(String, int) - Method in interface org.xxdc.oss.example.GameBoard
Creates a new GameBoard instance with the given player's move made at the specified location within the game board dimension x dimension
withMove(String, int) - Method in record class org.xxdc.oss.example.GameBoardLocalImpl
 
withOrdinal(int) - Method in class org.xxdc.oss.example.commentary.EsportsPostAnalysisCommentaryPersona
 
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form