|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.game.AbstractGame
org.jscience.computing.game.gomoku.GomokuGame
public class GomokuGame
an implementation of the game Go-moku
| Field Summary | |
|---|---|
static int |
EMPTY
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
GomokuGame()
Creates a new GomokuGame object. |
|
GomokuGame(java.lang.String name,
int width,
int height)
Creates a new GomokuGame object. |
|
| Method Summary | |
|---|---|
protected int |
checkPositionWin(int column,
int row)
DOCUMENT ME! |
java.lang.Object |
clone()
DOCUMENT ME! |
int |
getHeight()
DOCUMENT ME! |
int |
getValueAt(int column,
int row)
DOCUMENT ME! |
int |
getWidth()
DOCUMENT ME! |
int[] |
getWinner()
DOCUMENT ME! |
protected GameMove[] |
listLegalMoves()
DOCUMENT ME! |
int |
nextPlayer()
DOCUMENT ME! |
protected boolean |
popMove()
DOCUMENT ME! |
protected boolean |
pushMove(GameMove move)
DOCUMENT ME! |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class org.jscience.computing.game.AbstractGame |
|---|
clearRedoList, gameOver, getGameName, getLastMove, getLastPlayer, getLegalMoves, getLegalMoves, getMoveHistory, getNumberOfRedoMoves, getRedoList, getResult, isLegalMove, isWinner, loadFromFile, makeMove, numberOfMoves, numberOfPlayers, redoMove, resetLegalMoves, resetLists, saveToFile, spawnChild, undoLastMove, undoMoves |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int EMPTY
| Constructor Detail |
|---|
public GomokuGame()
public GomokuGame(java.lang.String name,
int width,
int height)
name - DOCUMENT ME!width - DOCUMENT ME!height - DOCUMENT ME!| Method Detail |
|---|
protected GameMove[] listLegalMoves()
listLegalMoves in class AbstractGameprotected boolean pushMove(GameMove move)
pushMove in class AbstractGamemove - DOCUMENT ME!
protected boolean popMove()
popMove in class AbstractGamepublic int nextPlayer()
public int[] getWinner()
protected int checkPositionWin(int column,
int row)
column - DOCUMENT ME!row - DOCUMENT ME!
public int getValueAt(int column,
int row)
throws java.lang.ArrayIndexOutOfBoundsException
column - DOCUMENT ME!row - DOCUMENT ME!
java.lang.ArrayIndexOutOfBoundsException - DOCUMENT ME!public int getWidth()
public int getHeight()
public java.lang.String toString()
toString in class AbstractGamepublic java.lang.Object clone()
clone in interface GamePlayclone in class AbstractGameAbstractGame.spawnChild(GameMove)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||