Skip to content
Snippets Groups Projects
Commit 421d04db authored by Paul RIPAULT's avatar Paul RIPAULT
Browse files

Interface: modification méthode start

parent c62a0b38
Branches
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import units.Unite;
public class Interface {
private static int rep = 0;
public static void start() {
public static boolean start() {
System.out.println("Bienvenu sur Game of Crown");
System.out.println("Veuillez choisir l'une des trois options suivantes en tapant le numéro correspondant dans le terminal");
System.out.println("1: Commencer une partie");
......@@ -12,12 +12,13 @@ public class Interface {
System.out.println("3: Quitter le jeu");
rep = Scan.scan(3);
if(rep==1) {
return true;
}else if(rep==2) {
System.out.println("Le but du jeu est de prendre la couronne situé sur une case aléatoire \ndu terrain et de la ramener dans son camp ou de détruire l'armée de \nson adversaire");
}else if(rep==3) {
return false;
}
return false;
}
public static void tourDeJeu(Plateau plateau, Joueur j1) {
rep =-1;
......@@ -57,5 +58,8 @@ public class Interface {
}
}
rep = Scan.scan(4);
if(rep==1) {
//u.moove(unitCase)
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment