- game - package game
-
A Mastermind game engine.
- game - Variable in class game.ControlInterface
-
- Game - Class in game
-
Game-engine class.
- Game(Settings) - Constructor for class game.Game
-
Constructor with init instructions for new game.
- gameButtonPinActionPerformed(ActionEvent) - Method in class gui.MainWindow
-
Place the chosen color to the game table pin.
- gameButtonResultActionPerformed(ActionEvent) - Method in class gui.MainWindow
-
Check the active game Row and display the result.
- gameButtons - Variable in class gui.MainWindow
-
- gameEnded - Variable in class game.Game
-
- gameField - Variable in class game.Game
-
- GameField - Class in game
-
The actual game field.
- GameField(int, int) - Constructor for class game.GameField
-
Constructor which inits the game field with width and max. tries.
- gameField - Variable in class game.GameField
-
- gameMenuBar - Variable in class gui.MainWindow
-
- gameModeComboBox - Variable in class gui.MainWindow
-
- gamePanel - Variable in class gui.MainWindow
-
- gamePlaceholder - Variable in class gui.MainWindow
-
- gameScrollPane - Variable in class gui.MainWindow
-
- gameState - Variable in class gui.MainWindow
-
- gameWidthSlider - Variable in class gui.MainWindow
-
- generateCode(int, int, boolean) - Method in class game.SecretCode
-
Creates a secret code.
- generateGuess() - Method in class ai.Bruteforce
-
Generate a guess by "incrementing" the previous guess.
- generateGuess() - Method in class ai.GeneticSolver
-
Create new generations until enough egible codes are found.
- generateGuess() - Method in class ai.RandomGuesses
-
Generating a totaly random guess ignoring previous results.
- generateGuess() - Method in interface ai.SolvingAlgorithm
-
Generate a guess and return it as a Row.
- generateRndGuess() - Method in class ai.GeneticSolver
-
Generates a Row with random colors.
- GENERATION_SIZE - Variable in class ai.GeneticSolver
-
Number of generations.
- GeneticSolver - Class in ai
-
A genetic solving algorithm.
- GeneticSolver(ControlInterface) - Constructor for class ai.GeneticSolver
-
Initialize the AI with settings from the Mastermind engine.
- geneticSolverTest(int) - Method in class ai.GeneticSolver
-
Speed test.
- getActiveRowNumber() - Method in class game.ControlInterface
-
Getter for the active Row number.
- getActiveRowNumber() - Method in class game.GameField
-
Getter for the active Row number.
- getAiMode() - Method in class game.Settings
-
Getter for game mode.
- getCode() - Method in class game.SecretCode
-
Getter for the secret code.
- getColorAtPos(int) - Method in class common.Row
-
Get a color at a specific position in the Row.
- getColors() - Method in class common.Row
-
Getter for a Row.
- getColQuant() - Method in class game.Settings
-
Getter for the quantity of colors used in the game.
- getDoubleCol() - Method in class game.Settings
-
Getter for double color allowance.
- getField() - Method in class game.GameField
-
Getter for the whole game field.
- getGameEnded() - Method in class game.ControlInterface
-
Getter for game ended state.
- getGameFieldRow(int) - Method in class game.ControlInterface
-
Get a specific game Row.
- getLastResultRow() - Method in class game.ControlInterface
-
Get the newest results.
- getLoaded() - Method in class game.ControlInterface
-
Getter for loaded game state.
- getMaxTries() - Method in class game.Settings
-
Getter for max. tries (guesses).
- getParentPos() - Method in class ai.GeneticSolver
-
Getter for a good parent position in the population.
- getResult() - Method in class game.GameField
-
Getter for active (last) result Row.
- getResult(int) - Method in class game.GameField
-
Getter for a result Row.
- getResultRow(int) - Method in class game.ControlInterface
-
Get a specific result Row.
- getRGB() - Method in enum common.Color
-
Returning the SRGB-code as an int.
- getRow() - Method in class game.GameField
-
Getter for the active Row.
- getRow(int) - Method in class game.GameField
-
Getter for a game Row.
- getSecretCode() - Method in class game.ControlInterface
-
Get the secret code.
- getSettingAiMode() - Method in class game.ControlInterface
-
Getter for AI mode.
- getSettingColQuant() - Method in class game.ControlInterface
-
Getter for the color quantity.
- getSettingDoubleCol() - Method in class game.ControlInterface
-
Getter for double colors allowance.
- getSettingMaxTries() - Method in class game.ControlInterface
-
Getter for max. number of tries (guesses).
- getSettingWidth() - Method in class game.ControlInterface
-
Getter for the game width.
- getWidth() - Method in class game.Settings
-
Getter for the game width.
- guess - Variable in class ai.Bruteforce
-
Holding the guess
- gui - package gui
-
A GUI for the Mastermind engine (package game).
- save() - Method in class game.ControlInterface
-
Save the game with settings as "savegame" file.
- save(String) - Method in class game.ControlInterface
-
Save the game with settings to a specific path/filename.
- saveAsMenuItemActionPerformed(ActionEvent) - Method in class gui.MainWindow
-
Show file browser dialog and save game to the given path and name.
- saveButtonActionPerformed(ActionEvent) - Method in class gui.MainWindow
-
Save, init new game (with new settings) and hide dialog.
- secretCode - Variable in class game.Game
-
- SecretCode - Class in game
-
This class represents the secret code the player or the AI has to guess.
- SecretCode(int, int, boolean) - Constructor for class game.SecretCode
-
Initializes a new secret code with the given parameters.
- secretCode - Variable in class game.SecretCode
-
- secretCodeButtons - Variable in class gui.MainWindow
-
- secretCodeButtonsActionPerformed(ActionEvent) - Method in class gui.MainWindow
-
Set the secret code color.
- secretCodePanel - Variable in class gui.MainWindow
-
- setAiMode(boolean) - Method in class game.Settings
-
Setter for game mode.
- setCode(Row) - Method in class game.SecretCode
-
Setter for the secret code.
- setColorAtPos(int, Color) - Method in class common.Row
-
Set a color at a specific position in the Row.
- setColors(Color[]) - Method in class common.Row
-
Setter for a Row.
- setColQuant(int) - Method in class game.Settings
-
Setter for the quantity of colors used in the game.
- setDebug(boolean) - Static method in class common.Debug
-
Set the debugging on or off.
- setDoubleCol(boolean) - Method in class game.Settings
-
Setter for double color allowance.
- setField(Row[]) - Method in class game.GameField
-
Setter for the whole game field.
- setLastGuessMenuItemMenuItemActionPerformed(ActionEvent) - Method in class gui.MainWindow
-
Set the last guess in the active row.
- setMaxTries(int) - Method in class game.Settings
-
Setter for max. tries (guesses).
- setResult(Row) - Method in class game.GameField
-
Setter - saves the result in the active Row of the result field.
- setRow(int, Row) - Method in class game.GameField
-
Setter for a game Row.
- setRow(Row) - Method in class game.GameField
-
Setter for the active Row.
- setSecretCode(Color[]) - Method in class game.ControlInterface
-
Set the secret code.
- setSettingAiMode(boolean) - Method in class game.ControlInterface
-
Setter for AI mode.
- setSettingColQuant(int) - Method in class game.ControlInterface
-
Setter for the color quantity.
- setSettingDoubleCol(boolean) - Method in class game.ControlInterface
-
Setter for double colors allowance.
- setSettingMaxTries(int) - Method in class game.ControlInterface
-
Setter for max. number of tries (guesses).
- setSettingWidth(int) - Method in class game.ControlInterface
-
Setter for the game width.
- settings - Variable in class game.Game
-
- Settings - Class in game
-
Contains all settings of a game.
- Settings() - Constructor for class game.Settings
-
- settingsDialog - Variable in class gui.MainWindow
-
- setWidth(int) - Method in class game.Settings
-
Setter for the game width.
- showGameRow(int) - Method in class gui.MainWindow
-
Show the guess row.
- showHintMenuItemActionPerformed(ActionEvent) - Method in class gui.MainWindow
-
Fill out the current game table Row with a guess.
- showLoadedGameTable() - Method in class gui.MainWindow
-
Draw the game table by using loaded game data.
- showResultRow(int) - Method in class gui.MainWindow
-
Show the guess result of a Row.
- SolvingAlgorithm - Interface in ai
-
This interface describes how a solving algorithm has to be implemented.
- sort(int[], Row[], int, int) - Method in class ai.GeneticSolver
-
Helper function for recursive sorting.
- sortFeasibleByFitness(int[], Row[]) - Method in class ai.GeneticSolver
-
This is a Quicksort that sorts the fitness and pop Arrays by the criteria
in the fitness-array.
- swap(int[], int, int) - Method in class ai.GeneticSolver
-
Helper function to swap two elements of an int array.
- swap(Row[], int, int) - Method in class ai.GeneticSolver
-
Helper function to swap two elements of an array of Rows.