English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It must be computer generated. But some are cleverer than others (and make more money at it - eg the guy in The Daily Telegraph). Is it simply the reverse of solving a sudoku, encoded? (Fiendish is no problem with logic.) Or is it more sophisticated than that?

2006-12-14 08:23:50 · 2 answers · asked by cb 1 in Science & Mathematics Mathematics

2 answers

I just finished a computer programming class in which we had to make a 9 x 9 Sudoku puzzle. It basically boils down to randomly filling in a row and then checking three conditions:

row, col, and subgrid violations. If the row doesn't violate any of these requirements, then it's a good row and you move down to generate the next row. If the row is bad, then you regenerate another random row.

It was actually a lot of fun for me. I was learning C++

2006-12-14 08:30:01 · answer #1 · answered by modulo_function 7 · 0 0

You can just put in random numbers in random places (obviously making sure it doesn't break the rules of sudoku) You can make them harder by giving less numbers or spread out more and stuff

2006-12-14 08:26:25 · answer #2 · answered by Spinach 3 · 0 1

fedest.com, questions and answers