I was bored. Enjoy
Click on a box and press a number to enter them. Then press space to solve, and space again to clear.
Sudöku - sudoku solver
Sudöku - sudoku solver
- Attachments
-
- sudoku.love
- :ppPPpPPpPP
- (156.06 KiB) Downloaded 158 times
Last edited by T-Bone on Thu Aug 11, 2011 5:01 pm, edited 1 time in total.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- Roland_Yonaba
- Inner party member
- Posts: 1563
- Joined: Tue Jun 21, 2011 6:08 pm
- Location: Ouagadougou (Burkina Faso)
- Contact:
Re: Sudöku - sudoku solver
You do have kind of weird ways to divert...T-Bone wrote:I was bored.
Seems my graphic card have a point with OpenGL..
Error: Cannot create Framebuffers...
Just curious..What kind of algorithm did you use for solving ?
I am expecting backtracking...
Re: Sudöku - sudoku solver
Oh yeah, I use a framebuffer to draw the boxes since they're the same every frame. I can make a non framebuffer version for you.
I don't really know the name of sudoku algorithms but it's really a brute force method of trying every possible combination until it finds one that works
EDIT: Try this! It doesn't use a framebuffer until you press f, so just don't do that.
I don't really know the name of sudoku algorithms but it's really a brute force method of trying every possible combination until it finds one that works
EDIT: Try this! It doesn't use a framebuffer until you press f, so just don't do that.
Last edited by T-Bone on Thu Aug 11, 2011 5:01 pm, edited 1 time in total.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- Roland_Yonaba
- Inner party member
- Posts: 1563
- Joined: Tue Jun 21, 2011 6:08 pm
- Location: Ouagadougou (Burkina Faso)
- Contact:
Re: Sudöku - sudoku solver
Wow.. Solving process is quite fast. Nice job!
Guess you might be interested in WxLuaSudoku, by John Labenski.
it uses WxLua, a WxWidgets binding for Lua.
Guess you might be interested in WxLuaSudoku, by John Labenski.
it uses WxLua, a WxWidgets binding for Lua.
Re: Sudöku - sudoku solver
Just noticed that if you give it a sudoku that's unsolvable, it kind of looses it and stops responding, using lots of CPU (but doesn't seem to leak memory). I probably did something wrong somewhere Might fix sometime. Maybe
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Sudöku - sudoku solver
Seems like the same problem RPG had with his lQuery tic tac toe thingy: it keeps looking for the next possibility, but if there is none, it just keeps looking in an infinite loop.T-Bone wrote:Just noticed that if you give it a sudoku that's unsolvable, it kind of looses it and stops responding, using lots of CPU (but doesn't seem to leak memory). I probably did something wrong somewhere Might fix sometime. Maybe
Help us help you: attach a .love.
Re: Sudöku - sudoku solver
Yeah. I tried to avoid that, I've probably misplaced a "return false" or somethingRobin wrote:Seems like the same problem RPG had with his lQuery tic tac toe thingy: it keeps looking for the next possibility, but if there is none, it just keeps looking in an infinite loop.T-Bone wrote:Just noticed that if you give it a sudoku that's unsolvable, it kind of looses it and stops responding, using lots of CPU (but doesn't seem to leak memory). I probably did something wrong somewhere Might fix sometime. Maybe
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Who is online
Users browsing this forum: No registered users and 1 guest