diff --git a/Grilles/GrillesTest.gri b/Grilles/GrillesTest.gri index 6ebe5a7..92a0411 100644 Binary files a/Grilles/GrillesTest.gri and b/Grilles/GrillesTest.gri differ diff --git a/out/AutomatiqueActionListener.class b/out/AutomatiqueActionListener.class new file mode 100644 index 0000000..71d5119 Binary files /dev/null and b/out/AutomatiqueActionListener.class differ diff --git a/out/CaseMouseListener.class b/out/CaseMouseListener.class new file mode 100644 index 0000000..cfb8716 Binary files /dev/null and b/out/CaseMouseListener.class differ diff --git a/out/FenetreChoix.class b/out/FenetreChoix.class new file mode 100644 index 0000000..f204a25 Binary files /dev/null and b/out/FenetreChoix.class differ diff --git a/out/FenetreModif$1.class b/out/FenetreModif$1.class new file mode 100644 index 0000000..84eaabf Binary files /dev/null and b/out/FenetreModif$1.class differ diff --git a/out/FenetreModif.class b/out/FenetreModif.class new file mode 100644 index 0000000..5e1dabe Binary files /dev/null and b/out/FenetreModif.class differ diff --git a/out/FenetrePrincipale.class b/out/FenetrePrincipale.class new file mode 100644 index 0000000..c76e9e8 Binary files /dev/null and b/out/FenetrePrincipale.class differ diff --git a/out/GenerateurSudoku.class b/out/GenerateurSudoku.class new file mode 100644 index 0000000..baf4bc2 Binary files /dev/null and b/out/GenerateurSudoku.class differ diff --git a/out/GrilleExisteActionListener.class b/out/GrilleExisteActionListener.class new file mode 100644 index 0000000..f9e2114 Binary files /dev/null and b/out/GrilleExisteActionListener.class differ diff --git a/out/GrillePainter.class b/out/GrillePainter.class new file mode 100644 index 0000000..577e558 Binary files /dev/null and b/out/GrillePainter.class differ diff --git a/out/GrilleSudokuDessin.class b/out/GrilleSudokuDessin.class new file mode 100644 index 0000000..28cb06b Binary files /dev/null and b/out/GrilleSudokuDessin.class differ diff --git a/out/GrilleVideActionListener.class b/out/GrilleVideActionListener.class new file mode 100644 index 0000000..5132c2d Binary files /dev/null and b/out/GrilleVideActionListener.class differ diff --git a/out/Grilles.class b/out/Grilles.class new file mode 100644 index 0000000..18560e4 Binary files /dev/null and b/out/Grilles.class differ diff --git a/out/Lecteur.class b/out/Lecteur.class new file mode 100644 index 0000000..8e08d2c Binary files /dev/null and b/out/Lecteur.class differ diff --git a/out/MainCreation.class b/out/MainCreation.class new file mode 100644 index 0000000..94b2805 Binary files /dev/null and b/out/MainCreation.class differ diff --git a/out/MainJeu.class b/out/MainJeu.class new file mode 100644 index 0000000..a6c5bec Binary files /dev/null and b/out/MainJeu.class differ diff --git a/out/ManuelActionListener.class b/out/ManuelActionListener.class new file mode 100644 index 0000000..05ad053 Binary files /dev/null and b/out/ManuelActionListener.class differ diff --git a/out/OuvertureFichier.class b/out/OuvertureFichier.class new file mode 100644 index 0000000..039a049 Binary files /dev/null and b/out/OuvertureFichier.class differ diff --git a/out/Register.class b/out/Register.class new file mode 100644 index 0000000..3d22e40 Binary files /dev/null and b/out/Register.class differ diff --git a/out/Reinitialiser.class b/out/Reinitialiser.class new file mode 100644 index 0000000..7a9179d Binary files /dev/null and b/out/Reinitialiser.class differ diff --git a/out/ReinitialiserActionListener.class b/out/ReinitialiserActionListener.class new file mode 100644 index 0000000..76190d5 Binary files /dev/null and b/out/ReinitialiserActionListener.class differ diff --git a/out/Resolveur.class b/out/Resolveur.class new file mode 100644 index 0000000..c039556 Binary files /dev/null and b/out/Resolveur.class differ diff --git a/out/SaisieGrille.class b/out/SaisieGrille.class new file mode 100644 index 0000000..ab56530 Binary files /dev/null and b/out/SaisieGrille.class differ diff --git a/out/SudokuGenerator.class b/out/SudokuGenerator.class new file mode 100644 index 0000000..c8d4474 Binary files /dev/null and b/out/SudokuGenerator.class differ diff --git a/src/Grilles.java b/src/Grilles.java deleted file mode 100644 index ad4b88c..0000000 --- a/src/Grilles.java +++ /dev/null @@ -1,58 +0,0 @@ -import javax.swing.*; -import java.awt.*; -import java.awt.event.*; -import java.io.*; -import java.io.File; -import java.io.PrintWriter; -import java.io.FileWriter; -import java.io.IOException; -import javax.swing.JFileChooser; -import javax.swing.filechooser.FileNameExtensionFilter; - -public class Grilles{ - public static void grilleExiste(String name) { - - int valeur[] = new int[9]; - int valeur_en_fin[][]= new int[9][9]; - - int valeur_actuelle=0; - int tabcase[][]= new int[9][9]; - try{ - FileInputStream fichier = new FileInputStream(name); - DataInputStream flux = new DataInputStream(fichier); - - try{ - for(int i=0; i<9; i++){ - valeur[i]=flux.readInt(); - } - flux.close(); - }catch(IOException e){ - System.out.println("Lecture fichier impossible"); - } - }catch(FileNotFoundException e){ - System.out.println("Fichier non trouvé"); - } - for(int i=0; i<9; i++){ - for(int j=8; j>=0; j--){ - valeur_actuelle=valeur[i]; - - valeur_actuelle=valeur_actuelle%10; - valeur[i]=(valeur[i]-valeur_actuelle)/10; - - valeur_en_fin[i][j]=valeur_actuelle; - System.out.print(valeur_actuelle); - } - valeur_actuelle=0; - } - } - - public static void grilleVide(int [][] g) { - int [][] remp = new int [9][9]; - for(int i = 0 ; i < 9 ; i++){ - for(int j = 0 ; j < 9 ; j++){ - remp[i][j] = 0; - } - } - g = remp; - } -} \ No newline at end of file