diff --git a/Case.java b/Case.java index aa057b9..8b72ced 100644 --- a/Case.java +++ b/Case.java @@ -49,7 +49,7 @@ public class Case extends JPanel { } // Mise à jour de l'affichage de la case this.updateUI(); - if (this.getEntourage() == 0) { + if ((this.entourage == 0)&&(minee==false)) { this.grille.setEntourageVisible(this); } this.grille.verifVictoire(); diff --git a/Test.java b/Test.java index 8bdc4bd..eb892ab 100644 --- a/Test.java +++ b/Test.java @@ -1,6 +1,6 @@ public class Test { public static void main(String[] args) { - new FrameJeu(15,20,5); + new FrameJeu(15,20,40); } }