From bb1215eab75257bbb601edf6d676fcc69744a2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=C3=AFssous?= Date: Tue, 10 May 2022 15:26:30 +0200 Subject: [PATCH] =?UTF-8?q?probl=C3=A8me=20mine=20entourage=200=20fix?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Case.java | 2 +- Test.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }