Uses of Enum Class
game.Color
Packages that use Color
-
Uses of Color in app
-
Uses of Color in benchmark.simulation
Fields in benchmark.simulation declared as ColorModifier and TypeFieldDescriptionfinal ColorConnectionSimulation.GameResult.colorfinal ColorSimulation.GameResult.colorConstructors in benchmark.simulation with parameters of type ColorModifierConstructorDescriptionGameResult(int number, Color color, ArrayList<Integer> depths) GameResult(int number, Color color, ArrayList<Integer> depths) -
Uses of Color in game
Modifier and TypeMethodDescriptionMoveGenerator.getColor(char c) Get the color from a character representation.MoveGenerator.getColorAtPosition(int position) Get the piece color at a specific position on the board.Color[][]MoveGenerator.getColorBoard()static ColorReturns the enum constant of this class with the specified name.static Color[]Color.values()Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionbooleanMoveGenerator.doesBaseRowContainColor(Color color, int rowToCheck) Checks if a specific row on the board contains any pieces of a given color.MoveGenerator.generateAllPossibleMoves(Color color) Generates all possible moves for a specific color.MoveGenerator.generateAllPossibleMovesCaptures(Color color) Generates all possible capturing moves for a specific color.MoveGenerator.generateMaxOnePossibleMoveForAI(Color color) Generates a maximum of one possible move for a given color.booleanDetermines the winner for the Monte Carlo Tree Search (MCTS) strategy (only use when confirmed that game is over).booleanMoveGenerator.isGameOver(Color color) Checks if the game is over for a specific color based on current board state.booleanMoveGenerator.isGameOver(String move, Color color) Checks if the game is over for a specific color after a given move.booleanMoveGenerator.isGameOver(LinkedHashMap<Integer, List<Integer>> moves, Color color) Checks if the game is over for a specific color based on available moves.intMoveGenerator.isGameOverMCTS(LinkedHashMap<Integer, List<Integer>> moves, Color color) Checks if the game is over for the Monte Carlo Tree Search (MCTS) strategy and returns the result.booleanMoveGenerator.isValidMove(int move, Color pieceColor) Checks if a move is valid for a piece of the given color.booleanMoveGenerator.isWinForMCTS(Color color) Checks if the game is a win for the Monte Carlo Tree Search (MCTS) strategy.voidMoveGenerator.setColorBoard(Color[][] givenColorBoard) Set the color board. -
Uses of Color in search
Modifier and TypeMethodDescriptiondoubleMinimax_noAB.iterativeDeepeningNoAlphaBeta(MoveGenerator gameState, Color currentColor, Color ourColor, int move) Performs iterative deepening search using the Minimax algorithm without Alpha-Beta pruning.doubleMinimax_noAB.treeSearchNoAlphaBeta(MoveGenerator gameState, int depth, Color currentColor, Color ourColor, double value) Performs the Minimax search without Alpha-Beta pruning. -
Uses of Color in search.ab
Modifier and TypeMethodDescriptionstatic doubleEvaluation.getScoreWrapper(MoveGenerator moveGenerator, Color player, double depth) Computes the score of the current game position for a specified player.static doubleEvaluation.getScoreWrapperAI(MoveGenerator moveGenerator, Color player, double depth, LinkedHashMap<Integer, List<Integer>> moves) Computes the score of the current game position for a player considering opponent's moves.static doubleEvaluation.getScoreWrapperOld(MoveGenerator moveGenerator, Color player, String fen) Computes the score of the current game position for a specified player in an old version for benchmarking.doubleMinimax_AB.iterativeDeepening(MoveGenerator gameState, double moveTimeLimit, Color ourColor) Performs an iterative deepening search to find the best move score within the given time limit.static voidEvaluation.orderMoves(LinkedList<Integer> moves, Color color, MoveGenerator game) Orders moves in a list based on whether a move winning, capturing, and closeness to target row.static voidEvaluation.orderMovesOld(LinkedList<Integer> moves, Color color) Orders moves in a list in an old version for benchmarking based on whether a move winning and closeness to target row.doubleMinimax_AB.quiescenceSearch(MoveGenerator gameState, double alpha, double beta, Color currentColor, Color ourColor) Performs a quiescence search to evaluate positions more accurately by only exploring capture moves.doubleEvaluation.rateMove(MoveGenerator gameState, Color color, int startPosition, int endPosition, int depth) Rates a move in the game based on its impact on the game position for a specified player.static doubleEvaluation.ratePosition(MoveGenerator moveGenerator, Color color, int depth) Rates the overall position of the game for a specified player.static doubleEvaluation.ratePositionAI(MoveGenerator moveGenerator, Color color, int depth, LinkedHashMap<Integer, List<Integer>> moves, Color currentColor) Rates the overall position of the game for a player considering opponent's moves.static doubleEvaluation.ratePositionOld(MoveGenerator moveGenerator, Color color, String fen) Rates the overall position of the game for a specified player in an old version for benchmarking.doubleMinimax_AB.treeSearch(MoveGenerator gameState, double alpha, double beta, double endTime, int depth, Color currentColor, Color ourColor) Executes a recursive tree search with alpha-beta pruning to evaluate game positions and find the best possible move for the current player. -
Uses of Color in search.mcts
Methods in search.mcts with parameters of type ColorModifier and TypeMethodDescriptionMCTS.expandAndReturnRandomNode(MCTSNode node, MoveGenerator moveGenerator, Color color, LinkedList<Integer> children) Expands the given MCTS node by creating new child nodes for each possible move and returns one of the created child nodes at random.voidMCTS.propagateDataToRoot(MCTSNode node, int reward, Color colorOfExpandedPlayer) Propagates the results of a simulation back up to the root of the Monte Carlo Tree Search (MCTS) tree.intMCTS.simulateToEnd(Color color, MoveGenerator moveGenerator, Color parentColor) Simulates the game to the end using a probabilistic approach weighted by the number of possible moves or each player.voidMCTS.treePolicy(MoveGenerator moveGenerator, MCTSNode node, Color color) Executes the tree policy for the Monte Carlo Tree Search (MCTS) algorithm.Constructors in search.mcts with parameters of type Color -
Uses of Color in search.mcts_lib
Methods in search.mcts_lib with parameters of type ColorModifier and TypeMethodDescriptionintMCTS_lib.runMCTS(MoveGenerator moveGenerator, Color color) Runs the Monte Carlo Tree Search (MCTS) algorithm to determine the best move.