Sudoku game

Hi, I am making a sudoku game and have hit a problem. I have made a function that adds random numbers and check if it's possible (if that number already is there, and if it's the same number in the box). But when I have added 36 random numbers it dosen't work anymore. Why? and how can I make the random number so I can't change it? Also should I is my code good?
Here is a link to my code:
http://pastie.org/10680215
Last edited on
Why? and how can I make the random number so I can't change it?


Can you rephrase this question?
I guess you're talking about the boardNumbers() function. What is the purpose of this function? Is it trying to solve a sudoku board or generate a random sudoku board?
As Peter87 said I am talking about the boardNumbers() funciton. The purpose of the function is to generate a sudoku board, I tried to add 70 numbers so I could check the win functoin, but found out boardNumbers() could not do it. So I am wondering why it does not work.
Topic archived. No new replies allowed.