public class Minesweeper extends Object
Minesweeper
HERE.Modifier and Type | Class and Description |
---|---|
private static class |
Minesweeper.gameState |
Modifier and Type | Field and Description |
---|---|
private static Tile[][] |
gameArray |
private static org.apache.logging.log4j.Logger |
logger
log4j
Logger . |
static String |
LONG
LONG name of this project.
|
private int |
numberFlags |
static String |
SHORT
SHORT name of this project.
|
private Minesweeper.gameState |
stateOfGame |
Constructor and Description |
---|
Minesweeper()
No-args constructor: game is running, do not start with any flags.
|
Modifier and Type | Method and Description |
---|---|
private void |
addFlag()
Adds to a flag when a flag tile is uncovered.
|
static Tile[][] |
getGameArray() |
static Tile[][] |
getMines() |
void |
tileHandled(Tile other)
A tile has been triggered - this method will handle it (WORK IN PROGRESS)
|
void |
winCondition()
Has the state of the game changed yet?
|
public static final String LONG
public static final String SHORT
private static org.apache.logging.log4j.Logger logger
Logger
.private Minesweeper.gameState stateOfGame
private int numberFlags
public Minesweeper()
private void addFlag()
Tile
.
Tile class. Currently private.public static Tile[][] getGameArray()
public void tileHandled(Tile other)
other
- NOT SURE WHAT OTHER ISpublic void winCondition()
Copyright © 2018. All rights reserved.