Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test for diamond move
  • Loading branch information
sas12028 committed Apr 5, 2017
1 parent 9d84c5e commit 14edbbf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/CheckersGameState2.java
Expand Up @@ -28,6 +28,18 @@ public class CheckersGameState2 implements CheckersGameState {
state = (CheckersGameState2)state.result(actions.get(0));
state.printState();
}
int[] b = new int[32];
b[5] = 3;
b[8] = 2;
b[16] = 2;
b[17] = 2;
b[9] = 2;
CheckersGameState s = new CheckersGameState2(1, b);
s.printState();
for(Move m: s.actions()){
System.out.println(m);
}

}

public CheckersGameState2(int player, int[] board) {
Expand Down

0 comments on commit 14edbbf

Please sign in to comment.