Sudoku
Sudoku
WHAT IS SUDOKU?
Sudoku is a logical puzzle that is played on a board like the one shown in figure 1. The objective of the game is to place numbers in all the squares on the board. The only rule that must be followed is that every row, column and 2x3 box must contain the numbers l-to-6 and there must be no repetition of any number within any row, column or 2x3 box. A sudoku puzzle begins by giving the user the answer to some of the squares, on figure 1 these are shown in grey. The given squares in the puzzle must only allow for one correct solution to be found.
EQUIPMENT
The game has been developed for and tested using the Nokia N80 handset. With regards to the Java capabilities of this phone, the Nokia N80 operates using the Java Mobile Information Device Profile (MIDP) version 2. 0 and the Connected Limited Device Configuration (CLDC) version 1.1 [2]. The program has been compiled and packaged using the J2ME Wireless Toolkit. This is a freeware application provided by Sun Microsystems to aid the development of J2ME application. This also provides a set of emulators that have been used to test the software before it has been transferred to the Nokia N80 handset.
PROJECT OBJECTIVES
The objective of this project is to develop a program for a mobile phone that will be able to fulfil the following requirements: The program must have some sort of interface where the user is presented with a sudoku puzzle and they are able to interact with this puzzle so as to find a solution. There must be some sort of system that allows the user to save multiple sudoku puzzles. It should be
puzzle it is discarded and a new random puzzle is generated and tested using the solver. This is repeated until a genuine puzzle is encountered. The puzzle generator has an added function that allows the user to select between two different game difficulties. The game difficulties are based on the principal that the more cells that are given to the user, the easier the puzzle will be to solve. Therefore, the intermediate puzzle difficulty provides the user with 12 given cells and difficult puzzles provide the user with 10 given cells.
REFERENCES
[1] Martin J Wells, J2ME Game Programming, Thompson Course Technology (2004). [2] http://www.nseries.com/nseries/v2/media/product/tech_specs/en-GB/tec h_specs_n80_en_GB.html
PUZZLE GENERATOR
The system that is used to generate new puzzles is relatively simple. A fixed number of random values are entered into randomly placed squares on the puzzle board. This randomly generated puzzle is then passed into the solver. If the solver finds a solution to the puzzle, it must be a genuine puzzle and is presented to the user. If the solver is unable to find a solution to the