public class General2DAnalyze extends AbstractAnalyze<CharPoint>
| Modifier and Type | Field and Description |
|---|---|
static char |
BLOCKED |
static char |
HIDDEN_MINE |
static char |
KNOWN_MINE |
static char[] |
UNCLICKED |
| Constructor and Description |
|---|
General2DAnalyze(String[] map) |
General2DAnalyze(String[] map,
int hiddenMines) |
General2DAnalyze(String[] map,
int hiddenMines,
int[][] neighbors) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
fieldHasRule(CharPoint field)
Determines if the specified field is/has a rule that should be added to the constraints
|
protected List<CharPoint> |
getAllPoints() |
protected List<CharPoint> |
getAllUnclickedFields() |
protected int |
getFieldValue(CharPoint field) |
protected List<CharPoint> |
getNeighbors(CharPoint field) |
CharPoint |
getPoint(int x,
int y) |
protected int |
getRemainingMinesCount() |
protected boolean |
isClicked(CharPoint neighbor) |
protected boolean |
isDiscoveredMine(CharPoint neighbor) |
createRules, createRules, getNeighborsFor, isFoundAndisMineaddRule, getGroups, getRules, solve, splitFieldRules, splitFieldRulespublic static final char[] UNCLICKED
public static final char HIDDEN_MINE
public static final char KNOWN_MINE
public static final char BLOCKED
public General2DAnalyze(String[] map)
public General2DAnalyze(String[] map, int hiddenMines)
public General2DAnalyze(String[] map, int hiddenMines, int[][] neighbors)
protected List<CharPoint> getAllPoints()
getAllPoints in class AbstractAnalyze<CharPoint>protected boolean fieldHasRule(CharPoint field)
AbstractAnalyzefieldHasRule in class AbstractAnalyze<CharPoint>field - Field that is being checkedprotected int getRemainingMinesCount()
getRemainingMinesCount in class AbstractAnalyze<CharPoint>protected List<CharPoint> getAllUnclickedFields()
getAllUnclickedFields in class AbstractAnalyze<CharPoint>protected boolean isDiscoveredMine(CharPoint neighbor)
isDiscoveredMine in class AbstractAnalyze<CharPoint>protected int getFieldValue(CharPoint field)
getFieldValue in class AbstractAnalyze<CharPoint>protected List<CharPoint> getNeighbors(CharPoint field)
getNeighbors in class AbstractAnalyze<CharPoint>protected boolean isClicked(CharPoint neighbor)
isClicked in class AbstractAnalyze<CharPoint>public CharPoint getPoint(int x, int y)
Copyright © 2014. All rights reserved.