Skip to content
Snippets Groups Projects
Commit 5cf76da8 authored by CARION Baptiste's avatar CARION Baptiste
Browse files

Mise boucle victoire

parent f1074993
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ public class Main {
m.game(new Joueur[]{joueur1,joueur2}, plateau);
}
}
System.out.println("" + winner.getNomJoueur() + " est le vainqueur !");
}
public static char deplacement() {
......@@ -85,8 +86,7 @@ public class Main {
}
private Joueur game(Joueur[] joueurs, Plateau plateau) {
boolean gameEnd = false;
while (!gameEnd) {
while (!joueur1.isWin() && !joueur2.isWin()) {
for (Joueur currentPlayer : joueurs) {
setActionPoint(currentPlayer);
Tour(currentPlayer, actionPoint, plateau);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment