Silver's Sudoku Solver 5000

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Silver's Sudoku Solver 5000

Post by Sir_Silver »

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. =)

Image
sudoku_solver.love
An almost complete sudoku solver, complete with bugs.
(165.38 KiB) Downloaded 109 times
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Silver's Sudoku Solver 5000

Post by xNick1 »

Awesome :D
User avatar
ivan
Party member
Posts: 1918
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Silver's Sudoku Solver 5000

Post by ivan »

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.
User avatar
ken.athomos
Citizen
Posts: 77
Joined: Fri Aug 05, 2016 10:13 am
Location: Philippines

Re: Silver's Sudoku Solver 5000

Post by ken.athomos »

I remember trying to do sudoku when I was in my teens. I sucked at it. So this is really amazing to me :)
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: Silver's Sudoku Solver 5000

Post by Sir_Silver »

Thank you all for checking it out! :P
@Ivan, I like the idea of being able to use different solve algorithms, that may end up being a future possibility!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests