print sudoku
All checks were successful
Linux arm64 / Build (push) Successful in 35s

This commit is contained in:
2025-01-10 16:58:49 +01:00
parent d38e779060
commit 6ab5242956
3 changed files with 36 additions and 5 deletions

View File

@@ -3,6 +3,8 @@
*/
package sudoku;
import sudoku.io.SudokuPrinter;
public class Main {
public String getGreeting() {
return "Hello World!";
@@ -10,7 +12,9 @@ public class Main {
public static void main(String[] args) {
System.out.println(new Main().getGreeting());
var test = SudokuFactory.createBasicEmptyRectangleSudoku(3, 3);
System.out.println(test);
int blockWidth = 3;
int blockHeight = 3;
var sudoku = SudokuFactory.createBasicEmptyRectangleSudoku(blockWidth, blockHeight);
SudokuPrinter.printRectangleSudoku(sudoku.getSubGrid(0), blockWidth , blockHeight);
}
}