Uses of Class
org.swtpra1.amazongame.Turn
-
Packages that use Turn 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.openingbook Classes used for implementing "pre-calculating turns".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 Turn in org.swtpra1
Methods in org.swtpra1 that return Turn 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.Methods in org.swtpra1 that return types with arguments of type Turn Modifier and Type Method Description static java.util.List<Turn>
AIPlayer. getAllPossibleTurns(Board board, int playerId)
Get all possible turns of a player on the board.Methods in org.swtpra1 with parameters of type Turn 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. -
Uses of Turn in org.swtpra1.alphabetaplayer
Methods in org.swtpra1.alphabetaplayer that return Turn 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.Turn
ValuedTurn. getTurn()
Methods in org.swtpra1.alphabetaplayer with parameters of type Turn 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.Constructors in org.swtpra1.alphabetaplayer with parameters of type Turn Constructor Description ValuedTurn(Turn turn, float value)
Constructs a new valued turn. -
Uses of Turn in org.swtpra1.alphabetaplayer.alphabeta
Methods in org.swtpra1.alphabetaplayer.alphabeta that return types with arguments of type Turn 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.Method parameters in org.swtpra1.alphabetaplayer.alphabeta with type arguments of type Turn 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.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 Turn in org.swtpra1.alphabetaplayer.openingbook
Methods in org.swtpra1.alphabetaplayer.openingbook that return Turn Modifier and Type Method Description Turn
OpeningBook. nextTurn()
Methods in org.swtpra1.alphabetaplayer.openingbook with parameters of type Turn Modifier and Type Method Description void
OpeningBook. makeMove(Turn turn)
updates the state of the opening book -
Uses of Turn in org.swtpra1.alphabetaplayer.transpositiontables
Method parameters in org.swtpra1.alphabetaplayer.transpositiontables with type arguments of type Turn Modifier and Type Method Description 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 Turn in org.swtpra1.amazongame
Methods in org.swtpra1.amazongame that return Turn Modifier and Type Method Description @Nullable Turn
Game. getLatestTurn()
Gets the latest executed turn.Methods in org.swtpra1.amazongame that return types with arguments of type Turn Modifier and Type Method Description java.util.ArrayList<Turn>
Game. getTurns()
Methods in org.swtpra1.amazongame with parameters of type Turn Modifier and Type Method Description int
Game. executeTurn(Turn turn)
Executes a given turn.void
Game. forceExecuteTurn(Turn turn)
Forces the execution of a given turn regardless of circumstances.boolean
Game. isValidTurn(Turn turn, Board board)
Convenience wrapper method to validate turns.void
Board. movePiece(Turn turn)
Executes a given turn on a board by moving the players piece accordingly and blocking the shot square. -
Uses of Turn in org.swtpra1.messages
Fields in org.swtpra1.messages declared as Turn Modifier and Type Field Description Turn
TurnMessage. enemyTurn
The last turn the other player made. -
Uses of Turn in org.swtpra1.random
Methods in org.swtpra1.random that return Turn 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.Methods in org.swtpra1.random with parameters of type Turn 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 Turn in org.swtpra1.relativeterritoryplayer
Methods in org.swtpra1.relativeterritoryplayer that return Turn 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.Turn
MinimaxComponent. getBestTurn(int depth, int playerId)
Deprecated.Calls minimax on himself and returns the best turn based on the evaluation values of his children.Methods in org.swtpra1.relativeterritoryplayer with parameters of type Turn 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 Turn 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.
-