Coder Social home page Coder Social logo

sudoku_solver's Introduction

Sudoku-Solver GUI

Working prototype of interface for solving Sudokus.

  • currently only working for 9x9 Sudokus, preferably on Windows

Usage

  • requires potassco clingo on Python 3.10
    • conda install -c potassco clingo
  • run python sudoku_controller.py, insert the given numbers in the grid, click on OK and get the solution for your (now completely filled) Sudoku

ToDos

Concrete tasks:

  • add requirements.txt
    • use conda env instead of pip?
  • use numpy arrays instead of nested lists for in- and output
  • remove hard-coding for Sudoku- / subgrid-size (currently only 9x9)
  • check input validity and how to handle invalid input (abort, restart?)
    • restrict input to single int (0-9)?
    • check for invalid input per grid, row, col (Sudoku rules)
  • check output and display error message if no solution could be found

General roadmap:

  • clean and update code
  • separate and fix responsibilities for MVC modules
  • fix clingo backend logic, no need for explicit string names passed to solver
  • check/fix OS independent compatibility
    • rendering tkinter on Linux slow, cell background colors do not match
  • use PyQT instead of tkinter
    • possible reimplementation of view? all parts should be modular anyway!
  • when all is working:
    • web server implementation using cherrypy, later possibly Django
    • test image as input + CNN OCR to get input instead of manual user input
      • when this is working:
        • Android app

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.