@@ -8,29 +8,17 @@ public class RulesFactory {
88 private final HashMap <String , Rules > allRules = new HashMap <String , Rules >(1 );
99
1010 public RulesFactory (){
11- String id = "101 " ;
12- String name = "Liars Dice " ;
13- String [] categories = { "dice " , "deception " };
14- Integer [] users = { 2 , 3 , 4 , 5 , 6 };
11+ String id = "TICTACTOE " ;
12+ String name = "Tic Tac Toe " ;
13+ String [] categories = { "head to head " , "quick " };
14+ Integer [] users = { 2 };
1515 Integer teams = 0 ;
16- String [] phases = { "Move" , "Challenge" };
17- String [] moves = { "Roll" , "Challenge" };
18- String initialState = "each player has six dice " ;
19- Rules testRules = new Rules (id , name , categories , users , teams , phases , moves , initialState );
16+ String [] phases = { "Move" };
17+ String [] moves = { "Roll" };
18+ String initialState = "X " ;
19+ Rules tictactoe = new Rules (id , name , categories , users , teams , phases , moves , initialState );
2020
21- // allRules.put(testRules.getId(), testRules);
22-
23- String id2 = "102" ;
24- String name2 = "Tic Tac Toe" ;
25- String [] categories2 = { "head to head" , "quick" };
26- Integer [] users2 = { 2 };
27- Integer teams2 = 0 ;
28- String [] phases2 = { "Move" };
29- String [] moves2 = { "Roll" };
30- String initialState2 = "X " ;
31- testRules = new Rules (id2 , name2 , categories2 , users2 , teams2 , phases2 , moves2 , initialState2 );
32-
33- allRules .put (testRules .getId (), testRules );
21+ allRules .put (tictactoe .getId (), tictactoe );
3422 }
3523
3624 public Rules getRules (String id ) {
0 commit comments