Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An implementation of Norvig's sudoku solver in Erlang
Erlang PHP
tree: a02fbcd001

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.txt
easy50.txt
hardest.txt
sudoku
sudoku.erl
top95.txt
unittests.erl

README.txt

This is an Erlang version of a sudoku solver, mostly based on the
solution by Peter Norvig.
For comparison, see my slightly modified version of Norvig's Python code:
https://github.com/apauley/sudoku-by-norvig

To try it out, simply run the sudoku script:
$ ./sudoku

The solution for file.txt will be saved as file.out in your current directory.

You will need to have Erlang installed with escript in your path.

To only run the tests:
$ ./sudoku runtests

To solve the sample files without running tests:
$ ./sudoku solve

To solve a specific file (e.g. hardest.txt):
$ ./sudoku solve hardest.txt
Something went wrong with that request. Please try again.