my brain hurts just thinking on how to do it
there have been many attempts, and many fails. who will succeed?
CHALLENGE.ACCEPTED
[Project Idea]Sudoku
Started by SuicidalSTDz, Mar 10 2013 05:38 PM
23 replies to this topic
#21
Posted 15 March 2013 - 09:53 AM
#22
Posted 15 March 2013 - 06:14 PM
LuaEclipser, I think I may have an idea for an algorithm for leaving the numbers on the screen, so its an actual playable sudoku I'll try and come up with it and send it to you if you are able to do the rest?
#23
Posted 16 March 2013 - 06:19 PM
I think I'll take on this challenge as well. Funny thing is that generating a random valid solution is just as difficult as turning a solution into a puzzle without multiple solutions.
While writing my board object initialization code, I realized you can't just up and put random numbers. I did a quick test on paper and if you don't restrict your number generation after generating the first few numbers, it is possible for the board to end up with "bubbles" and instantly becomes an invalid solution.
What I mean:
td;dr version: we are literally writing a sudoku solver that supports blank boards (strategically and/or bruteforce).
While writing my board object initialization code, I realized you can't just up and put random numbers. I did a quick test on paper and if you don't restrict your number generation after generating the first few numbers, it is possible for the board to end up with "bubbles" and instantly becomes an invalid solution.
What I mean:
Spoiler
td;dr version: we are literally writing a sudoku solver that supports blank boards (strategically and/or bruteforce).
#24
Posted 16 March 2013 - 06:22 PM
Glad to see people taking an interest in this.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











