Designing a simple sudoku game


You will be designing a simple Sudoku Game.  The rules of Sudoku can be found on web. The rules are explained. 

The Data Element

      Integer, value 0 - 9

The Data Structure

A two-dimensional array of Integers.

The Data Manager

            A class that allows the user to start a new game, enter a value, and display all valid values for an entry in the puzzle.  The Data Manager will manipulate the Data Structure. Implement the SudokuBoardManagerInterface interface which has been provided for you.  The file for a new game is in the following format (0's are place holders and are not displayed):

8,0,0,3,0,9,0,0,5

0,0,0,0,2,0,0,0,0

5,0,0,6,0,8,0,0,3

0,7,5,9,0,3,4,6,0

0,0,1,0,0,0,7,0,0

0,3,8,7,0,4,2,5,0

6,0,0,4,0,1,0,0,2

0,0,0,0,9,0,0,0,0

3,0,0,5,0,7,0,0,4

The GUI

o   Display the Sudoku board.  You may use a two-dimensional array of JTextboxes (not enabled), etc.

o   Provide a way for the user to select a new game.  Use the FileChooser to ask the user to select the new game file.

o   Provide a way for the user to see all valid values for a particular entry (row,column) in the puzzle

o   Provide a way for the user enter a value for a particular entry (row, column) in the puzzle.

Exceptions

  • Provide an exception called InputOutOfRangeException if the user puts in an invalid value (1-9) for the row or column.
  • Provide an exception called ValueNotValidException if the user enters an invalid value for this entry (row,column), based on the rules of Sudoku.

Output Examples


Attachment:- Assignment_Sudoku.docx

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Designing a simple sudoku game
Reference No:- TGS013802

Now Priced at $70 (50% Discount)

Recommended (90%)

Rated (4.3/5)