Skip to content

Generates and solves standard 9 by 9 Sudoku's.

Notifications You must be signed in to change notification settings

kunlizhang/Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku

This program can solve and generate standard 9 by 9 Sudoku's with a simple GUI.

Sudoku grid screenshot

Solving

This uses a standard randomised backtracking algorithm to solve the Sudoku, and returns that the given Sudoku is unsolvable if no solution is found after searching all possible arrangements.

Generation

To generate a new Sudoku grid, this program solves the empty grid: because the solving algorithm is randomised, this generates a randomised solution. Then, the algorithm randomly empties tiles to generate an incomplete grid.

You can change the difficulty of the generated Sudoku's by changing the value of NUM_GENERATE in Gameboard.java. This is the number of tiles which are generated.

About

Generates and solves standard 9 by 9 Sudoku's.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages