Code Monkey home page Code Monkey logo

sudokusolver's Introduction

SudokuSolver

This is a small application which solves a given sudoku using the backtracking method. It has a very simple user interface made with tkinter.

Usage

The input - the sudoku puzzle to solve - comes from a file which the user has to provide. The file needs to have the following format:

003020600
900305001
001806400
008102900
700000008
006708200
002609500
800203009
005010300

Whereas the zeros are interpreted as empty fields, which need to be filled by the application in order to solve the sudoku. If the input file is in a wrong format, the application will display a warning.

After the startup of the program it looks like this:

start

After the input file is loaded, the sudoku can be solved:

after_file

Then - depending on wheter the sudoku can be solved - the solved puzzle is displayed:

solved

Testing

The solver was tested with some sample inputs, which can be found in the folder test_input_files. Most of the test cases can be found here:

sudokusolver's People

Contributors

schlaepf avatar

Watchers

 avatar

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.