Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

4p03 advanced algorithms project

License

Notifications You must be signed in to change notification settings

twentylemon/sudoku-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sudoku-generator

4p03 advanced algorithms project

Generates well formed sudokus that have a minimal number of clues. A well formed sudoku is one with only one solution. Several different solving strategies are employed, as well as a few different generating strategies. Recommended only to be run on computers with at least three cores as multiple threads are use in the solving of the sudoku problems.

usage

to run from bash, go to the SudokuGenerator.jar file (default in SudokuGenerator/dist) and enter

java -jar SudokuGenerator.jar [-s p q] -g t|b|d [-n number] [-o path] [-v]

arguments:

-s  Specifiy the size of the sudoku boards to create.
    p: width of the box regions
    q: height of the box regions
    By default, 9x9 (p=q=3) boards are created.
    
-g  Specifiy which type of generator to use.
    t: use a top down generator
    b: use a bottom up generator
    d: use a deduction generator
    
-n  Specify the number of sudokus to create.
    number: the number of sudokus to create
    By default, 100 sudokus are created.
    
-o  Specify the location to store the sudokus.
    path: the file to store all the sudokus in
    By default, "[system_time].sudoku.txt" is used.
    
-v  Turn verbose mode on, default off.

About

4p03 advanced algorithms project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published