From 79df7ffb1a6ff3cba11630b5b24b9e8a6d10e63d Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 29 Apr 2022 12:01:51 +0200 Subject: [PATCH] =?UTF-8?q?entourage=20fonctionnel=20(d=C3=A9calage=20des?= =?UTF-8?q?=20lignes=20fix=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Case.java | 1 - Chiffre.java | 1 - Grille.java | 230 ++++++++++++++++++++++++++++++++++++++++++++------- Test.java | 2 +- 4 files changed, 199 insertions(+), 35 deletions(-) diff --git a/Case.java b/Case.java index 01b43af..62876e8 100644 --- a/Case.java +++ b/Case.java @@ -27,7 +27,6 @@ public class Case extends JComponent { Color rose = new Color(236, 0, 140); this.panel.setBackground(rose); } else if (this.entourage>0){ - System.out.println(""+ this.entourage); this.panel.add(new Chiffre(entourage,caseSize)); } } diff --git a/Chiffre.java b/Chiffre.java index 4ed2c11..b70db3b 100644 --- a/Chiffre.java +++ b/Chiffre.java @@ -17,6 +17,5 @@ public class Chiffre extends JComponent { Color jaune = new Color(236, 214, 0); chiffre.setColor(jaune); chiffre.drawString(Integer.toString(this.entourage),caseSize.width*2/5,caseSize.height*3/5); - System.out.println(""+caseSize); } } diff --git a/Grille.java b/Grille.java index 9d66dbd..9c23631 100644 --- a/Grille.java +++ b/Grille.java @@ -42,12 +42,6 @@ public class Grille extends JComponent { } } } - - // Affichage console des emplacements des mines - for (int i=0;ilignes*colonnes-colonnes){ // Vérifier la condition + for (int j=0;j