Code Monkey home page Code Monkey logo

sudokusolver's Introduction

Program to solve Sudoku Puzzles written in F#

The solver is efficient in the places that count and solves "hard" sudoku 
puzzles in no more than 60 secs. The solver uses multiple cores to search 
for a solution and only very rarely spends more than a second on a solution.

Input is a file like this:
003020600
900305001
001806400
008102900
700000008
006708200
002609500
800203009
005010300

where 0 means the square is open. (Used on Project Euler)

Or like this:
..3.2.6..9..3.5..1..18.64....81.29..7.......8..67.82....26.95..8..2.3..9..5.1.3..
where "." means the square is open. This is what is most commonly used.

Put your soduku square in the test.sdk file and go

The sample above is taken from http://projecteuler.net/index.php?section=problems&id=96

Some "hard" problems are found on http://en.wikipedia.org/wiki/Algorithmics_of_sudoku. 
The sudoku problem in test.sdk is from there under the label "golden nugget"

I used http://www.sudoku-solutions.com/ to find and check solutions too.

sudokusolver's People

Contributors

curryeleison avatar

Stargazers

 avatar Dennis Palmer avatar

Watchers

 avatar James Cloos avatar

Forkers

coderdennis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.