Good to the Last Drop
 
Sep 10, 2010 - 08:26 AM
 
Main Menu
· Home

Site Activities
· Web Links
· News
· Downloads
· FAQ
· Sections
· Topics
· Photo Album
· Recipes
· Recommend This Site
· Reviews
· Sudoku

User's Login
 



 


 Log in Problems?
 New User? Sign Up!

My Sudoku Application (basic rules)
Friday, January 20, 2006 - 12:49 PM

Printer-friendly page Send this story to someone

SudokuI am working on a PostNuke Sudoku application. Click on 'Sudoku' under the 'Main Menu' on the left to try it out.

The Sudoku puzzle is made up of a 9X9 grid. Each grid cell can be blank or contains one of the numbers 1-9. This object of the puzzle is to fill in the blank cells with numbers following the rules below:

Every row and column must contain the numbers
1 through 9 (no duplicates). For example:
+---+---+---+---+---+---+---+---+---+
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
+---+---+---+---+---+---+---+---+---+
| 9 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 8 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 7 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 6 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 5 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 4 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 3 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 2 |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+

Each of the 9 3x3 boxes must also contain
the numbers 1 through 9 (no duplicates).
For example:
+---+---+---+---+---+---+---+---+---+
| 1 | 2 | 3 |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 6 | 5 | 4 |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 7 | 8 | 9 |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+

Example starting grid:
+---+---+---+---+---+---+---+---+---+
|   |   | 3 | 5 |   | 4 | 9 |   |   |
+---+---+---+---+---+---+---+---+---+
| 9 |   | 7 |   |   |   | 3 |   | 5 |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   | 7 |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 3 | 6 | 5 |   |   |   | 7 | 1 | 8 |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 8 | 9 | 4 |   |   |   | 6 | 5 | 2 |
+---+---+---+---+---+---+---+---+---+
|   |   |   |   | 5 |   |   |   |   |
+---+---+---+---+---+---+---+---+---+
| 4 |   | 9 |   |   |   | 1 |   | 7 |
+---+---+---+---+---+---+---+---+---+
|   |   | 8 | 4 |   | 2 | 5 |   |   |
+---+---+---+---+---+---+---+---+---+
Enjoy, Curt




My Sudoku Application (basic rules) | Log-in or register a new user account | 0 Comments
Comments are statements made by the person that posted them.
They do not necessarily represent the opinions of the site editor.