|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cvut.agents.rph.reversi.main.HeadlessReversiCreator
public class HeadlessReversiCreator
Creator of the Reversi game without the GUI ReversiView
. No restarts.
Author: Ondrej Vanek
Date: 10/3/12
Time: 10:09 AM
Field Summary | |
---|---|
protected ReversiController |
controller
Controller of the game. |
protected ReversiModel |
model
Model of the game. |
protected static int |
PLAYGROUND_HEIGHT
Height of the playground. |
protected static int |
PLAYGROUND_WIDTH
Width of the playground. |
protected int |
timeoutInMilis
Timeout for one move in miliseconds. |
Constructor Summary | |
---|---|
HeadlessReversiCreator()
|
Method Summary | |
---|---|
protected ReversiController |
createGame(int width,
int height,
ReversiPlayer player1,
ReversiPlayer player2)
|
static void |
main(java.lang.String[] args)
Creates a Reversi game. |
private ReversiGameResult |
playGame()
Plays the game with autorun enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int PLAYGROUND_WIDTH
protected static final int PLAYGROUND_HEIGHT
protected ReversiModel model
protected ReversiController controller
protected int timeoutInMilis
Constructor Detail |
---|
public HeadlessReversiCreator()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- full names of the player classes (e.g. cz.cvut.agents.rph.reversi.players.WrongMovePlayer)
java.lang.Exception
protected ReversiController createGame(int width, int height, ReversiPlayer player1, ReversiPlayer player2) throws java.lang.Exception
java.lang.Exception
private ReversiGameResult playGame() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |