Maj BoardLoader + makefile

This commit is contained in:
2025-11-27 13:06:14 +01:00
parent 1921b523c6
commit c1e5de9ed2
27 changed files with 61 additions and 21 deletions

View File

@@ -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",