Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Sudoku solver

A Sudoku solver in Prolog using CLP (Constraint Logic Programming).

Open sudoku.pl in your favorite Prolog environment and type:

solve_sudoku.

Then you can enter the known numbers one by one.

+-+-+-+-+-+-+
|9 8| 5 |  7|
|72 |1

When complete, the program determines and prints the solution.

+-+-+-+-+-+-+
|938|254|617|
|726|193|854|
|514|876|329|
+-+-+-+-+-+-+
|692|387|145|
|187|465|293|
|453|921|768|
+-+-+-+-+-+-+
|345|712|986|
|871|649|532|
|269|538|471|
+-+-+-+-+-+-+

About

Sudoku solver in Prolog

Resources

Releases

No releases published

Packages

No packages published

Languages