Skip to content

A CLI application that uses DLX to find all possible solutions of a sudoku puzzle

Notifications You must be signed in to change notification settings

BAGUVIX456/sudoku-dlx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple CLI application that uses Prof. Donald Knuth's Algorithm DLX to find all the solutions of a given sudoku puzzle. The blueprint to reduce a sudoku puzzle into an exact cover problem that can be worked upon by DLX was obtained from this paper.

To use this application, one can either :

  1. Clone this repository and compile it themselves, or
  2. Download the executable from the Releases tab for the appropriate OS and run it from a command line terminal of your choice.

The puzzle to be solved must be written in a single line with the clues as it is and the empty spaces replaced by '.'

For example,

puzzle

must be written as ..9.6...4.....47.....12..659.4.75..373...1..66....34.146.7.215.2....6.8...1.....2



sudoku_2

About

A CLI application that uses DLX to find all possible solutions of a sudoku puzzle

Resources

Stars

Watchers

Forks

Packages

No packages published