MCPcopy Index your code
hub / github.com/aws-samples/eb-java-scorekeep / getRules

Method getRules

src/main/java/scorekeep/TicTacToe.java:11–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Callers 2

gameplayTestMethod · 0.95
RulesFactoryMethod · 0.95

Calls 8

setInitialStateMethod · 0.80
setPhasesMethod · 0.80
setTeamsMethod · 0.80
setCategoriesMethod · 0.80
setMovesMethod · 0.45
setUsersMethod · 0.45
setNameMethod · 0.45
setIdMethod · 0.45

Tested by 1

gameplayTestMethod · 0.76