Git Product home page Git Product logo

susolver-mirah's Introduction

SuSolver

A Sudoku Solver written in Mirah for the JVM.

Solves with logic but has a brute force option.

Current State

The backend (SuSolverLib) is functional if incomplete. It can be used to create whatever kind of frontend and solves most sudoku puzzles.

The Swing frontend is also functional and definitely incomplete. At some point I'll include a screenshot.

The CodenameOne project, made possible by Steve Hannah's NetBeans plugin for Mirah (https://github.com/shannah/mirah-nbm) is partially functional. The puzzle entry grid works in the simulator and has a button to go to the solver. The solve grid displays and is connected to the backend, now with buttons to start solving. It has a button to go back to the entry grid, a "Solve!" button to do the whole puzzle, a "Next Step" button to solve one step at a time, and a "Reset" button to start over. The "Show Log" button isn't functional but will eventually show a log (the very idea!) of what the Solver is doing and why. Maybe other things in the future...

Now builds on the build server! But my Android phone was stolen last year so I can't test that build on an actual device and apparently I need Windows 8.1 to run the SDK for Windows Phone which it seems I need in order to sideload apps onto my Nokia and possibly $19 to siqn up as a developer though it looks like I should be able to test on one device without doing that. The point is that I can't test the builds yet. I should be able to load the Android build in an emulator. Ah, some day. In the mean time, the builds are in /dist.

Side note, CodenameOne has become a joy to write in Mirah now that I've had a chance to dig into it. Drawing your own widgets is severely under-documented, so if it helps you should check out the overridden paint() method in SuSolveCell.mirah (also under-documented, I'm bad about not commenting in code, but should be readable).

Current ruby scripts for running, compiling and creating jars outside of NetBeans only have Windows in mind. Will fix eventually.

susolver-mirah's People

Contributors

raum-dellamorte avatar

Stargazers

Nora Howard avatar

Watchers

James Cloos avatar  avatar

Forkers

bihai

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.