Introducing the Sudoku Example

Sudoku makes a great sample program for Android because the game itself is so simple. You have a grid of eighty-one tiles (nine across and nine down), and you try to fill them in with numbers so that each column, each row, and each of the three-by-three boxes contains the numbers 1 through 9 only once. When the game starts, some of the numbers (the givens) are already filled in. All the player has to do is supply the rest. A true Sudoku puzzle has only one unique solution.

Sudoku is usually played with pencil and paper, but computerized versions are quite popular too. With the paper version, it's easy to make a mistake early on, and when that happens, you have to go back and erase most of your work. In the Android version, you can change the tiles as often as you like without having to brush away all those pesky eraser shavings.

0 0

Post a comment