Hi, been kind of a long time since I've wanted to make anything - or pretty much finished anything, so here's something!
A Sudoku puzzle solver!
Just click on any square and start putting in some numbers, such that you can attempt to solve any Sudoku puzzle, you can even clear it to benchmark the solving speed and stuff like that, check it out (just don't look at the code unless you want your eyes to bleed). Oh, yeah, and it has neato little sound effects when you press the buttons. =)
Silver's Sudoku Solver 5000
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: Silver's Sudoku Solver 5000
Pretty cool and the important thing is that it works.
Good job on the GUI, it's always nice to see how an algorithm works in realtime.
The code looks brute force which is fine,
my only suggestion is to separate the logic from the GUI,
so that you have a separate (pure Lua) file with the rules of Sudoku that handles the search.
This way you can later swap the solver with something more sophisticated.
Another way to write a Sudoku solver could be using Hamiltonian paths,
it's certainly an interesting search problem that I might try at some point in the future.
Good job on the GUI, it's always nice to see how an algorithm works in realtime.
The code looks brute force which is fine,
my only suggestion is to separate the logic from the GUI,
so that you have a separate (pure Lua) file with the rules of Sudoku that handles the search.
This way you can later swap the solver with something more sophisticated.
Another way to write a Sudoku solver could be using Hamiltonian paths,
it's certainly an interesting search problem that I might try at some point in the future.
- ken.athomos
- Citizen
- Posts: 77
- Joined: Fri Aug 05, 2016 10:13 am
- Location: Philippines
Re: Silver's Sudoku Solver 5000
I remember trying to do sudoku when I was in my teens. I sucked at it. So this is really amazing to me
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: Silver's Sudoku Solver 5000
Thank you all for checking it out!
@Ivan, I like the idea of being able to use different solve algorithms, that may end up being a future possibility!
@Ivan, I like the idea of being able to use different solve algorithms, that may end up being a future possibility!
Who is online
Users browsing this forum: No registered users and 2 guests