SAE21_2023/Main.java

16 lines
477 B
Java
Raw Normal View History

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
}
}