| 9 | private static final Logger logger = LoggerFactory.getLogger(TicTacToe.class); |
| 10 | |
| 11 | public static Rules getRules() { |
| 12 | String id = "TicTacToe"; |
| 13 | String name = "Tic Tac Toe"; |
| 14 | String[] categories = { "head to head", "quick" }; |
| 15 | Integer[] users = { 2 }; |
| 16 | Integer teams = 0; |
| 17 | String[] phases = { "Move" }; |
| 18 | String[] moves = { "Roll" }; |
| 19 | String initialState = "X "; |
| 20 | Rules tictactoe = new Rules().setId(id) |
| 21 | .setName(name) |
| 22 | .setCategories(categories) |
| 23 | .setUsers(users) |
| 24 | .setTeams(teams) |
| 25 | .setPhases(phases) |
| 26 | .setMoves(moves) |
| 27 | .setInitialState(initialState); |
| 28 | return tictactoe; |
| 29 | } |
| 30 | /* State is a string with one character that indicates the current turn |
| 31 | * (X or O), or win state (A or B). The remaining 9 characters map to spaces |
| 32 | * on the game board. |