Coder Social home page Coder Social logo

ssolver's Introduction

A soduko app and solver

What the title says.

There's a "naive" javafx gui because I wanted to be able to edit/save/load puzzles easily. I'm not great at design and not super experienced with JavaFX, but it works which helps a lot.

The solver part works through a constraints algorithm. Finding options for each cell and applying that option when there's only one. Also it checks if an option is unique for a cell within it's row/col/box and applies that if it finds any such case.

If the constraint logic doesn't reach all the way the algorithm then takes a guess on the cell that currently has the lowest amount of options and recurses from there.

I haven't found any puzzles that didn't get solved but I didn't try them all. Neither did I do the math proof to confirm if the logic is sound for every case or not.

If a puzzle doesn't result in a solution the user will get a notification mentioning this. There is no check for puzzles that might have more then one solution wich I'm told is not a valid puzzle either. The algorithm will just solve it using the first solution found.

Compiling

It's Gradle, just google it or do what you usually do :D

ssolver's People

Contributors

liquidityc avatar

Watchers

 avatar James Cloos avatar  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.