Giter Site home page Giter Site logo

sudokusolver's Introduction

sudokuSolver

Sudoku Solver

Had a challenge with some friends to write a 9x9 sudoku solver in pure c with no libraries (this is in accordance with the french school 42's "norme" standard). This is the rough working result. It took 1 hour 57 minutes and 38 seconds from first line to working. The commits after the inital one is just me being pedantic as i learn more.

usage:

gcc *.c -o sudoku

./sudoku line0 line1 line2 line3 line4 line5 line6 line7 line8

eg ./sudoku "9...7...." "2...9..53" ".6..124.." "84...1.9." "5.....8.." ".31..4..." "..37..68." ".9..5.741" "47......."

a bit of a harder one: ./sudoku ".63......" "...2.8..1" ".....9.52" "8..6....." "59......." ".......75" "....7..4." ".3....91." ".57.3...."

just for fun ./sudoku "........." "........." "........." "........." "........." "........." "........." "........." "........."

this one has a pretty visualiser but i was just too lazy to norme (School 42's standard for c) it.

sudokusolver's People

Contributors

bentenjamin avatar

Watchers

James Cloos avatar  avatar

sudokusolver's Issues

New Algo hangs

Havent investigated but new algo (as compared to whats in the visualiser branch) gets stuck on something and hangs

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.