Uses of Class
org.swtpra1.amazongame.Board
-
Packages that use Board Package Description org.swtpra1 Namespace for all java classes for the group "swtpra1" of the "Softwaretechnikpraktikum WS20/21" at the Universität Paderborn.org.swtpra1.alphabetaplayer Contains different modifications of search trees all based on negamax with alpha beta pruning.org.swtpra1.alphabetaplayer.alphabeta Houses an implementation of negamax tree search with alpha beta pruning optimization.org.swtpra1.alphabetaplayer.hippolyta Classes to help run the Hippolyta evaluation function in our infrastructure.org.swtpra1.alphabetaplayer.transpositiontables Classes related to the "transposition tables" optimization for searching the game trees.org.swtpra1.amazongame Classes used to model the execution of the game of the amazons according to the api.org.swtpra1.messages Houses different types of messages that the protocol defines and that may be received by the player.org.swtpra1.random Houses an implementation of a player making random moves which is used for testing purposes.org.swtpra1.relativeterritoryplayer Houses all classes used by the now deprecated implementation of the minimax algorithm. -
-
Uses of Board in org.swtpra1
Methods in org.swtpra1 with parameters of type Board Modifier and Type Method Description abstract Turn
AIPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn)
Calculates best turn in the players' view.abstract Turn
AIPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn, long maxTurnTime)
Calculates best turn in the players' view within a given timelimit.protected static java.util.List<Square>
AIPlayer. generateQueensMoves(Square startingSquare, Board board)
Gets the Squares a queen can move to from a given square It is used to generate the queen and shot squares.static java.util.List<Turn>
AIPlayer. getAllPossibleTurns(Board board, int playerId)
Get all possible turns of a player on the board.void
AIServer. printBoard(Board board)
Prints a Array in a very pretty way. -
Uses of Board in org.swtpra1.alphabetaplayer
Methods in org.swtpra1.alphabetaplayer with parameters of type Board Modifier and Type Method Description @NotNull Turn
AlphaBetaPlayer. calculateTurn(int gameId, Board board, int playerId, @Nullable Turn enemyTurn)
Wrapper method to calculate the turn the player will take if turn time is unlimited.Turn
AlphaBetaPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn, long maxTurnTime)
Calculate the best possible turn for a board state in limited time.Turn
AlphaBetaWithTranspositionTablesPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn, long maxTurnTime)
Calculates the best possible turn in given time.float
Evaluator. evaluate(Board board, int playerId)
Evaluate a board from the POV of the player with playerId.float
RelativeTerritoryEvaluator. evaluate(Board board, int playerId)
board value from perspective of player with given id. -
Uses of Board in org.swtpra1.alphabetaplayer.alphabeta
Methods in org.swtpra1.alphabetaplayer.alphabeta with parameters of type Board Modifier and Type Method Description java.util.List<Turn>
AlphaBetaSearchTree. chooseMostPromisingTurns(Board board, java.util.List<Turn> turns, int player, Evaluator eval, int limit)
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.ValuedTurn
AlphaBetaSearchTree. negamax(Board board, int player, int depth, boolean presort)
Wrapper function to start negamax search with alpha-beta pruning optimization.protected ValuedTurn
AlphaBetaSearchTree. negamax(Board board, int player, int depth, boolean presort, float alpha, float beta)
Recursive implementation of negamax algorithm with alpha beta pruning optimization.protected ValuedTurn
AlphaBetaSearchTree. negamax(Board board, int player, int depth, boolean presort, float alpha, float beta, java.util.List<Turn> blacklist)
Recursive implementation of negamax algorithm with alpha beta pruning optimization.ValuedTurn
AlphaBetaSearchTree. negamax(Board board, int player, int depth, boolean presort, java.util.List<Turn> blacklist)
Wrapper function to start negamax search with alpha-beta pruning optimization with a list of undesirable moves.protected ValuedTurn
AlphaBetaSearchTree. parallelNegamax(Board board, int player, int depth, boolean presort, java.util.List<Turn> blacklist)
Multithreaded recursive implementation of negamax algorithm with alpha beta pruning optimization. -
Uses of Board in org.swtpra1.alphabetaplayer.hippolyta
Methods in org.swtpra1.alphabetaplayer.hippolyta with parameters of type Board Modifier and Type Method Description float
HippolytaEvaluator. evaluate(Board board, int playerId)
Constructors in org.swtpra1.alphabetaplayer.hippolyta with parameters of type Board Constructor Description BoardAdapter(Board source)
Parses a given board into another board object. -
Uses of Board in org.swtpra1.alphabetaplayer.transpositiontables
Methods in org.swtpra1.alphabetaplayer.transpositiontables with parameters of type Board Modifier and Type Method Description HashTableElement
ZobristHashTable. get(Board board)
Searches the hashtable for the given board.long
ZobristHashTable. hash(Board board)
Hashes the given board according to the random table of this Zobrist instance.protected ValuedTurn
AlphaBetaSearchTreeWithTranspositionTables. negamax(Board board, int player, int depth, boolean presort, float alpha, float beta, java.util.List<Turn> blacklist)
Searches for the best turn using negamax search with alpha beta pruning and transposition tables.ValuedTurn
AlphaBetaSearchTreeWithTranspositionTables. negamax(Board board, int player, int depth, boolean presort, java.util.List<Turn> blacklist)
Searches for the best turn using negamax search with alpha beta pruning and transposition tables. -
Uses of Board in org.swtpra1.amazongame
Methods in org.swtpra1.amazongame that return Board Modifier and Type Method Description Board
Game. getBoard()
Board
Game. getBoard(int index)
Returns the state of the board after turn no.Board
Game. getInitialBoard()
Methods in org.swtpra1.amazongame with parameters of type Board Modifier and Type Method Description int
Game. getWinner(Board board)
Checks for a winner and returns the absolute player id.int
Game. getWinnerRelative(Board board)
Checks for a winner and returns the relative player id.boolean
Game. isValidTurn(Turn turn, Board board)
Convenience wrapper method to validate turns.Constructors in org.swtpra1.amazongame with parameters of type Board Constructor Description Board(Board originalBoard)
Dummy constructor to reliably clone a Board object.Game(int gameId, Player[] players, Board initialBoard, long maxTurnTime)
Represents a single instance of the "Game of the Amazons" between players. -
Uses of Board in org.swtpra1.messages
Fields in org.swtpra1.messages declared as Board Modifier and Type Field Description Board
StartMessage. board
A representation of the board as described above.Board
TurnMessage. board
A representation of the board as described above. -
Uses of Board in org.swtpra1.random
Methods in org.swtpra1.random with parameters of type Board Modifier and Type Method Description Turn
RandomPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn)
The function returns the random turn which is chosen.Turn
RandomPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn, long maxTurnTime)
The function returns the random turn which is chosen. -
Uses of Board in org.swtpra1.relativeterritoryplayer
Methods in org.swtpra1.relativeterritoryplayer with parameters of type Board Modifier and Type Method Description Turn
RelativeTerritoryPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn)
Deprecated.Calculate the best turn a player can make.Turn
RelativeTerritoryPlayer. calculateTurn(int gameId, Board board, int playerId, Turn enemyTurn, long maxTurnTime)
Deprecated.Constructors in org.swtpra1.relativeterritoryplayer with parameters of type Board Constructor Description MinimaxComponent(Turn turn, Board board)
Deprecated.Constructor of a MinimaxComponentMinimaxLeaf(Turn turn, Board board)
Deprecated.MinimaxLeaf of tree, its evaluation is the board value based on RTH.MinimaxNode(Turn turn, Board board)
Deprecated.MinimaxNode which contains a turn and the resulting board after turn was executed.
-