Maj BoardLoader + makefile
This commit is contained in:
@@ -40,6 +40,8 @@ public class AvalamWindow extends JFrame {
|
||||
// Chargement du plateau initial depuis Plateau.txt
|
||||
// ----------------------------------------------------------
|
||||
Tower[][] initialGrid = BoardLoader.loadFromFile("fr/iut_fbleau/Res/Plateau.txt");
|
||||
// debug TEMP !!!!!!!!!
|
||||
System.out.println("DEBUG Plateau: Grid[0][0] = " + initialGrid[0][0]);
|
||||
board = new AvalamBoard(initialGrid); // PLAYER1 commence
|
||||
|
||||
// ----------------------------------------------------------
|
||||
@@ -97,10 +99,10 @@ public class AvalamWindow extends JFrame {
|
||||
String msg;
|
||||
|
||||
switch (res) {
|
||||
case WIN -> msg = "Le joueur jaune a gagné !";
|
||||
case LOSS -> msg = "Le joueur rouge a gagné !";
|
||||
case DRAW -> msg = "Égalité !";
|
||||
default -> msg = "Fin de partie.";
|
||||
case WIN : msg = "Le joueur jaune a gagné !";
|
||||
case LOSS : msg = "Le joueur rouge a gagné !";
|
||||
case DRAW : msg = "Égalité !";
|
||||
default : msg = "Fin de partie.";
|
||||
}
|
||||
|
||||
JOptionPane.showMessageDialog(this, msg, "Partie terminée",
|
||||
|
||||
Reference in New Issue
Block a user