Sudoku game

Get help using Construct 2

Post » Mon Nov 26, 2012 1:01 pm

Hello, I am trying to make a Sudoku game in Construct 2, I have so far figured out, how to check the numbers from repeating from 1 to 9 in columns, but I got stuck when checking for rows.The CAPX can be downloaded from here:
http://www.upload.ee/files/2858259/asi3.capx.html
Could someone please help me get the rows checked, then I propably would be able to check for 3x3 sqaures myself.
B
14
S
5
G
4
Posts: 107
Reputation: 4,758

Post » Mon Nov 26, 2012 4:38 pm

I think you have a long ways to go in order to create a random Sodoku generator. Even if you solve the random numbers while checking for rows too.
Here are some useful places to begin researching:

http://en.wikipedia.org/wiki/Mathematics_of_Sudoku#Enumerating_all_possible_Sudoku_solutions

http://www.technologyreview.com/view/426554/mathematicians-solve-minimum-sudoku-problem/

You not only have to worry about a valid grid,but if you are attempting to make single solution grids you will have to know which 17 clues at minimum to give in order to make it a valid puzzle.
B
20
S
4
G
2
Posts: 124
Reputation: 2,482

Post » Mon Nov 26, 2012 5:02 pm

I am aware of the minimum amount of number, I am going to use 23 open numbers. I will make all of these numbers invisible and then randomly choose 23 of them and make visible again. when user enters a number, then the program will understand if it is correct.
B
14
S
5
G
4
Posts: 107
Reputation: 4,758

Post » Mon Nov 26, 2012 8:46 pm

Choosing 23 of them at random to be visible will not guarantee a valid puzzle. I am not trying to say not do it, I'm trying to save you a lot of headache trying to make a very advanced game. If this is your first game, I would suggest starting with simpler puzzles, or forgo the random Sudoku generator in game and include a set number of pre-fabricated Sudoku puzzles.
Many crossword apps push new crosswords out in weekly updates rather than trying to include a large database or a generator. You could follow the same model.
B
20
S
4
G
2
Posts: 124
Reputation: 2,482


Return to How do I....?

Who is online

Users browsing this forum: Callan S, gamecorpstudio and 10 guests