2024-04-03 10:46:17 +02:00
|
|
|
import javax.swing.*;
|
2024-04-02 16:20:29 +02:00
|
|
|
|
|
|
|
public class Main {
|
|
|
|
public static void main(String[] args) {
|
2024-04-03 10:46:17 +02:00
|
|
|
int[][] grid = SudokuGenerator.generateGrid();
|
|
|
|
|
|
|
|
JFrame frame = new JFrame("Sudoku");
|
|
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
SudokuDraw sudokuDraw = new SudokuDraw(grid);
|
|
|
|
frame.add(sudokuDraw);
|
|
|
|
frame.pack();
|
|
|
|
frame.setLocationRelativeTo(null); // Centrer la fenêtre sur l'écran
|
|
|
|
frame.setVisible(true);
|
2024-04-02 16:20:29 +02:00
|
|
|
}
|
|
|
|
}
|