diff --git a/Sudoku/grille$1.class b/Sudoku/grille$1.class new file mode 100644 index 0000000..a7e32d6 Binary files /dev/null and b/Sudoku/grille$1.class differ diff --git a/Sudoku/grille$2.class b/Sudoku/grille$2.class new file mode 100644 index 0000000..dd9fac8 Binary files /dev/null and b/Sudoku/grille$2.class differ diff --git a/Sudoku/grille.class b/Sudoku/grille.class new file mode 100644 index 0000000..95ba156 Binary files /dev/null and b/Sudoku/grille.class differ diff --git a/Sudoku/grille.java b/Sudoku/grille.java index 68796b3..3f873d4 100644 --- a/Sudoku/grille.java +++ b/Sudoku/grille.java @@ -65,12 +65,12 @@ public class grille extends JComponent{ case_modifiable[ligne][col] = new JTextField("", 1); case_modifiable[ligne][col].setFont(new Font("Arial", Font.PLAIN, 30)); case_modifiable[ligne][col].setHorizontalAlignment(JTextField.CENTER); - if ((ligne % 3 == 0) && (ligne != 0)){ - case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK)); + if ((ligne % 3 == 0) && (ligne != 0) && (col % 3 == 0) && (col != 0)){ + case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK)); } else if ((col % 3 == 0) && (col != 0)){ case_modifiable[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)); + } else if ((ligne % 3 == 0) && (ligne != 0)){ + case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK)); }else { case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK)); } @@ -79,12 +79,12 @@ public class grille extends JComponent{ case_depart[ligne][col] = new JLabel(String.valueOf(grid_values[ligne][col])); 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_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK)); + if ((ligne % 3 == 0) && (ligne != 0) && (col % 3 == 0) && (col != 0)){ + case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK)); } else if ((col % 3 == 0) && (col != 0)){ 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_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK)); + } else if ((ligne % 3 == 0) && (ligne != 0)){ + case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK)); } else { case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK)); } diff --git a/Sudoku/mainProgramme1.class b/Sudoku/mainProgramme1.class new file mode 100644 index 0000000..c5b6748 Binary files /dev/null and b/Sudoku/mainProgramme1.class differ diff --git a/Sudoku/mainProgramme2.class b/Sudoku/mainProgramme2.class new file mode 100644 index 0000000..4cd2638 Binary files /dev/null and b/Sudoku/mainProgramme2.class differ diff --git a/Sudoku/menuProgramme1$1.class b/Sudoku/menuProgramme1$1.class new file mode 100644 index 0000000..c563e1e Binary files /dev/null and b/Sudoku/menuProgramme1$1.class differ diff --git a/Sudoku/menuProgramme1$2.class b/Sudoku/menuProgramme1$2.class new file mode 100644 index 0000000..c1c25e9 Binary files /dev/null and b/Sudoku/menuProgramme1$2.class differ diff --git a/Sudoku/menuProgramme1$3.class b/Sudoku/menuProgramme1$3.class new file mode 100644 index 0000000..06cf3dc Binary files /dev/null and b/Sudoku/menuProgramme1$3.class differ diff --git a/Sudoku/menuProgramme1$4.class b/Sudoku/menuProgramme1$4.class new file mode 100644 index 0000000..6248b3f Binary files /dev/null and b/Sudoku/menuProgramme1$4.class differ diff --git a/Sudoku/menuProgramme1.class b/Sudoku/menuProgramme1.class new file mode 100644 index 0000000..41e714d Binary files /dev/null and b/Sudoku/menuProgramme1.class differ diff --git a/Sudoku/menuProgramme2$1.class b/Sudoku/menuProgramme2$1.class new file mode 100644 index 0000000..62d088d Binary files /dev/null and b/Sudoku/menuProgramme2$1.class differ diff --git a/Sudoku/menuProgramme2$2.class b/Sudoku/menuProgramme2$2.class new file mode 100644 index 0000000..1aee62c Binary files /dev/null and b/Sudoku/menuProgramme2$2.class differ diff --git a/Sudoku/menuProgramme2$3.class b/Sudoku/menuProgramme2$3.class new file mode 100644 index 0000000..23581ab Binary files /dev/null and b/Sudoku/menuProgramme2$3.class differ diff --git a/Sudoku/menuProgramme2$4.class b/Sudoku/menuProgramme2$4.class new file mode 100644 index 0000000..fad8aa5 Binary files /dev/null and b/Sudoku/menuProgramme2$4.class differ diff --git a/Sudoku/menuProgramme2$5.class b/Sudoku/menuProgramme2$5.class new file mode 100644 index 0000000..3ea1c4e Binary files /dev/null and b/Sudoku/menuProgramme2$5.class differ diff --git a/Sudoku/menuProgramme2.class b/Sudoku/menuProgramme2.class new file mode 100644 index 0000000..73f1302 Binary files /dev/null and b/Sudoku/menuProgramme2.class differ diff --git a/Sudoku/resolveurGrille.class b/Sudoku/resolveurGrille.class new file mode 100644 index 0000000..e0b145a Binary files /dev/null and b/Sudoku/resolveurGrille.class differ