Please download the code provided at the exercise portal. It contains a partial implementation of the Sudoku game. Your task is to improve the implementation using patterns.
Implementation of patterns
Check if there are any fields left that contain zeroes
o Check every column of the puzzle if there are duplicate numbers
o Check every row of the puzzle if there are duplicate numbers
o Check every box of the puzzle if there are duplicate numbers
2. Think of an alternative implementation of the class SudokuBoard and implement it.
Use the Abstract Factory pattern to create a class that instantiates the
SudokuBoard implementation of your choice.
3. Add a new button to the game panel that triggers completion of a partially
completed puzzle. That is, the user can input some numbers (maybe typing in the
puzzle from a newspaper) and let an algorithm complete it. We want you to use
the provided implementation of SudokuBoard in this case. That leads to the
following problem: Our implementation of a Sudoku solver needs an array of
integers as input, but SudokuBoard has no method with matching output. Use the
Adapter pattern to provide an adapter that deals with that problem.
Note: When specifying numbers in the text fields, you have to confirm with the Enter or
Return key. Just typing in the number and then clicking elsewhere doesn?t change the
model.
Deliverables: Please provide either
• A code listing of your newly introduced code
• or the changed source code itself.
You might also like to view...
What does the following statement declare? int *countPtr, count;
a. Two int variables. b. One pointer to an int and one int variable. c. Two pointers to ints. d. The declaration is invalid.
A hard disk is divided into concentric circles called ____.
A. sectors B. tracks C. plates D. areas
Modifying chart layouts and chart types can make a presentation easier to read for the audience
Indicate whether the statement is true or false
Which standard is used to configure digital signature settings for e-mail and contacts from the corporate address book, depending on how the corporate e-mail server is set up?
A. SMTP B. S/MIME C. Exchange D. DNS