Package org.xxdc.oss.example
package org.xxdc.oss.example
-
ClassDescriptionRepresents a bot player in the game.Represents a game of Tic-Tac-Toe, including the game board, players, and game state.Represents a game board for a game.Represents a game board for a game, such as tic-tac-toe.Provides methods for saving and loading a
Gameobject to/from a file.Represents an exception that can occur when using the game service.Represents the current state of a game, including the game board, player markers, and the index of the current player.Represents a human player in the game.Represents an input source that can be used to read a line of text.Thrown when an invalid move is attempted in the game.This interface defines a contract for classes that can be serialized to JSON strings.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);Manages player IDs for a game system.marker and apply the player's next move to the game state.PlayerNode.Local<P extends Player>Represents a local player node that implements the player's logic directly in the application.Represents a remote player node that communicates with a client over a transport server.Represents a collection ofPlayerNodeinstances, providing methods to manage and render the players.Provides a utility to generate a player identifier string for a givenPlayerNode.