Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sas12028 committed Apr 4, 2017
1 parent ed02e20 commit 94d335a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@ public static void main(String[] args){
"w", "-", "w", "-", "w", "-", "w", "-",
"-", "w", "-", "-", "-", "w", "-", "w",
"w", "-", "w", "-", "w", "-", "w", "-"};
String[] b3 = {"-", "-", "-", "b", "-", "b", "-", "b",
"b", "-", "b", "-", "b", "-", "b", "-",
"-", "b", "-", "w", "-", "b", "-", "b",
"-", "-", "w", "-", "w", "-", "-", "-",
"-", "-", "-", "-", "-", "-", "-", "-",
"w", "-", "b", "-", "w", "-", "w", "-",
"-", "-", "-", "-", "-", "w", "-", "w",
"-", "-", "w", "-", "w", "-", "w", "-"};


CheckersGameState3 s2 = new CheckersGameState3(1, b2);
CheckersGameState3 s2 = new CheckersGameState3(2, b3);
s2.printState();
s2.result(s2.actions().get(1)).printState();
System.out.println(s2.actions().get(0));
s2.result(s2.actions().get(0)).printState();
for(Move m: s2.actions()){
System.out.println(m);
}
Expand Down

0 comments on commit 94d335a

Please sign in to comment.