A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages

A

AbstractSolver - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers
This is the class that is to be extended by most AIs.
AbstractSolver() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
 
actionPerformed(ActionEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
Handling of the change in status for the AIConfigPanel.singleaicheck checkbox.
actionPerformed(ActionEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
Handling the GO button and the AI checkbox
actionPerformed(ActionEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
Handles the bottom two buttons on the window that are only visible if the current game has ended.
addToCompetitors(Class<? extends GameSolverThread>) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
Allows new competitors to be added to a not yet arranged team competition
aicheck - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
aiconfig - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
AIConfigPanel - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
This class offers the middle (AI specific) section of the configuration panel.
AIConfigPanel(MineSweeper) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
Composes the AI config panel and initiates all the GUI objects needed to interact with it.
aiSpeed - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
allowCopy - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
applyCompetitorLimit - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
False if competitions could be arbitrary sized.
areThereAnyFlagsAround(MineMap, CoordinatesForSpot) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Determines if the explored map around a particular spot contains any flags (i.e., suspected mines).
arrangeSets() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
Prepares the competition so each competitor is playing a set with the other participants in the team.

B

baseConfig - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
blocker - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
Used as to block access to inThread and expectedBackground while dealing with flashing initialisation and background changes.

C

checkOutOfRange(int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Allows to determine if a given spot lies outside the perimeter of this map or not.
checkRightToCopy(MineMap, boolean) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
This method is a helper for the copy constructors and ensures that only those copies are done which are allowed to be copied.
cl1 - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
The textfield to contain the class name of the first competing AI
cl2 - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
The textfield to contain the class name of the second competing AI.
classNamePanel - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
clearColor - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour of explored territory
colCoord - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.CoordinatesForSpot
The coordinates to remember by the instances of this class are stored here
cols - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
The number of rows and columns in this minefield.
compareTo(SolverRanking) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SolverRanking
Enables sorting the solvers based on their achieved score.
competitors - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
The competitors that were assigned to this team
completeMap - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
configReturn - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
CoordinatesForSpot - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority
Allows to store the two coordinates of a spot on a minemap.
CoordinatesForSpot(int, int) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.CoordinatesForSpot
Allows pairing up two coordinates together in an easyly accessible fashion.
copyHelper(MineMap) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Makes sure the deep copy phase of the copy constructors is done well
currentGuis - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 

D

deadColor - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour to depict the place of death of our sweeper
delayForUI() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Allows an introduction of some delay in the minemap automated operations.
disposeAfterRun - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
 
doFullAreaRandomPick(MineMap) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Searches the map for unexplored spots and picks one randomly.
Duel - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
Runs a simple duel between two solvers.
Duel() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.Duel
 

E

ensureColour(FlashableJLabel, Color, Color) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour changes for a label will be propagated if the current colour is not the same as the one that was requested
ex - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
This executor allows queueing flashing threads so only one is doing its flashing operations at a given time
expectedBackground - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
If this is not null then there was a background change request during an ongoing flash.
EXPLODED - uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
The spot had a mine on it and the AI asked to explore it, thus the AI has exploded.
exploredMap - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
ExploredSpot - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base
Provides basic details on an explored area in the map.
ExploredSpot(Spot, int) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.ExploredSpot
 
ExploreOnes - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority
Sample solution to the AI.
ExploreOnes() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
 

F

field - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
This is the visual representation of a MineMap.
fieldSize - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
The total area of the minefield (in square spots).
firstAIQuestion - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
FLAG - uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
The spot has a potential mine underneath it.
flagASpot(int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
This is one of the main interaction points for AIs.
flagColor - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour of flagged spot
flash(Color, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
Request to flash the background with a specific colour.
FlashableJLabel - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
This class makes sure we always have the correct background colour for a particular label.
FlashableJLabel() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
 
flashedCol - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
 
flashedRow - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
 
FullScreenSolveShow - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
A GUI that produces a tiled layout with several independent games solved by the same solver.
FullScreenSolveShow() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FullScreenSolveShow
 

G

gameEnded - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
GameSolverThread - Interface in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.interfaces
The interface each AI has to implement in order to allow it to take part in a competition.
getCorrectlyIdentifiedMineCount() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Determines how many flags were placed on mines
getCurrentScore(MineMap, long, MineMap, long) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Calculates the score of the team which was listed first in its parameters.
getExploredAreaSize() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Tells how big of an area have been picked or flagged in this map
getFlaggedMineCount() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Calculates the number of mines that have a flag on them
getInCorrectlyIdentifiedMineCount() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Determines how many flags were placed on spots without mines
getLastCol() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Queries the X position of the last picked/flagged spot on the map
getLastRow() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Queries the Y position of the last picked/flagged spot on the map
getMyGUI() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
Subclasses can get the gui of the minemap to be solved via this method.
getMyMap() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
Subclasses can get the mine map to be solved via this method.
getPointsForTeamOne() - Method in interface uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.Scorer
Queries the results of the first team
getPointsForTeamOne() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Tells how the first team performed in the match.
getPointsForTeamOne() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
Awards 3 points for the first solver if it achieved more points than the second.
getPointsForTeamTwo() - Method in interface uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.Scorer
Queries the results of the second team
getPointsForTeamTwo() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Tells how the second team performed in the match.
getPointsForTeamTwo() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
Inverts the number of points that the first solver receives (see SingleSet.getPointsForTeamOne()).
getPos(int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
This is one of the main interaction points for AIs.
getRankedList() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
Once all sets were executed we can query the ranking of each participant with this method.
getSize() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
Allows us to query the number of competitors taking part in this team competition.
GUIHelper - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
This class offers automation on launching a GUI and an AI in parallel to each other.
GUIHelper() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.GUIHelper
 
GUIHelper.LaunchGUI - Interface in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
The interface allows customising the creation of a SimpleGamePanel
GUIHelper.SimpleLaunch - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
This class offers an implementation of the GUIHelper.LaunchGUI interface on the simplest way possible: directly calling the constructor of SimpleGamePanel.

H

height - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
howManyAround - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
HumanSolver - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers
A sample "solver" which does not solve anything instead it allows a human to interact with the GUI.
HumanSolver() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.HumanSolver
This constructor just makes sure the GUI is always present for this solver.

I

inFogColor - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour of unknown territory
inGrid - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
The label that is in the visual grid representation of the map.
inThread - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
Do we have a running thread to flash the background?
isEnded() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Determines if the game has been played to its final steps or not.
isMatchRan() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Allows to query whether the match has already been done or not.
isWon() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Determines if the game has been won.

L

lastCol - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
lastRow - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
launch(MineMap, String, boolean) - Method in interface uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.GUIHelper.LaunchGUI
This is a factory method for GUIs.
launch(MineMap, String, boolean) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.GUIHelper.SimpleLaunch
 
launchCompetitor(Class<? extends GameSolverThread>, MineMap, boolean) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
Clones a map, instantiates an AI and configures its GUI, launches the AI's solver thread, then finally it makes the configuration window disappear.
launchCompetitor(Class<? extends GameSolverThread>, GUIHelper.LaunchGUI, MineMap, int, int, boolean) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.GUIHelper
Clones a map, instantiates an AI and configures its GUI, launches the AI's solver thread.
launchSolvers() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
This method checks for the correctness of the configuration and if everything is fine, it creates a to be solved map then launches the necessary GUIs and AIs.
lb - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
level - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
levels - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
loadReferredClass(JTextField) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
Simple wrapper around the configured AI class's loader.
lost - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FullScreenSolveShow
 
lost - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 

M

main(String[]) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.Duel
 
main(String[]) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.RunCompetitionMultiPhase
 
main(String[]) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.RunCompetitionSingleTeam
 
main(String[]) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FullScreenSolveShow
 
main(String[]) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
The main method to start the application with
MapCopyException(String) - Constructor for exception uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap.MapCopyException
 
markPicked(int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Helper method to change the last touched coordinate (this is usually used by flagASpot/pickASpot.
matches - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
The arranged set with all the matches.
matchRan - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
true if the SingleMatch.runMatch() method has already completed the match between the two solvers.
maxCols - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The maximum number of columns in a particular match.
maxRows - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The maximum number of rows in a particular match.
minCols - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The minimum number of columns in a particular match.
MINE - uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
The spot has a mine deployed underneath it.
mineCount - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Very helpful to tell how many mines are contained in a given map.
MineMap - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base
The representation of a mine map.
MineMap(int, int, double, int) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Enables the creation of completely randomly generated MineMaps
MineMap(MineMap) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
This copy constructor acts like MineMap(MineMap, boolean) but always assumes that the copy is not allowed to be copied anymore.
MineMap(MineMap, boolean) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
The copy constructor of the MineMap.
MineMap(MineMap, int) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
This copy constructor acts like MineMap(MineMap, int, boolean) but always assumes that the copy is not allowed to be copied anymore.
MineMap(MineMap, int, boolean) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
A slight variant of the copy constructor (MineMap(MineMap)).
MineMap.MapCopyException - Exception in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base
 
mineRatios - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
MineSweeper - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
This is the main window of the Mine sweeper GUI.
MineSweeper() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
Constructs and shows the main window with a very simple minesweeping configuration UI.
mineswicon - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
The application icon to be used for the windows of this minesweeper
minRows - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The minimum number of rows in a particular match.
minSpotDimension - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Defines the minimum height/width of the squares that represent the spots on the gui
mouseClicked(MouseEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
Sending out the messages to the map to explore it further
mouseEntered(MouseEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
Highlights the GUI item if we hover over them with a special, short white flash.
mouseExited(MouseEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
 
mouseover - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
When the mouse is over a particular spot, this colour is used to flash the given spot to give a sense of more interactivity to the user.
mousePressed(MouseEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
 
mouseReleased(MouseEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
 
myColCoord - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
The coordinates of the spot that this event handler is responsible for.
myGUI - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
The GUI to interact with (i.e,.
myMap - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
The map to be solved.
myMap - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
The map that is to be solved
myRowCoord - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
The coordinates of the spot that this event handler is responsible for.

N

nearMineCount - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.ExploredSpot
How many mines are under this spot? If the spot is not a Spot.SAFE, then this is -1.

O

ongoing - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
overallStatus - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 

P

parent - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
parent - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
A reference to the configurator window which created us.
parseCompetingClassNames(String[], int) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.RunCompetitionMultiPhase
Validates the argument list, loads them as class objects, and randomizes their order for fairness
parseDimensionValue(JTextField) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
Allows unified parsing of the minefield's dimensions (width and height).
pickAllOnList(MineMap, List<CoordinatesForSpot>) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Picks all spots handed over as a list.
pickARandomSpotFromList(MineMap, List<CoordinatesForSpot>) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Randomly chooses a spot from the list of areas and picks it on the map that it receives.
pickASpot(int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
This is one of the main interaction points for AIs.
pickedColor - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour of a spot recently picked/flagged
playAgain - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
playArea - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
 
preparedMap - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 

R

r - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
reconfig - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
refreshArea() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
This method updates all labels in the play area to show the state of the map at the time when the method is called.
requiresGUI - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
Tells whether to allow calling the AbstractSolver.run() method without setting the GUI first.
requiresGUI() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
 
requiresGUI() - Method in interface uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.interfaces.GameSolverThread
Tells if the solver can function without a GUI passed.
RestartableGamePanel - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
On top of the SimpleGamePanel functionalty, this class also offers a few controls at the end of a game.
RestartableGamePanel(MineSweeper, boolean, MineMap, String, boolean) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
Instantiating a window will immediately show it and starts the monitoring and visualisation process of a given minemap.
resultsTable - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
The results that were collected based on the sets.
rng - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Ensures a fresh random generator across all matches.
rowCoord - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.CoordinatesForSpot
The coordinates to remember by the instances of this class are stored here
rows - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
The number of rows and columns in this minefield.
run() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
Ensures we don't run without getting a map and a gui.
run() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Implements the following technique: the algorithm randomly explores the map but prefers exploring those areas first which are in the vicinity of an already explored spot with one mine in its neighbourhood.
run() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.SimpleLineByLineSolver
The solving algorithm.
run() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
Ensures the window contains the most up to date look of the MineMap (this is done with the help of the original SimpleGamePanel.run() method.
run() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Ensures the window contains the most up to date look of the MineMap.
runCompetition(ArrayList<Class<? extends GameSolverThread>>) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleEliminationTournament
This function runs a single elimination tournament to order the current competitors list according to their strength.
RunCompetitionMultiPhase - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
Runs two phase competition.
RunCompetitionMultiPhase() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.RunCompetitionMultiPhase
 
RunCompetitionSingleTeam - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
Runs an unlimited size team competition with the solvers that are specified as command line parameters.
RunCompetitionSingleTeam() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.RunCompetitionSingleTeam
 
runMatch() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Runs two solvers in parallel (the solvers are started in a random order to make sure the timing of their performance is consistent) and tests them for their performance on a randomly generated map.
runSet() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
Runs the matches previously arranged by the constructor.
runSets() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
Runs all arranged sets in a sequential order then accumulates the score for each team.

S

SAFE - uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
The spot is explored and it is safe to step on.
scaleComp(int, int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
This method simplifies the transition between two colour components
score - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SolverRanking
The achieved score of the solver class in the competition it was taking part
Scorer - Interface in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
One should implement this interface to offer scores about two teamed sets/matches.
searchForOnes(MineMap) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Lists all the coordinates on the map which has one mine in the vicinity.
searchForUnexplored(MineMap) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Explores the complete map for unexplored spots.
searchUnexploredAround(MineMap, List<CoordinatesForSpot>) - Static method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority.ExploreOnes
Explores the area around a set of coordinates on the map and gives the list of unexplored items around.
secondAIQuestion - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
sendGUI(SimpleGamePanel) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
Receives the GUI that could be used for customising the AI's window.
sendGUI(SimpleGamePanel) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.HumanSolver
Receives the GUI that needs new event handlers to support more interaction with the map.
sendGUI(SimpleGamePanel) - Method in interface uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.interfaces.GameSolverThread
Although for most solvers the GUI is not necessary, it is also passed along to allow solvers to provide extra feedback on the user interface.
sendMap(MineMap) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
The Minemap is saved to the corresponding field: AbstractSolver.myMap.
sendMap(MineMap) - Method in interface uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.interfaces.GameSolverThread
Make sure the to be solved map is propagated to the solver.
serialVersionUID - Static variable in exception uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap.MapCopyException
 
serialVersionUID - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
serialVersionUID - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
 
serialVersionUID - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
serialVersionUID - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
serialVersionUID - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
 
setDisposeAfterRun(boolean) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
 
setExpectedBackground(Color) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
Sets the background to the desired colour.
setRequiresGUI(boolean) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.AbstractSolver
Solvers that does not depend on a GUI directly can disable for its checking in the AbstractSolver.run() method.
sets - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
The sets that were arranged by the TeamCompetition.arrangeSets() method.
SimpleGamePanel - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
Offers the a UI for a particular mine sweeping game (the game is actually represented by a MineMap instance).
SimpleGamePanel(MineMap, String, boolean) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Instantiating a window will immediately show it and starts the monitoring and visualisation process of a given minemap.
SimpleLaunch() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.GUIHelper.SimpleLaunch
 
simpleLauncher - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.GUIHelper
SimpleLineByLineSolver - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers
Sample solution to the AI.
SimpleLineByLineSolver() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.SimpleLineByLineSolver
 
singleaicheck - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
Checkbox to show if we want one or two AIs.
SingleEliminationTournament - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
Offers an implementation of a single elimination tournament.
SingleEliminationTournament() - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleEliminationTournament
 
SingleMatch - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
Allows the arrangement of a single match between two solvers.
SingleMatch(Class<? extends GameSolverThread>, Class<? extends GameSolverThread>) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Keeps hold of the two solvers that needs to compete in the current match.
singleQuestion - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
SingleSet - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
Allows the arrangement of a single multiple match set between two solvers.
SingleSet(Class<? extends GameSolverThread>, Class<? extends GameSolverThread>) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
Prepares the set so it is ready to run with the SingleSet.runSet() method.
sliderPanel - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
 
solver - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SolverRanking
The solver class that was ranked
solverOne - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The two solvers which take part in the match.
solverOne - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
The two solvers that play against each other
SolverRanking - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
Allows to pair a solver class with its score and offers a comparator on the solver to allow easy sorting of solvers (i.e., to figure out who is the best).
SolverRanking(Class<? extends GameSolverThread>, int) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SolverRanking
Enables to fill in the two data members
solverTwo - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The two solvers which take part in the match.
solverTwo - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
The two solvers that play against each other
speedSlider - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel
The slider that allows to set the speed of the AIs.
Spot - Enum in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base
Provides the list of possible spots in the map.
Spot() - Constructor for enum uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
 
SpotEventHandler - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
Offers visual feedback if the user is hovering over a particular spot.
SpotEventHandler(MineMap, FlashableJLabel, int, int) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SpotEventHandler
Allows to customize the event handler and make sure it correctly identifies with a particular spot in the map.
stats - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
steps - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
The number of steps it takes to reach the desired colour in a flashing sequence.
sumSubScoreOne - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
The cumulative score of each solver
sumSubScoreTwo - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
The cumulative score of each solver
sweepAround(int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Helper for the tracing and mine counting operations.

T

TeamCompetition - Class in uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
This class allows to organise a competition between various game solvers where each solver plays a set of games with everyone else in the same group.
TeamCompetition(boolean) - Constructor for class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.TeamCompetition
Prepares the competition
terminateFlashing() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel
 
textColor - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour of regular cell contents
toMonitor - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
 
toString() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
Offers an easy way to present the results of a match if it is to be show in a textual form.
toString() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleSet
Offers an easy way to present the results of a set if it is to be show in a textual form.
toString() - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SolverRanking
Simple text representation of the score and the solver.
totalScoreOne - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The cumulative score of the match.
totalScoreTwo - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition.SingleMatch
The cumulative score of the match.
traceFrom(int, int) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
Allows discovering the largest extent of unexplored, but completely safe (i.e., spots with no mines on them) area
type - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.ExploredSpot
 

U

uidelay - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap
 
uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base - package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base
 
uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers - package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers
 
uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority - package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.solvers.onepriority
 
uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition - package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.competition
 
uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui - package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
 
uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.interfaces - package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.interfaces
 
UNEXPLORED - uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
The spot is not yet explored
unknown - Static variable in enum uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
The list of areas that we don't necessary know what is underneath them.

V

valueOf(String) - Static method in enum uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
Returns the enum constant of this type with the specified name.
values() - Static method in enum uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.Spot
Returns an array containing the constants of this enum type, in the order they are declared.

W

width - Variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper
 
windowActivated(WindowEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
windowClosed(WindowEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
Makes sure the configurator window is visible if this window gets closed
windowClosing(WindowEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
windowDeactivated(WindowEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
windowDeiconified(WindowEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
windowIconified(WindowEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
windowOpened(WindowEvent) - Method in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
winSpiral - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel
Colour to show the winning spiral in
won - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FullScreenSolveShow
 
won - Static variable in class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel
 
A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages