A B C D E F G H I L M N O P R S T U V W Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(HashTableElement) - Method in class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
-
Inserts the given Object into the hashtable according to the TwoDeep scheme.
- addChild(MinimaxComponent) - Method in class org.swtpra1.relativeterritoryplayer.MinimaxNode
-
Deprecated.Adds a child minimaxComponent to children.
- addChild(T) - Method in class org.swtpra1.alphabetaplayer.openingbook.TreeNode
-
Adds a child to a existing tree node.
- AIPlayer - Class in org.swtpra1
-
Abstract class for all player implementations.
- AIPlayer() - Constructor for class org.swtpra1.AIPlayer
- AIServer - Class in org.swtpra1
-
The player-server which creates a minimax/random player and handles messages from server.
- AIServer(int, AIPlayer) - Constructor for class org.swtpra1.AIServer
-
Create new AIServer.
- AIServer(int, AIPlayer, boolean) - Constructor for class org.swtpra1.AIServer
-
Create new AIServer.
- AIServer(int, AIPlayer, boolean, boolean) - Constructor for class org.swtpra1.AIServer
-
Create new AIServer.
- AIServerMain - Class in org.swtpra1
-
Main class of player-server.
- AIServerMain() - Constructor for class org.swtpra1.AIServerMain
- allPlayersFree(Game) - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Checks whether all participating players of a game are free to play right now.
- alphaBeta - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
Implementation of the Negamax tree with AlphaBetaSearchTree pruning.
- AlphaBetaPlayer - Class in org.swtpra1.alphabetaplayer
-
Implementation of player that uses negamax search with alpha beta pruning optimization.
- AlphaBetaPlayer() - Constructor for class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
create an AlphaBetaPlayer with default values.
- AlphaBetaPlayer(Evaluator, int, boolean, long, int, File, boolean) - Constructor for class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
Player instance that can can be fully customized.
- AlphaBetaSearchTree - Class in org.swtpra1.alphabetaplayer.alphabeta
-
Implements the Negamax search algorithm with alpha beta pruning optimization based on a given Evaluation function.
- AlphaBetaSearchTree(Evaluator, int) - Constructor for class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
-
Creates a search tree instance with a given evaluation function.
- AlphaBetaSearchTreeWithTranspositionTables - Class in org.swtpra1.alphabetaplayer.transpositiontables
-
Implements the negamax search algorithm with alpha beta pruning and transposition table optimization.
- AlphaBetaSearchTreeWithTranspositionTables(Evaluator, int) - Constructor for class org.swtpra1.alphabetaplayer.transpositiontables.AlphaBetaSearchTreeWithTranspositionTables
-
Creates a search tree instance of negamax search with alpha beta pruning and transposition table optimization.
- AlphaBetaWithTranspositionTablesPlayer - Class in org.swtpra1.alphabetaplayer
-
Player implementation that uses the AlphaBetaSearchTreeWithTranspositionTables
- AlphaBetaWithTranspositionTablesPlayer() - Constructor for class org.swtpra1.alphabetaplayer.AlphaBetaWithTranspositionTablesPlayer
-
create an Alpha beta search with transposition tables instace with sane defaults.
- AlphaBetaWithTranspositionTablesPlayer(Evaluator, int, boolean, long, int, File, boolean) - Constructor for class org.swtpra1.alphabetaplayer.AlphaBetaWithTranspositionTablesPlayer
-
Creates an alpha beta search instance with transposition tables that has fully customized values.
- AMAZONE_P0 - org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
- AMAZONE_P1 - org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
- amazonePositions - Variable in class org.swtpra1.alphabetaplayer.hippolyta.CachedBoard
- ARROW - org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
- ARROW - Static variable in class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
B
- BLACK - org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
- board - Variable in class org.swtpra1.messages.StartMessage
-
A representation of the board as described above.
- board - Variable in class org.swtpra1.messages.TurnMessage
-
A representation of the board as described above.
- Board - Class in org.swtpra1.alphabetaplayer.hippolyta.model
-
configuration and state of a game board
- Board - Class in org.swtpra1.amazongame
-
Describes the state of the pieces on the board at a given time.
- Board(int, int) - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.model.Board
-
creates and initializes the board object.
- Board(int, int) - Constructor for class org.swtpra1.amazongame.Board
-
Represents a Board of size pRows x pColumns.
- Board(Board) - Constructor for class org.swtpra1.amazongame.Board
-
Dummy constructor to reliably clone a Board object.
- BoardAdapter - Class in org.swtpra1.alphabetaplayer.hippolyta
-
Adapter class to transform our (swtpra01) implementation of the board into an "braingame board" object.
- BoardAdapter(Board) - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.BoardAdapter
-
Parses a given board into another board object.
- BoardSquare - Enum in org.swtpra1.alphabetaplayer.hippolyta.model
-
potential states for each square of an amazonen game board
- BUFFER_TIME - Static variable in class org.swtpra1.AIPlayer
- bufferTime - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
a buffer time in millisecond that is used to ensure there is enough time to interrupt any ongoing calculations and encode the response turn after the time for actual calculations has run out.
C
- CachedBoard - Class in org.swtpra1.alphabetaplayer.hippolyta
- CachedBoard() - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.CachedBoard
-
creates a cached board with default values that match the default initial board of the game
- calculateTurn(int, Board, int, Turn) - Method in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
Wrapper method to calculate the turn the player will take if turn time is unlimited.
- calculateTurn(int, Board, int, Turn) - Method in class org.swtpra1.AIPlayer
-
Calculates best turn in the players' view.
- calculateTurn(int, Board, int, Turn) - Method in class org.swtpra1.random.RandomPlayer
-
The function returns the random turn which is chosen.
- calculateTurn(int, Board, int, Turn) - Method in class org.swtpra1.relativeterritoryplayer.RelativeTerritoryPlayer
-
Deprecated.Calculate the best turn a player can make.
- calculateTurn(int, Board, int, Turn, long) - Method in class org.swtpra1.AIPlayer
-
Calculates best turn in the players' view within a given timelimit.
- calculateTurn(int, Board, int, Turn, long) - Method in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
Calculate the best possible turn for a board state in limited time.
- calculateTurn(int, Board, int, Turn, long) - Method in class org.swtpra1.alphabetaplayer.AlphaBetaWithTranspositionTablesPlayer
-
Calculates the best possible turn in given time.
- calculateTurn(int, Board, int, Turn, long) - Method in class org.swtpra1.random.RandomPlayer
-
The function returns the random turn which is chosen.
- calculateTurn(int, Board, int, Turn, long) - Method in class org.swtpra1.relativeterritoryplayer.RelativeTerritoryPlayer
-
Deprecated.
- changeVisualizedTurn(int) - Method in class org.swtpra1.GameView
-
Renders the board after a turn based on the index of that turn in the list of all turns.
- checkBoard(JsonObject) - Static method in class org.swtpra1.GameserverMain
-
Checks if a given boards size attributes and array sizes match.
- checkIfPlayerExists(Player) - Static method in class org.swtpra1.GameserverMain
-
Checks if player exists in playerMap before new game is created.
- checkJsonKeys(JsonObject, String[]) - Method in class org.swtpra1.AIServer
-
Check if passed json-object has needed keys.
- checkJsonKeys(JsonObject, String[]) - Static method in class org.swtpra1.GameserverMain
-
Check if passed json-object has needed keys.
- checkJsonKeys(String, String[]) - Method in class org.swtpra1.AIServer
-
Check if passed json-string has needed keys.
- checkJsonKeys(String, String[]) - Static method in class org.swtpra1.GameserverMain
-
Check if passed json-string has needed keys.
- checkToken(String) - Static method in class org.swtpra1.GameserverMain
-
Checks if a http query has a token and checks if it is valid.
- checkTurnJson(String) - Static method in class org.swtpra1.GameserverMain
-
checks turn json sent by player.
- chooseMostPromisingTurns(Board, List<Turn>, int, Evaluator, int) - Method in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
-
Given a board and a list of candidate turns, we evaluate each one statically, sort them accordingly and take as many of the best turns as possible up to a limit.
- clear() - Method in class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
-
Deletes all elements.
- CLEAR - org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
- clearTranspositionTable() - Method in class org.swtpra1.alphabetaplayer.transpositiontables.AlphaBetaSearchTreeWithTranspositionTables
- column - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Coordinate
- columns - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
- connectToGameServer(String, String) - Method in class org.swtpra1.Observer
- constructUrl(String) - Method in class org.swtpra1.TournamentControl
-
Constructs the whole url for a specific target including the token parameter.
- Coordinate(int, int) - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Coordinate
- copy() - Method in class org.swtpra1.alphabetaplayer.hippolyta.CachedBoard
-
creates a deep copy of the cached board
- copy() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
-
creates a deep copy of the board
- copy() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- copy() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Player
- copy() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn
- copy() - Method in class org.swtpra1.alphabetaplayer.openingbook.OpeningBook
- copy2dArray(int[][]) - Static method in class org.swtpra1.alphabetaplayer.RelativeTerritoryEvaluator
-
Copy a 2-dimensional array because Arrays.copyOf doesn't work with 2d arrays.
- copy2dArray(int[][]) - Static method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.Copy a 2-dimensional array because Arrays.copyOf doesn't work with 2d arrays.
- countGame() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
-
Increments the gamesPlayed counter by one.
- countLoss() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
-
Increments the loss counter for this entry by one, as well as the gamesPlayed.
- countWin() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
-
Increments the win counter for this entry by one, as well as the gamesPlayed.
- createNewGame(String, int) - Static method in class org.swtpra1.GameserverMain
-
Create a new game and add to the games-list.
- createNewPlayer(String, int) - Static method in class org.swtpra1.GameserverMain
-
Creates new player and adds it to the players list.
D
- DEFAULT_AUTH_TOKEN - Static variable in class org.swtpra1.Observer
- DEFAULT_COLUMN_SIZE - Static variable in class org.swtpra1.DoubleRoundRobinTournament
- DEFAULT_GAMESERVER_URL - Static variable in class org.swtpra1.Observer
- DEFAULT_MAX_TURN_TIME - Static variable in class org.swtpra1.AIPlayer
- DEFAULT_REFRESH_TIME - Static variable in class org.swtpra1.TaskScheduler
-
Since turn time is 10 seconds by default (and we expect them to be used in most cases, gathering updates every 5 seconds should be plenty often.
- DEFAULT_ROW_SIZE - Static variable in class org.swtpra1.DoubleRoundRobinTournament
- delete(String) - Static method in class org.swtpra1.HTTPSClient
-
Sends a DELETE request.
- delete(String, int) - Static method in class org.swtpra1.HTTPSClient
-
Sends a DELETE request.
- deleteGame(int) - Static method in class org.swtpra1.GameserverMain
-
Delete game by given id.
- deletePlayer(int) - Static method in class org.swtpra1.GameserverMain
-
Deletes player by his id and removes it from the list.
- depth - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
the depth of the game tree that should be searched.
- displayError(String) - Method in class org.swtpra1.ObserverWindow
-
Displays a dialogue box informing the user that an error has occured.
- displayWarning(String) - Method in class org.swtpra1.ObserverWindow
-
Displays a dialogue box with a warning to the user.
- DoubleRoundRobinTournament - Class in org.swtpra1
-
Represents one instance of a tournament and all its players at any given moment.
- DoubleRoundRobinTournament(List<Player>, long) - Constructor for class org.swtpra1.DoubleRoundRobinTournament
-
Constructs a new tournament using the current time as a filename.
E
- EMPTY - Static variable in class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
- emptyNeighborSquares - Variable in class org.swtpra1.alphabetaplayer.hippolyta.CachedBoard
- end - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Move
- endDataUpdate() - Method in class org.swtpra1.Observer
-
Ends any unning update tasks and denies any further polling from gameserver.
- EndMessage - Class in org.swtpra1.messages
-
The end message informs the player about the end of a game.
- EndMessage() - Constructor for class org.swtpra1.messages.EndMessage
- enemyTurn - Variable in class org.swtpra1.messages.TurnMessage
-
The last turn the other player made.
- equals(Object) - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
- equals(Object) - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- equals(Object) - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Player
- equals(Object) - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Coordinate
- equals(Object) - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn
- equals(Object) - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Move
- equals(Object) - Method in class org.swtpra1.amazongame.Player
- equals(Object) - Method in class org.swtpra1.amazongame.Square
- equals(Object) - Method in class org.swtpra1.amazongame.Turn
- evaluate(Board, PlayerColor) - Method in class org.swtpra1.alphabetaplayer.hippolyta.HippolytaEvaluator
- evaluate(Board, int) - Method in interface org.swtpra1.alphabetaplayer.Evaluator
-
Evaluate a board from the POV of the player with playerId.
- evaluate(Board, int) - Method in class org.swtpra1.alphabetaplayer.hippolyta.HippolytaEvaluator
- evaluate(Board, int) - Method in class org.swtpra1.alphabetaplayer.RelativeTerritoryEvaluator
-
board value from perspective of player with given id.
- evaluator - Variable in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
- evaluator - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
the evaluator that is used to evaluate positions of the game.
- Evaluator - Interface in org.swtpra1.alphabetaplayer
-
Interface for an object that evaluates turn objects based on a metric.
- exact - org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement.Bound
- executeTurn(Turn) - Method in class org.swtpra1.amazongame.Game
-
Executes a given turn.
- executor - Variable in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
- executor - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
Thread for turn calculation.
- exitApplication() - Method in class org.swtpra1.Observer
-
Stops the polling of updates before closing any open windows.
- exitApplication() - Static method in class org.swtpra1.TournamentControlMain
-
Shuts down gracefully, making sure to stop running threads if needed.
F
- forceExecuteTurn(Turn) - Method in class org.swtpra1.amazongame.Game
-
Forces the execution of a given turn regardless of circumstances.
G
- Game - Class in org.swtpra1.alphabetaplayer.hippolyta.model
-
configuration and state of an amazonen game
- Game - Class in org.swtpra1.amazongame
-
Represents the state of the "Game of the Amazons" board.
- Game() - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- Game(int, Player[], int, int, long) - Constructor for class org.swtpra1.amazongame.Game
-
Represents a single instance of the "Game of the Amazons" between players.
- Game(int, Player[], Board, long) - Constructor for class org.swtpra1.amazongame.Game
-
Represents a single instance of the "Game of the Amazons" between players.
- GAME_VIEW_PANEL - Static variable in class org.swtpra1.ObserverWindow
- gameId - Variable in class org.swtpra1.messages.EndMessage
-
ID of the game used to keep track of different games played simultaneously.
- gameId - Variable in class org.swtpra1.messages.StartMessage
-
ID of the game used to keep track of different games played simultaneously.
- gameId - Variable in class org.swtpra1.messages.TurnMessage
-
ID of the game used to keep track of different games played simultaneously.
- GameserverMain - Class in org.swtpra1
-
Gameserver manages players and games created by the tournament-control and executes them.
- GameserverMain() - Constructor for class org.swtpra1.GameserverMain
- GameView - Class in org.swtpra1
-
Displays the state of the game graphically.
- generateGames() - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Constructs a list of matches in the DoubleRoundRobin format, which includes a dummy player if there is an odd number of players.
- generateInitialBoard(int, int) - Static method in class org.swtpra1.amazongame.Board
-
Generates the array representation of a board of size rows x cols.
- generateQueensMoves(Square, Board) - Static method in class org.swtpra1.AIPlayer
-
Gets the Squares a queen can move to from a given square It is used to generate the queen and shot squares.
- generateTree(int, MinimaxNode, int) - Method in class org.swtpra1.relativeterritoryplayer.RelativeTerritoryPlayer
-
Deprecated.Generate the tree of turns and boards until the depth is reached.
- get(long) - Method in class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
-
Searches the hashtable for the given hash.
- get(String) - Static method in class org.swtpra1.HTTPSClient
-
Sends a GET request.
- get(String, int) - Static method in class org.swtpra1.HTTPSClient
-
Sends a GET request.
- get(Board) - Method in class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
-
Searches the hashtable for the given board.
- getAllGames() - Method in class org.swtpra1.DoubleRoundRobinTournament
- getAllPossibleTurns(Board, int) - Static method in class org.swtpra1.AIPlayer
-
Get all possible turns of a player on the board.
- getAuthenticationToken() - Method in class org.swtpra1.Observer
-
Returns the token that is used to authenticate for polling updates.
- getBestTurn() - Method in class org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement
- getBestTurn(int, int) - Method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.Calls minimax on himself and returns the best turn based on the evaluation values of his children.
- getBoard() - Method in class org.swtpra1.amazongame.Game
- getBoard(int) - Method in class org.swtpra1.amazongame.Game
-
Returns the state of the board after turn no.
- getBoardValue(int[][], int) - Method in class org.swtpra1.alphabetaplayer.RelativeTerritoryEvaluator
-
Calculate the value of a board based on relative territory heuristic.
- getBoardValue(int[][], int) - Method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.Calculate the value of a board based on relative territory heuristic.
- getChildren() - Method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.
- getChildren() - Method in class org.swtpra1.relativeterritoryplayer.MinimaxLeaf
-
Deprecated.Gets all children.
- getChildren() - Method in class org.swtpra1.relativeterritoryplayer.MinimaxNode
-
Deprecated.Gets all children of minimaxNode.
- getColumn() - Method in class org.swtpra1.amazongame.Square
- getConnectButton() - Method in class org.swtpra1.OverviewView
-
Returns reference to the connect button.
- getCurrentGameId() - Method in class org.swtpra1.GameView
-
Returns the id of the game currently shown.
- getDepth() - Method in class org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement
- getEvaluation() - Method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.
- getFinishedGames() - Method in class org.swtpra1.DoubleRoundRobinTournament
- getFlag() - Method in class org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement
- getFreePlayers() - Method in class org.swtpra1.DoubleRoundRobinTournament
- getFullJsonGame(int) - Static method in class org.swtpra1.GameserverMain
-
returns a game by its id as json object.
- getFullJsonGameList() - Static method in class org.swtpra1.GameserverMain
-
Returns an array of the games present on the server as json objects.
- getGameId() - Method in class org.swtpra1.amazongame.Game
- getGameInfo() - Method in class org.swtpra1.OverviewView
-
Parses the currently running games into displayable data in a table with 6 columns.
- getGameMap() - Static method in class org.swtpra1.GameserverMain
- getGameObject() - Method in class org.swtpra1.GameView
-
Gets the Game object with the right id from the Game array in the observer.
- getGames() - Method in class org.swtpra1.Observer
-
Returns an array of Game objects, representing all active games on the server.
- getGameServerUrl() - Method in class org.swtpra1.Observer
-
Returns the URL that is used to poll updates.
- getGameSizeColumns() - Method in class org.swtpra1.amazongame.Board
-
Getter method for the number of columns.
- getGameSizeRows() - Method in class org.swtpra1.amazongame.Board
-
Getter method for the number of rows.
- getGamesLost() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
- getGamesPlayed() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
- getGamesRunning() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
- getGamesWon() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
- getGameWithId(int) - Method in class org.swtpra1.Observer
-
Retrieves a game object with a specific id.
- getHash() - Method in class org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement
- getInitialBoard() - Method in class org.swtpra1.amazongame.Game
- getJsonGame(int) - Static method in class org.swtpra1.GameserverMain
-
Returns a game by its id as json object.
- getJsonGameList() - Static method in class org.swtpra1.GameserverMain
-
Returns an array of the games present on the server as json objects.
- getLatestTurn() - Method in class org.swtpra1.amazongame.Game
-
Gets the latest executed turn.
- getLeaderboard() - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Gets a mapping Player -> #wins sorted in descending order.
- getLeaderboard() - Static method in class org.swtpra1.Leaderboard
-
Returns the Leaderboard entries in arbitrary order.
- getLeaderboardSortedByName() - Static method in class org.swtpra1.Leaderboard
-
Returns the Leaderboard entries sorted by players name.
- getLeaderboardSortedByWins() - Static method in class org.swtpra1.Leaderboard
-
Returns the leaderboard entries sorted by their wins.
- getMainFrame() - Method in class org.swtpra1.ObserverWindow
-
Retuns the instance of JFrame responsible for the window.
- getMaxTurnTime() - Method in class org.swtpra1.amazongame.Game
- getMaxTurnTime() - Method in class org.swtpra1.DoubleRoundRobinTournament
- getMove() - Method in class org.swtpra1.amazongame.Turn
- getMoveEnd() - Method in class org.swtpra1.amazongame.Turn
- getMoveStart() - Method in class org.swtpra1.amazongame.Turn
- getName() - Method in class org.swtpra1.amazongame.Player
- getObserver() - Static method in class org.swtpra1.ObserverMain
- getPanel() - Method in class org.swtpra1.GameView
-
Gets the panel that displays this view.
- getPanel() - Method in class org.swtpra1.OverviewView
-
Returns the panel the view is on.
- getPanel() - Method in class org.swtpra1.TournamentView
-
Returns the JPanel representing this view.
- getPlayer() - Method in class org.swtpra1.amazongame.Turn
- getPlayer() - Method in class org.swtpra1.Leaderboard.LeaderboardEntry
- getPlayerById(int) - Method in class org.swtpra1.amazongame.Game
-
Returns the Player object corresponding to the given id if the Player is playing in this game.
- getPlayerById(int) - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Return the locally saved player object with the given absolute id if it exists.
- getPlayerId() - Method in class org.swtpra1.amazongame.Player
- getPlayerId() - Method in class org.swtpra1.amazongame.Turn
- getPlayerMap() - Static method in class org.swtpra1.GameserverMain
- getPlayers() - Method in class org.swtpra1.amazongame.Game
- getPlayers() - Method in class org.swtpra1.DoubleRoundRobinTournament
- getPropertyChangeSupport() - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Getter for the PropertyChangeSupport in order to register Listeners.
- getRelativePlayerId(int) - Method in class org.swtpra1.amazongame.Game
-
Takes an absolute player id and returns the relative one.
- getRelativePlayerId(Player) - Method in class org.swtpra1.amazongame.Game
-
Takes a player object and returns the relative id in this game.
- getResultsFile() - Method in class org.swtpra1.TournamentControl
- getRow() - Method in class org.swtpra1.amazongame.Square
- getRunningGames() - Method in class org.swtpra1.DoubleRoundRobinTournament
- getShot() - Method in class org.swtpra1.amazongame.Turn
- getSquares() - Method in class org.swtpra1.amazongame.Board
-
Getter method for the int array representing the current board.
- getSquareSafe(Turn.Coordinate) - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
-
gets the square at the given coordinate and returning ARROW when the coordinate is not on the board (out of Bound)
- getStateFile() - Method in class org.swtpra1.TournamentControl
- getTarget() - Method in class org.swtpra1.alphabetaplayer.hippolyta.BoardAdapter
-
Get the transformed Board object of target class.
- getTextField() - Method in class org.swtpra1.OverviewView
-
Returns reference to the textfield used to give a custom url.
- getTournament() - Method in class org.swtpra1.TournamentControl
- getTurn() - Method in class org.swtpra1.alphabetaplayer.ValuedTurn
- getTurns() - Method in class org.swtpra1.amazongame.Game
- getUnstartedGames() - Method in class org.swtpra1.DoubleRoundRobinTournament
- getUrl() - Method in class org.swtpra1.amazongame.Player
- getValue() - Method in class org.swtpra1.alphabetaplayer.ValuedTurn
- getWindow() - Method in class org.swtpra1.Observer
-
The ObserverWindow that displays the information of this observer instance.
- getWinner() - Method in class org.swtpra1.amazongame.Game
-
If no other Board is given we evaluate the latest Board.
- getWinner(Board) - Method in class org.swtpra1.amazongame.Game
-
Checks for a winner and returns the absolute player id.
- getWinnerRelative() - Method in class org.swtpra1.amazongame.Game
-
Checks for a winner of the current board and returns the relative player id.
- getWinnerRelative(Board) - Method in class org.swtpra1.amazongame.Game
-
Checks for a winner and returns the relative player id.
H
- hash(Board) - Method in class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
-
Hashes the given board according to the random table of this Zobrist instance.
- hashCode() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
- hashCode() - Method in class org.swtpra1.amazongame.Player
- hashCode() - Method in class org.swtpra1.amazongame.Square
- hashCode() - Method in class org.swtpra1.amazongame.Turn
- HashTableElement - Class in org.swtpra1.alphabetaplayer.transpositiontables
-
One element that is hashed in the ZobristHashTable.
- HashTableElement(ValuedTurn, long, int, HashTableElement.Bound) - Constructor for class org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement
-
Constructs a new element in the hash table.
- HashTableElement.Bound - Enum in org.swtpra1.alphabetaplayer.transpositiontables
- HippolytaEvaluator - Class in org.swtpra1.alphabetaplayer.hippolyta
-
Hippolyta - Queen of the Amazons, an evaluation function for the Game of the Amazons
- HippolytaEvaluator() - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.HippolytaEvaluator
- HippolytaEvaluator(float) - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.HippolytaEvaluator
- HtmlLeaderboardTask - Class in org.swtpra1
-
Asynchronously parses the results of the tournament into a simple HTML table enviroment and writes it into the specified location.
- HtmlLeaderboardTask(TournamentControl, File) - Constructor for class org.swtpra1.HtmlLeaderboardTask
-
Given the tournament control object , creates and runnable to generate a html file.
- HTTPSClient - Class in org.swtpra1
-
HTTPSClient Responsible for executing the HTTPS methods.
- HTTPSClient() - Constructor for class org.swtpra1.HTTPSClient
- HTTPSResponse - Class in org.swtpra1
I
- id - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- id - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Player
- initialBoard - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- initialize() - Method in class org.swtpra1.GameView
-
Initializes the mainPanel and adds all of the required elements to it.
- initialize() - Method in class org.swtpra1.TournamentControl
-
Verifies that enough of the listed players respond to messages and registers them on the server.
- initializeUnsetFields() - Method in class org.swtpra1.amazongame.Game
-
Sets field not covered by constructor.
- isActive() - Method in class org.swtpra1.alphabetaplayer.openingbook.OpeningBook
- isFinished() - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Returns whether every match of the tournament has been completed.
- isLeaf() - Method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.
- isLeaf() - Method in class org.swtpra1.relativeterritoryplayer.MinimaxLeaf
-
Deprecated.Returns whether the node is a leaf.
- isLeaf() - Method in class org.swtpra1.relativeterritoryplayer.MinimaxNode
-
Deprecated.Returns whether the node is a leaf.
- isValidTurn(Turn, Board) - Method in class org.swtpra1.amazongame.Game
-
Convenience wrapper method to validate turns.
- iterativeDeepening - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
enables iterative deepening which uses all of the turn time to try and calculate evaluations for progressively deeper depths.
L
- launchNextGame() - Method in class org.swtpra1.TournamentControl
-
If the next game of the tournament is able to be started the appropriate request is sent to the server.
- Leaderboard - Class in org.swtpra1
-
Generates a leaderboard of players from a list of active games and sorts it after different criteria.
- Leaderboard() - Constructor for class org.swtpra1.Leaderboard
- Leaderboard.LeaderboardEntry - Class in org.swtpra1
-
Represents a single player and his score in the currently running tournament.
- LeaderboardEntry(Player) - Constructor for class org.swtpra1.Leaderboard.LeaderboardEntry
-
New leaderboard entries for a player have 0 games played and 0 wins/losses.
- loadTournamentControlFromFile(File) - Static method in class org.swtpra1.TournamentControlMain
-
Loads the tournament control from a file.
- lowerbound - org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement.Bound
M
- main(String[]) - Static method in class org.swtpra1.AIServerMain
-
Creates a new AIServer with given commandline arguments.
- main(String[]) - Static method in class org.swtpra1.GameserverMain
-
starts the game-server.
- main(String[]) - Static method in class org.swtpra1.ObserverMain
-
Loads the required certificate and then starts up the application.
- main(String[]) - Static method in class org.swtpra1.TournamentControlMain
-
The main function which parses the command line arguments, creates a TournamentControl object with the given parameters polls new data and serializes existing data asynchronously.
- makeMove(Turn) - Method in class org.swtpra1.alphabetaplayer.openingbook.OpeningBook
-
updates the state of the opening book
- maxTurnTime - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- maxTurnTime - Variable in class org.swtpra1.messages.StartMessage
-
Maximum amount of time the server is waiting for a response for a turn request (in ms).
- messageType - Variable in class org.swtpra1.messages.EndMessage
-
Represents the type of the message and is always end for an end message.
- messageType - Variable in class org.swtpra1.messages.StartMessage
-
Represents the type of the message and is always start for a start message.
- messageType - Variable in class org.swtpra1.messages.TurnMessage
-
Represents the type of the message and is always turn for a turn message.
- minimax(int, boolean, int, int, int) - Method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.Minimax algorithm with Alpha-Beta-pruning to calculate a numeric value for the quality of a sequence of turns.
- MinimaxComponent - Class in org.swtpra1.relativeterritoryplayer
-
Deprecated.only used for benchmarking
- MinimaxComponent(Turn, Board) - Constructor for class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.Constructor of a MinimaxComponent
- MinimaxLeaf - Class in org.swtpra1.relativeterritoryplayer
-
Deprecated.Only used for benchmarking
- MinimaxLeaf(Turn, Board) - Constructor for class org.swtpra1.relativeterritoryplayer.MinimaxLeaf
-
Deprecated.MinimaxLeaf of tree, its evaluation is the board value based on RTH.
- MinimaxNode - Class in org.swtpra1.relativeterritoryplayer
-
Deprecated.Only used for benchmarking
- MinimaxNode(Turn, Board) - Constructor for class org.swtpra1.relativeterritoryplayer.MinimaxNode
-
Deprecated.MinimaxNode which contains a turn and the resulting board after turn was executed.
- move - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn
- move(Square, Square, Player) - Method in class org.swtpra1.amazongame.Board
-
Frees the source square and takes the target square and marks it with player id.
- Move(int, int, int, int) - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Move
- movePiece(Turn) - Method in class org.swtpra1.amazongame.Board
-
Executes a given turn on a board by moving the players piece accordingly and blocking the shot square.
N
- name - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Player
- negamax(Board, int, int, boolean) - Method in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
-
Wrapper function to start negamax search with alpha-beta pruning optimization.
- negamax(Board, int, int, boolean, float, float) - Method in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
-
Recursive implementation of negamax algorithm with alpha beta pruning optimization.
- negamax(Board, int, int, boolean, float, float, List<Turn>) - Method in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
-
Recursive implementation of negamax algorithm with alpha beta pruning optimization.
- negamax(Board, int, int, boolean, float, float, List<Turn>) - Method in class org.swtpra1.alphabetaplayer.transpositiontables.AlphaBetaSearchTreeWithTranspositionTables
-
Searches for the best turn using negamax search with alpha beta pruning and transposition tables.
- negamax(Board, int, int, boolean, List<Turn>) - Method in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
-
Wrapper function to start negamax search with alpha-beta pruning optimization with a list of undesirable moves.
- negamax(Board, int, int, boolean, List<Turn>) - Method in class org.swtpra1.alphabetaplayer.transpositiontables.AlphaBetaSearchTreeWithTranspositionTables
-
Searches for the best turn using negamax search with alpha beta pruning and transposition tables.
- newGame() - Method in class org.swtpra1.AIPlayer
- newGame() - Method in class org.swtpra1.alphabetaplayer.AlphaBetaWithTranspositionTablesPlayer
- nextGame() - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Returns the next game that can be started.
- nextTurn() - Method in class org.swtpra1.alphabetaplayer.openingbook.OpeningBook
O
- Observer - Class in org.swtpra1
-
This class "observes" the games played on a gameserver and makes the data available for being displayed.
- Observer() - Constructor for class org.swtpra1.Observer
-
Constructs a new observer loaded with default URL and default token.
- ObserverMain - Class in org.swtpra1
-
Instantiates the Observer class and starts the GUI part of the application.
- ObserverMain() - Constructor for class org.swtpra1.ObserverMain
- ObserverWindow - Class in org.swtpra1
-
The GUI part of the observer.
- ObserverWindow() - Constructor for class org.swtpra1.ObserverWindow
-
Creates an instance of the observer.
- openingBook - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
opening book that is used for all games played by this instance.
- OpeningBook - Class in org.swtpra1.alphabetaplayer.openingbook
-
manages an opening book for the game of amazons
- OpeningBook(TreeNode<ValuedTurn>) - Constructor for class org.swtpra1.alphabetaplayer.openingbook.OpeningBook
- openingBookFile - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
path to the opening book that should be used; null if disabled.
- openWindow() - Method in class org.swtpra1.Observer
-
Creates a new window to display the current state.
- org.swtpra1 - package org.swtpra1
-
Namespace for all java classes for the group "swtpra1" of the "Softwaretechnikpraktikum WS20/21" at the Universität Paderborn.
- org.swtpra1.alphabetaplayer - package org.swtpra1.alphabetaplayer
-
Contains different modifications of search trees all based on negamax with alpha beta pruning.
- org.swtpra1.alphabetaplayer.alphabeta - package org.swtpra1.alphabetaplayer.alphabeta
-
Houses an implementation of negamax tree search with alpha beta pruning optimization.
- org.swtpra1.alphabetaplayer.hippolyta - package org.swtpra1.alphabetaplayer.hippolyta
-
Classes to help run the Hippolyta evaluation function in our infrastructure.
- org.swtpra1.alphabetaplayer.hippolyta.model - package org.swtpra1.alphabetaplayer.hippolyta.model
-
Versions of the classes defined in the API implemented by swtpra11.
- org.swtpra1.alphabetaplayer.openingbook - package org.swtpra1.alphabetaplayer.openingbook
-
Classes used for implementing "pre-calculating turns".
- org.swtpra1.alphabetaplayer.transpositiontables - package org.swtpra1.alphabetaplayer.transpositiontables
-
Classes related to the "transposition tables" optimization for searching the game trees.
- org.swtpra1.amazongame - package org.swtpra1.amazongame
-
Classes used to model the execution of the game of the amazons according to the api.
- org.swtpra1.messages - package org.swtpra1.messages
-
Houses different types of messages that the protocol defines and that may be received by the player.
- org.swtpra1.random - package org.swtpra1.random
-
Houses an implementation of a player making random moves which is used for testing purposes.
- org.swtpra1.relativeterritoryplayer - package org.swtpra1.relativeterritoryplayer
-
Houses all classes used by the now deprecated implementation of the minimax algorithm.
- other() - Method in enum org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
- outputLeaderboardToFile() - Method in class org.swtpra1.TaskScheduler
-
Writes the current results of the tournament into a html table and writes to "htmlLeaderboardFile".
- OVERVIEW_PANEL - Static variable in class org.swtpra1.ObserverWindow
- OverviewView - Class in org.swtpra1
-
View that displays all currently running games and the option to inspect them in the game view.
P
- parallelism - Variable in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
- parallelism - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
-
target parallelism for the negamax algorithm.
- parallelNegamax(Board, int, int, boolean, List<Turn>) - Method in class org.swtpra1.alphabetaplayer.alphabeta.AlphaBetaSearchTree
-
Multithreaded recursive implementation of negamax algorithm with alpha beta pruning optimization.
- parseId(String) - Static method in class org.swtpra1.GameserverMain
-
Return integer value of string.
- parsePlayerListFile(String) - Method in class org.swtpra1.TournamentControl
-
Parses csv file containing player names und urls of participating players and creates List of Player objects.
- Player - Class in org.swtpra1.alphabetaplayer.hippolyta.model
-
state of a player
- Player - Class in org.swtpra1.amazongame
-
This class represents a single player.
- Player(int, String, String) - Constructor for class org.swtpra1.amazongame.Player
-
Constructs a player.
- Player(Integer, String, String) - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.model.Player
- PlayerColor - Enum in org.swtpra1.alphabetaplayer.hippolyta.model
-
internal representation of the player types of a game.
- playerId - Variable in class org.swtpra1.messages.EndMessage
-
The ID of the player within the game (0 or 1).
- playerId - Variable in class org.swtpra1.messages.StartMessage
-
The ID of the player within the game.
- playerId - Variable in class org.swtpra1.messages.TurnMessage
-
The ID of the player within the game (0 or 1).
- players - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- post(String, String) - Static method in class org.swtpra1.HTTPSClient
-
Sends a post request.
- post(String, String, int) - Static method in class org.swtpra1.HTTPSClient
-
Sends a post request.
- presort - Variable in class org.swtpra1.alphabetaplayer.AlphaBetaPlayer
- printBoard(int[][]) - Method in class org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
Deprecated.Prints array.
- printBoard(Board) - Method in class org.swtpra1.AIServer
-
Prints a Array in a very pretty way.
- printListFormatHelp(String) - Static method in class org.swtpra1.TournamentControlMain
-
Prints list formatting help.
- printMessageWithPort(String) - Method in class org.swtpra1.AIServer
-
Prints message of the form "[port: %d] Message".
- propertyChange(PropertyChangeEvent) - Method in class org.swtpra1.TaskScheduler
-
Reacts to any PropertyChangeEvents that have been registered properly.
R
- RandomPlayer - Class in org.swtpra1.random
-
This class represents a player who makes random turns.
- RandomPlayer() - Constructor for class org.swtpra1.random.RandomPlayer
-
Creates a new Player.
- refresh(Game[]) - Static method in class org.swtpra1.Leaderboard
-
Refresh the leaderboard given the current state of all active games.
- RelativeTerritoryEvaluator - Class in org.swtpra1.alphabetaplayer
-
Implements the "relative territory heuristic" for evaluating board states.
- RelativeTerritoryEvaluator() - Constructor for class org.swtpra1.alphabetaplayer.RelativeTerritoryEvaluator
- RelativeTerritoryPlayer - Class in org.swtpra1.relativeterritoryplayer
-
Deprecated.Only used as benchmark baseline
- RelativeTerritoryPlayer() - Constructor for class org.swtpra1.relativeterritoryplayer.RelativeTerritoryPlayer
-
Deprecated.RelativeTerritoryPlayer which contains a game object and his player id.
- row - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Coordinate
- rows - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
- run() - Method in class org.swtpra1.AIServer
-
Runs the AIServer.
- run() - Method in class org.swtpra1.HtmlLeaderboardTask
-
Writes a simple representation of the current leaderboard as HTML into path given by "destination".
S
- sendEndMessage(String, int, int, int, int) - Static method in class org.swtpra1.GameserverMain
-
Send end message to player.
- sendEndMessages(Game, int) - Static method in class org.swtpra1.GameserverMain
-
Send end messages to players if game won/aborted.
- sendResponse(HttpExchange, int) - Method in class org.swtpra1.AIServer
-
Sends a response header, either 200 or 400.
- sendResponse(HttpExchange, int) - Static method in class org.swtpra1.GameserverMain
-
Sends response with responseCode back to client.
- sendResponse(HttpExchange, String) - Method in class org.swtpra1.AIServer
-
Sends a response json.
- sendResponse(HttpExchange, String) - Static method in class org.swtpra1.GameserverMain
-
Send response with json back to client.
- sendStartMessage(Game, int) - Static method in class org.swtpra1.GameserverMain
-
Sends game start message to a player.
- sendStartMessages(Game, int) - Static method in class org.swtpra1.GameserverMain
-
Send start messages to both players before game is played.
- sendTurnMessage(Game, int, int, String) - Static method in class org.swtpra1.GameserverMain
-
Send turn message to player and execute the turn.
- setCurrentGameId(int) - Method in class org.swtpra1.GameView
-
Sets the id of the game to be displayed, loads the game object and sets all the ui elements to display its info.
- setGames(Game[]) - Method in class org.swtpra1.TournamentView
-
Gets an array of games, evaluates their results and displays the leaderboard in ordered fashion.
- setPlayerNames(String, String) - Method in class org.swtpra1.GameView
-
Displays the names of the players and their colors.
- setResultsFile(File) - Method in class org.swtpra1.TournamentControl
- setSquares(int[][]) - Method in class org.swtpra1.amazongame.Board
-
Setter method for the int array representing the current board.
- setStateFile(File) - Method in class org.swtpra1.TournamentControl
- setWinnerName(String) - Method in class org.swtpra1.GameView
-
Display the name of the winner.
- setWinningPlayer(int) - Method in class org.swtpra1.amazongame.Game
- shoot(Square) - Method in class org.swtpra1.amazongame.Board
-
Blocks a given square.
- shot - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn
- showGameView(int) - Method in class org.swtpra1.ObserverWindow
-
Refreshes and then displays the game view of the game with the given id.
- showInitialBoard() - Method in class org.swtpra1.GameView
-
Renders the board before any turns have been made.
- showLatestTurn() - Method in class org.swtpra1.GameView
-
Renders the latest available turn.
- showNextTurn() - Method in class org.swtpra1.GameView
-
Renders the move turn after the current turn if possible.
- showOverview() - Method in class org.swtpra1.ObserverWindow
-
Switches to the general overview of all available games.
- showPreviousTurn() - Method in class org.swtpra1.GameView
-
Renders the move before the current turn if possible.
- showTournamentView() - Method in class org.swtpra1.ObserverWindow
-
Refreshes the leaderboard and the shows the overview of the tournament participants.
- square - Variable in enum org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
- Square - Class in org.swtpra1.amazongame
-
This class represents one square on the board and will help with serialization and constructing turns later on.
- Square(int, int) - Constructor for class org.swtpra1.amazongame.Square
- squares - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
- start - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Move
- startDataUpdate() - Method in class org.swtpra1.Observer
-
Starts the task of regularly polling the current state of games.
- startGame(Game) - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Will start a given game and log its players as busy if they were previously available.
- startGame(Game) - Static method in class org.swtpra1.GameserverMain
-
Starts a game after it was created.
- StartMessage - Class in org.swtpra1.messages
-
This class represents the incoming JSON start message from the game server.
- StartMessage() - Constructor for class org.swtpra1.messages.StartMessage
- startRefresh() - Method in class org.swtpra1.TaskScheduler
-
Starts polling the data from the gameserver at a fixed rate (5000ms by default), updating the local data.
- startTournament() - Method in class org.swtpra1.TournamentControl
-
If it does not exist already a new tournament is generated and the first batch of games started manually.
- status - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- stopRefresh() - Method in class org.swtpra1.TaskScheduler
-
Stops any new polling of game data, while finishing up any remaining requests.
- stopServer() - Method in class org.swtpra1.AIServer
-
Stops the running server.
- stopServer() - Static method in class org.swtpra1.GameserverMain
-
Stops running https server.
T
- TaskScheduler - Class in org.swtpra1
-
Class to wrap our threaded tasks.
- TaskScheduler(TournamentControl) - Constructor for class org.swtpra1.TaskScheduler
-
Schedules tasks.
- toString() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Board
- toString() - Method in enum org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
- toString() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- toString() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Player
- toString() - Method in enum org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
- toString() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Coordinate
- toString() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn.Move
- toString() - Method in class org.swtpra1.alphabetaplayer.hippolyta.model.Turn
- toString() - Method in class org.swtpra1.alphabetaplayer.ValuedTurn
-
Formats any tuple of value and turn as (startx, starty)-(endx,endy) >>- (value) -> (shotx,shoty).
- toString() - Method in class org.swtpra1.amazongame.Board
- toString() - Method in class org.swtpra1.amazongame.Game
- toString() - Method in class org.swtpra1.amazongame.Player
- toString() - Method in class org.swtpra1.amazongame.Square
- toString() - Method in class org.swtpra1.amazongame.Turn
- TOURNAMENT_VIEW_PANEL - Static variable in class org.swtpra1.ObserverWindow
- TournamentControl - Class in org.swtpra1
- TournamentControl(String, String, long) - Constructor for class org.swtpra1.TournamentControl
-
Constructor.
- TournamentControlMain - Class in org.swtpra1
- TournamentControlMain() - Constructor for class org.swtpra1.TournamentControlMain
- TournamentView - Class in org.swtpra1
-
Showcases all players and how each of them performed.
- transCount - Variable in class org.swtpra1.alphabetaplayer.transpositiontables.AlphaBetaSearchTreeWithTranspositionTables
- TreeNode<T> - Class in org.swtpra1.alphabetaplayer.openingbook
-
a simple generic tree structure.
- TreeNode(T) - Constructor for class org.swtpra1.alphabetaplayer.openingbook.TreeNode
- Turn - Class in org.swtpra1.alphabetaplayer.hippolyta.model
-
a single turn a player makes
- Turn - Class in org.swtpra1.amazongame
-
This class represents one turn, made by a player.
- Turn(int, int, int, int, int, int) - Constructor for class org.swtpra1.alphabetaplayer.hippolyta.model.Turn
- Turn(int, int, int, int, int, int, Player) - Constructor for class org.swtpra1.amazongame.Turn
-
A convenience wrapper to construct a turn with coodinates.
- Turn(Square, Square, Square, Player) - Constructor for class org.swtpra1.amazongame.Turn
-
Constructs a turn from one Square to another Square.
- Turn.Coordinate - Class in org.swtpra1.alphabetaplayer.hippolyta.model
-
coordinate on the game board
- Turn.Move - Class in org.swtpra1.alphabetaplayer.hippolyta.model
-
one movement of an amazone
- turnId - Variable in class org.swtpra1.messages.EndMessage
-
ID of the turn (starting with 0).
- turnId - Variable in class org.swtpra1.messages.TurnMessage
-
ID of the turn (starting with 0).
- TurnMessage - Class in org.swtpra1.messages
-
This class represents the incoming JSON start message from the game server.
- TurnMessage() - Constructor for class org.swtpra1.messages.TurnMessage
- turns - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
U
- update() - Method in class org.swtpra1.ObserverWindow
-
Prompts all views to poll new data and refresh accordingly.
- update() - Method in class org.swtpra1.TournamentView
-
Polls the currently running games and parses the information into the leaderboard.
- updateCache(Turn, PlayerColor) - Method in class org.swtpra1.alphabetaplayer.hippolyta.CachedBoard
-
updates the cache with the information from the next turn.
- updateCacheUndo(Turn, PlayerColor) - Method in class org.swtpra1.alphabetaplayer.hippolyta.CachedBoard
-
updates the cache with the information from the previous turn.
- updateGame(int, Game) - Method in class org.swtpra1.DoubleRoundRobinTournament
-
Updates the state of a game with given Id, sorting it into the appropriate list.
- upperbound - org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement.Bound
- url - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Player
- useHttps - Static variable in class org.swtpra1.GameserverMain
V
- value - Variable in enum org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
- value - Variable in enum org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
- ValuedTurn - Class in org.swtpra1.alphabetaplayer
-
Tuple of (turn, value).
- ValuedTurn(Turn, float) - Constructor for class org.swtpra1.alphabetaplayer.ValuedTurn
-
Constructs a new valued turn.
- valueOf(String) - Static method in enum org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement.Bound
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.swtpra1.alphabetaplayer.hippolyta.model.BoardSquare
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.swtpra1.alphabetaplayer.transpositiontables.HashTableElement.Bound
-
Returns an array containing the constants of this enum type, in the order they are declared.
- verifyCredentials() - Method in class org.swtpra1.TournamentControl
-
Verifies the given URL and authenticationToken by requesting the /games once and expecting a positive response.
- visualizeBoard(int[][]) - Method in class org.swtpra1.GameView
-
Given a board, display the pieces graphically.
W
- WHITE - org.swtpra1.alphabetaplayer.hippolyta.model.PlayerColor
- winningPlayer - Variable in class org.swtpra1.alphabetaplayer.hippolyta.model.Game
- winningPlayer - Variable in class org.swtpra1.messages.EndMessage
-
ID of the player that won the game.
Z
- ZobristHashTable - Class in org.swtpra1.alphabetaplayer.transpositiontables
-
A variant of a efficient hashing-technique often used for chess and similar games.
- ZobristHashTable(int) - Constructor for class org.swtpra1.alphabetaplayer.transpositiontables.ZobristHashTable
-
Creates a hashtable with 2 slots for each index.
All Classes All Packages