30 lines
862 B
Java
30 lines
862 B
Java
package laboratoire4;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
PusherBoard pusherBoard = new PusherBoard();
|
|
testMoves(pusherBoard);
|
|
pusherBoard.printBoard();
|
|
}
|
|
|
|
private static void testMoves(PusherBoard pusherBoard){
|
|
//Move examples
|
|
pusherBoard.move("D2","D3");
|
|
pusherBoard.move("C2","C3");
|
|
pusherBoard.move("D1","D2");
|
|
pusherBoard.move("D2","E3");
|
|
pusherBoard.move("C1","C2");
|
|
pusherBoard.move("E3","D4");
|
|
|
|
pusherBoard.move("A5","A6");
|
|
pusherBoard.move("D2","D1");
|
|
pusherBoard.move("H8","H9");
|
|
pusherBoard.move("A1","A3");
|
|
pusherBoard.move("A1","A2");
|
|
pusherBoard.move("A8","A6");
|
|
pusherBoard.move("A8","A7");
|
|
pusherBoard.move("D3","D4");
|
|
pusherBoard.move("C3","D4");
|
|
}
|
|
}
|