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

What algorithm will create a sudoku puzzle?


Question asked by: mrquestion

Asked on: 07 Jan 2010

To create a sudoku puzzle then you need a simple algorithm.

First of all you need to fill the grid.

To do this you basically pick the first cell and randomly place a number from 1 - 9, you keep on going for each cell placing a number from 1 - 9 and substituting it for another number if it conflicts with a number already in that row, column or box.

You keep doing this until either you fill the puzzle or run out of options for a cell in which case you backtrack to the previous cell that has options and try another option and so on. When you hit a solution you stop the process.

This is your filled grid and from there you can go through the process of creating an actual puzzle.

By: knowitall
Replied at: 07 Jan 2010
Rate Answer
Comment or provide your answer to this question
No comments have been added to this question "What algorithm will create a sudoku puzzle?".
Ask a New Question

Find out more about Games

Games Questions and Answers

Sudoku Questions and Answers

Next question: What is calcudoku?


Become a Member! It's Free >>>

Share on Facebook: On Twitter: TwitterTweet this!

Question Keywords

sudoku  puzzle  create  algorithm  

More Questions:

Can You Solve A Maze By Program?
Should A Maze Only Have One Route From A To B?
What Is A Missing Vowels Puzzle?
Is It Important To Be Good At Lateral Thinking?
What Is The Most Famous Lateral Thinking Puzzle?