diff --git a/Sudoku/grille.class b/Sudoku/grille.class new file mode 100644 index 0000000..1ae8de1 Binary files /dev/null and b/Sudoku/grille.class differ diff --git a/Sudoku/main.class b/Sudoku/main.class new file mode 100644 index 0000000..8695e7b Binary files /dev/null and b/Sudoku/main.class differ diff --git a/Sudoku/menu$1.class b/Sudoku/menu$1.class new file mode 100644 index 0000000..f8ffd5e Binary files /dev/null and b/Sudoku/menu$1.class differ diff --git a/Sudoku/menu$2.class b/Sudoku/menu$2.class new file mode 100644 index 0000000..e0707fe Binary files /dev/null and b/Sudoku/menu$2.class differ diff --git a/Sudoku/menu$3.class b/Sudoku/menu$3.class new file mode 100644 index 0000000..92224af Binary files /dev/null and b/Sudoku/menu$3.class differ diff --git a/Sudoku/menu$4.class b/Sudoku/menu$4.class new file mode 100644 index 0000000..08c63d9 Binary files /dev/null and b/Sudoku/menu$4.class differ diff --git a/Sudoku/menu$5.class b/Sudoku/menu$5.class new file mode 100644 index 0000000..230a148 Binary files /dev/null and b/Sudoku/menu$5.class differ diff --git a/Sudoku/menu$6.class b/Sudoku/menu$6.class new file mode 100644 index 0000000..84075eb Binary files /dev/null and b/Sudoku/menu$6.class differ diff --git a/Sudoku/menu.class b/Sudoku/menu.class new file mode 100644 index 0000000..5dd0ec7 Binary files /dev/null and b/Sudoku/menu.class differ diff --git a/Sudoku/menu.java b/Sudoku/menu.java index a3c3e9d..ce4e71d 100644 --- a/Sudoku/menu.java +++ b/Sudoku/menu.java @@ -2,6 +2,7 @@ import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; +import java.util.Arrays; public class menu { @@ -84,8 +85,15 @@ public class menu { editer.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e4){ - fenetre.dispose(); - grille.AfficherGrille(grille.ChargerGrille(cheminFichier), true); + if (cheminFichier != null){ + int[][] grille_vide = new int[9][9]; + Arrays.fill(grille_vide, 0); + fenetre.dispose(); + grille.AfficherGrille(grille_vide, true); + }else{ + fenetre.dispose(); + grille.AfficherGrille(grille.ChargerGrille(cheminFichier), true); + } } }); diff --git a/Sudoku/resolveurGrille.class b/Sudoku/resolveurGrille.class new file mode 100644 index 0000000..cdf3903 Binary files /dev/null and b/Sudoku/resolveurGrille.class differ