All Packages Class Hierarchy This Package Previous Next Index
Class JavaGO.Game
java.lang.Object
|
+----JavaGO.Game
- public class Game
- extends Object
- implements Constants
Game class
-
Game()
-
-
actionMove(int, int)
- Processing of a possible new move
-
actionPass()
- Processing of possible new pass move
-
addInfo(String)
- add Information to game
-
getDeads(int)
- get deads
-
getNode()
- get node
-
getPlayer()
- get player
-
getScore()
- get score
-
getSize()
- get size
-
getTerritory(int)
- get territory
-
init(JavaGO, int, int, double)
- init
-
initMark()
- init of mark data table
-
isAlive(int, int)
- If this function returns true, the stone is alive.
If this function returns false, the stone status
is undeterminate (for the moment)
CAUTION : isAlive( x, y ) can return false, even if the stone is not dead !
This function MUST be called throw isDead that makes the necessary init
-
isDead(int, int)
- Returns if this stone is dead
-
ko(int, int)
- Returns true if KO
-
newPassMove()
- Processing of new pass move
-
newStoneMove(int, int)
- new stone move (without color, normal move)
-
newStoneMove(int, int, int)
- new stone move (direct call by handicap() )
-
nodeXY(int, int)
- find move node with position
-
otherColor(int)
- Returns the other color (black -> white and white -> black)
-
possibleKO(int, int, int, int)
- possibleKO( int x, int y, int node, int color )
-
printAll()
- print all Intersection
-
remove(int, int)
- Remove dead chains
-
removeDeads(int)
- Deads removal for one color
-
resetDeads()
- reset deads
-
scorer()
- Score calculation
-
setHandicaps(int)
- Init of Handicaps stones
-
setNode(int)
- set node :
if >= 0 direct acces to node, either : next, previous,
first or last node
-
setState()
- set intersection data table
-
SGF()
- SGF game file
-
whichType(Intersection, int, int)
- Returns the type of this Intersection
-
whichTypeNeighbour(Intersection, int, int)
- Returns the type of the neighbour or reprocess the new position
MUST be called by whichType()
Game
public Game()
init
public void init(JavaGO param_javago,
int param_game_size,
int param_handicap,
double param_komi)
- init
actionMove
public boolean actionMove(int x,
int y)
- Processing of a possible new move
newStoneMove
public void newStoneMove(int x,
int y)
- new stone move (without color, normal move)
newStoneMove
public void newStoneMove(int x,
int y,
int color)
- new stone move (direct call by handicap() )
actionPass
public void actionPass()
- Processing of possible new pass move
newPassMove
public void newPassMove()
- Processing of new pass move
setState
public void setState()
- set intersection data table
setHandicaps
public void setHandicaps(int handicap)
- Init of Handicaps stones
initMark
public void initMark()
- init of mark data table
removeDeads
public void removeDeads(int color)
- Deads removal for one color
isDead
public boolean isDead(int x,
int y)
- Returns if this stone is dead
isAlive
public boolean isAlive(int x,
int y)
- If this function returns true, the stone is alive.
If this function returns false, the stone status
is undeterminate (for the moment)
CAUTION : isAlive( x, y ) can return false, even if the stone is not dead !
This function MUST be called throw isDead that makes the necessary init
scorer
public double scorer()
- Score calculation
whichType
public Intersection whichType(Intersection color,
int x,
int y)
- Returns the type of this Intersection
whichTypeNeighbour
public Intersection whichTypeNeighbour(Intersection color,
int x,
int y)
- Returns the type of the neighbour or reprocess the new position
MUST be called by whichType()
remove
public void remove(int x,
int y)
- Remove dead chains
setNode
public boolean setNode(int param_node)
- set node :
if >= 0 direct acces to node, either : next, previous,
first or last node
ko
public boolean ko(int x,
int y)
- Returns true if KO
possibleKO
public boolean possibleKO(int x,
int y,
int node,
int color)
- possibleKO( int x, int y, int node, int color )
otherColor
public int otherColor(int color)
- Returns the other color (black -> white and white -> black)
getNode
public int getNode()
- get node
getSize
public int getSize()
- get size
getPlayer
public int getPlayer()
- get player
getScore
public double getScore()
- get score
getDeads
public int getDeads(int color)
- get deads
getTerritory
public int getTerritory(int color)
- get territory
resetDeads
public void resetDeads()
- reset deads
nodeXY
public int nodeXY(int x,
int y)
- find move node with position
printAll
public void printAll()
- print all Intersection
addInfo
public void addInfo(String param_info)
- add Information to game
SGF
public String SGF()
- SGF game file
All Packages Class Hierarchy This Package Previous Next Index