Skip to content

mccalv/sudoku-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Generator

The application offers a complete algorithm to generate a Sudoku random matrix in O(n) complexity time and validate it. The creation of the matrix is based on band permutation, which generates a Sudoku table from a first random 33* random square. In general it is possibile to generate 9! possible combination. The application provides also to generate playable sudoku for different difficulties level.

In order to use it:

mvn clean install
echo "*************************"
echo "Launcing Java Application"
echo "*************************"
java -jar target/sudoku-puzzle-1.0-SNAPSHOT.jar $1 

*************************
Launcing Java Application
*************************
Welcome to Sudoku App
----------------------------------
 6 | 4 | 8   5 | 3 | 9   7 | 1 | 2  
 5 | 3 | 9   7 | 1 | 2   6 | 4 | 8  
 7 | 1 | 2   6 | 4 | 8   5 | 3 | 9  

 4 | 8 | 5   3 | 9 | 7   1 | 2 | 6  
 3 | 9 | 7   1 | 2 | 6   4 | 8 | 5  
 1 | 2 | 6   4 | 8 | 5   3 | 9 | 7  

 8 | 5 | 3   9 | 7 | 1   2 | 6 | 4  
 9 | 7 | 1   2 | 6 | 4   8 | 5 | 3  
 2 | 6 | 4   8 | 5 | 3   9 | 7 | 1  
----------------------------------
Please press the following options:
[a] Generate a Sudoku matrix 
[b] Generate a Sudoku playble matrix
[c] Validate a Sudoku file

About

A small java based sudoku generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages