System.out.println("White has been CHECKed!\nbe careful!");
else
System.out.println("Black has been CHECKed!\nbe careful!");
}
changeTurn();
returntrue;
returntrue;
}
}
...
@@ -129,100 +119,17 @@ public class Game {
...
@@ -129,100 +119,17 @@ public class Game {
publicvoidstartGame(){
publicvoidstartGame(){
System.out.println("WELCOME!\nFor Move: Enter nut location and then enter destination.\nfor example: 'a1 h8' for move the nut in a1 to h8\nFor Get Help: Enter 'help'\nand if a player wants to resign enter 'resign'");
System.out.println("WELCOME!\nFor Move: Enter nut location and then enter destination.\nfor example: 'a1 h8' for move the nut in a1 to h8\nFor Get Help: Enter 'help'\nand if a player wants to resign enter 'resign'");
showPlayGround();
playGround.show();
System.out.print("Ready?\nPress Enter to Start!");
System.out.print("Ready?\nPress Enter to Start!");
Scanneri=newScanner(System.in);
Scanneri=newScanner(System.in);
i.nextLine();
i.nextLine();
}
}
publicvoidshowPlayGround(){
publicintgetTurn(){returnturn;}
System.out.print(" a b c d e f g h\n _ _ _ _ _ _ _ _\n");