Skip to content

Commit 41c10be

Browse files
committed
Renamed & documented the main class.
1 parent 4b21150 commit 41c10be

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

Sudoku-Solver/src/sudoku/gui/Main.java

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package sudoku.gui;
2+
3+
import javax.swing.SwingUtilities;
4+
5+
/**
6+
* This is the main-class of the sudoku game that starts the GUI.
7+
*/
8+
public final class SudokuGameStarter {
9+
10+
/**
11+
* Private constructor to prevent instantiation.
12+
*/
13+
private SudokuGameStarter() {
14+
throw new AssertionError("This class should not be instantiated.");
15+
}
16+
17+
/**
18+
* The main method that starts the game by creating a new
19+
* {@link SudokuFrame}.
20+
*
21+
* @param args The arguments are ignored.
22+
*/
23+
public static void main(String[] args) {
24+
SwingUtilities.invokeLater(SudokuFrame::new);
25+
}
26+
27+
}

0 commit comments

Comments
 (0)