lefants haskell sudoku solver
Haskell CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
Sudoku-literate.lhs
Sudoku.hs
Sudoku.html
hscolour.css
min.txt
sudoku-run.hs
sudoku-test.hs
sudoku1.txt
sudoku2.txt
sudokus-top95.txt
sudokus.txt

README.md

Sometime in autumn 2009 i created a sudoku solver in haskell as a programming exercise for myself.

I am pretty happy with the result, it took no more than an afternoon to implement and has been able to solve everything I tried in a couple of seconds. Now I can happily smile to myself whenever I see someone solving sudokus from the newspaper ;)

github repo: https://github.com/lefant/sudoku-lefant/

annotated source: http://lefant.github.com/sudoku-lefant/

If you are interested in more haskell solutions to the sudoku problem, check out the Sudoku page on haskellwiki!

building and running

sudoku-run

to build

ghc --make sudoku-run.hs

then to run

./sudoku-run <sudoku1.txt

sudoku-test (mini testsuite)

to install dependencies / build

cabal install test-framework-hunit
ghc --make sudoku-test.hs

then to run

./sudoku-test