...Beauty, cleaning, DIY tips and more - free to join!
   Login   Contact us   Site map   Puzzle Club   Ask a question    Newsletter

How can I create a valid sudoku puzzle?

Question asked by: knowitall

There are many ways to do this. Usually you start with a valid solution and work backwards.

To get a valid solution you need 1 - 9 in each row and column and 3 x 3 once only.

A simple way to do this is to take a random order of 1 - 9 and place in the first column. Then shift the array one value each time; take the fourth and seventh shift in columns 2,3; the 2,5,8 shift in columns 4,5,6 and the 3,6,9 in 7,8,9.

Take out a selection of numbers, perhaps symmetrically. If you take out cell 23 take out the cell 23 from the end too to get the symmetry.

Then go through and see if you can get back to the same solution without guesses. If you can means there is one unique solution as you have not had to guess, therefore could not have made a different move at each stage. Thus you have a valid sudoku puzzle.

By: Unknown
star star star star
Average rating for this answer is 4 / 5

Rate Answer
Comment or provide your answer to this question
No comments have been added to this question "How can I create a valid sudoku puzzle?".
Ask a New Question

Find out more about Games

Games Questions and Answers

Sudoku Questions and Answers

Next question: How is difficulty of a sudoku puzzle determined?

Become a Member! It's Free >>>

Share on Facebook: On Twitter: TwitterTweet this!

Question Keywords

valid  sudoku  puzzle  create  

More Questions:

What's The Difference Between Nonograms, Hanjie And Griddler Puzzles?
Where Can I License Kakuro Puzzles To Sell From?
What Is A Fallen Letter Crossword?
Is It Important To Be Good At Lateral Thinking?
How Do You Solve A Cryptic Crossword?