|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.samples.tictactoe.TTTGame
public class TTTGame
| Field Summary | |
|---|---|
static int |
O
|
static int |
X
|
| Constructor Summary | |
|---|---|
TTTGame()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getJSON()
Create a JSON representation of the game state. |
boolean |
turn(int cell)
|
int |
win()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int X
public static final int O
| Constructor Detail |
|---|
public TTTGame()
| Method Detail |
|---|
public boolean turn(int cell)
public int win()
public java.lang.String getJSON()
{ "win": "-1", "board": ["0","0","0","0","0","0","0","0","0"] }
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||