16 lines
477 B
Java
16 lines
477 B
Java
import javax.swing.*;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
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);
|
|
}
|
|
}
|