|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xistrat.math.GoRules
public class GoRules
GoRules checks that a Go game follows the general rules.
Field Summary | |
---|---|
static int |
EMPTY
|
static int |
KO
|
static int |
UNSETTLED
|
Constructor Summary | |
---|---|
GoRules()
|
Method Summary | |
---|---|
static java.util.LinkedList<StonesBean> |
createAllFig(StonesBean stonesBean,
java.util.LinkedList<MoveBean> allMoves,
FastFace fastFace,
int turnOf,
int numP)
used in loading a game reconstructing all positions of all times of a game by help of the start position and all moves |
static StonesBean |
doPut(StonesBean stonesBean,
int to,
FastFace fastFace,
int id)
used by F4Daemon, engine and gui |
static StonesBean |
doRemove(StonesBean stonesBean,
int to,
FastFace fastFace,
int cont)
used by F4Daemon, engine and gui |
static int[] |
getScores(int currPlayers,
FastFace fastFace,
StonesBean stonesBean,
java.util.LinkedList<java.lang.Integer> removals,
int komiVal)
WonnaBe Japanese scoring |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EMPTY
public static final int UNSETTLED
public static final int KO
Constructor Detail |
---|
public GoRules()
Method Detail |
---|
public static StonesBean doPut(StonesBean stonesBean, int to, FastFace fastFace, int id)
public static StonesBean doRemove(StonesBean stonesBean, int to, FastFace fastFace, int cont)
public static java.util.LinkedList<StonesBean> createAllFig(StonesBean stonesBean, java.util.LinkedList<MoveBean> allMoves, FastFace fastFace, int turnOf, int numP)
reconstructing all positions of all times of a game by help of the start position and all moves
public static int[] getScores(int currPlayers, FastFace fastFace, StonesBean stonesBean, java.util.LinkedList<java.lang.Integer> removals, int komiVal)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |