Finito
This commit is contained in:
parent
7435b4c329
commit
5ef226918c
Binary file not shown.
BIN
out/AutomatiqueActionListener.class
Normal file
BIN
out/AutomatiqueActionListener.class
Normal file
Binary file not shown.
BIN
out/CaseMouseListener.class
Normal file
BIN
out/CaseMouseListener.class
Normal file
Binary file not shown.
BIN
out/FenetreChoix.class
Normal file
BIN
out/FenetreChoix.class
Normal file
Binary file not shown.
BIN
out/FenetreModif$1.class
Normal file
BIN
out/FenetreModif$1.class
Normal file
Binary file not shown.
BIN
out/FenetreModif.class
Normal file
BIN
out/FenetreModif.class
Normal file
Binary file not shown.
BIN
out/FenetrePrincipale.class
Normal file
BIN
out/FenetrePrincipale.class
Normal file
Binary file not shown.
BIN
out/GenerateurSudoku.class
Normal file
BIN
out/GenerateurSudoku.class
Normal file
Binary file not shown.
BIN
out/GrilleExisteActionListener.class
Normal file
BIN
out/GrilleExisteActionListener.class
Normal file
Binary file not shown.
BIN
out/GrillePainter.class
Normal file
BIN
out/GrillePainter.class
Normal file
Binary file not shown.
BIN
out/GrilleSudokuDessin.class
Normal file
BIN
out/GrilleSudokuDessin.class
Normal file
Binary file not shown.
BIN
out/GrilleVideActionListener.class
Normal file
BIN
out/GrilleVideActionListener.class
Normal file
Binary file not shown.
BIN
out/Grilles.class
Normal file
BIN
out/Grilles.class
Normal file
Binary file not shown.
BIN
out/Lecteur.class
Normal file
BIN
out/Lecteur.class
Normal file
Binary file not shown.
BIN
out/MainCreation.class
Normal file
BIN
out/MainCreation.class
Normal file
Binary file not shown.
BIN
out/MainJeu.class
Normal file
BIN
out/MainJeu.class
Normal file
Binary file not shown.
BIN
out/ManuelActionListener.class
Normal file
BIN
out/ManuelActionListener.class
Normal file
Binary file not shown.
BIN
out/OuvertureFichier.class
Normal file
BIN
out/OuvertureFichier.class
Normal file
Binary file not shown.
BIN
out/Register.class
Normal file
BIN
out/Register.class
Normal file
Binary file not shown.
BIN
out/Reinitialiser.class
Normal file
BIN
out/Reinitialiser.class
Normal file
Binary file not shown.
BIN
out/ReinitialiserActionListener.class
Normal file
BIN
out/ReinitialiserActionListener.class
Normal file
Binary file not shown.
BIN
out/Resolveur.class
Normal file
BIN
out/Resolveur.class
Normal file
Binary file not shown.
BIN
out/SaisieGrille.class
Normal file
BIN
out/SaisieGrille.class
Normal file
Binary file not shown.
BIN
out/SudokuGenerator.class
Normal file
BIN
out/SudokuGenerator.class
Normal file
Binary file not shown.
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user