From 8436d971684555ce164efa4871a37f84d40584ef Mon Sep 17 00:00:00 2001 From: brigitte Date: Sat, 27 Apr 2024 12:34:40 +0200 Subject: [PATCH] resolution bug suite au changement de la grille --- Sudoku/Makefile | 6 +++--- Sudoku/Sudoku/.project | 17 ----------------- Sudoku/grille.java | 8 ++++---- 3 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 Sudoku/Sudoku/.project diff --git a/Sudoku/Makefile b/Sudoku/Makefile index ee9a0a2..65ab3bc 100644 --- a/Sudoku/Makefile +++ b/Sudoku/Makefile @@ -8,13 +8,13 @@ JVMFLAGS = ### REGLES ESSENTIELLES ### -main.class : mainProgramme2.java menuProgramme2.class +mainProgramme2.class : mainProgramme2.java menuProgramme2.class ${JC} ${JCFLAGS} main.java grille.class : grille.java resolveurGrille.class ${JC} ${JCFLAGS} grille.java -menu.class : menuProgramme2.java resolveurGrille.class grille.class +menuProgramme2.class : menuProgramme2.java resolveurGrille.class grille.class ${JC} ${JCFLAGS} menu.java resolveurGrille.class : resolveurGrille.java @@ -23,7 +23,7 @@ resolveurGrille.class : resolveurGrille.java ### REGLES OPTIONNELLES ### run : mainProgramme2.class - ${JVM} ${JVMFLAGS} main + ${JVM} ${JVMFLAGS} mainProgramme2 clean : -rm -f *.class diff --git a/Sudoku/Sudoku/.project b/Sudoku/Sudoku/.project deleted file mode 100644 index b273577..0000000 --- a/Sudoku/Sudoku/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - Sudoku - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/Sudoku/grille.java b/Sudoku/grille.java index d98e9a3..63cfa84 100644 --- a/Sudoku/grille.java +++ b/Sudoku/grille.java @@ -81,13 +81,13 @@ public class grille extends JComponent{ case_depart[ligne][col].setFont(new Font("Arial", Font.PLAIN, 30)); case_depart[ligne][col].setHorizontalAlignment(JTextField.CENTER); if ((ligne % 3 == 0) && (ligne != 0)){ - case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK)); + case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK)); } else if ((col % 3 == 0) && (col != 0)){ - case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(2,5,2,2,Color.BLACK)); + case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(2,5,2,2,Color.BLACK)); } else if ((ligne % 3 == 0) && (ligne != 0) && (col % 3 == 0) && (col != 0)){ - case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK)); + case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK)); } else { - case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK)); + case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK)); } place_grille.add(case_depart[ligne][col]); }