SAE21_2023/Main.java
2024-04-03 10:46:17 +02:00

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