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.

Computer Science & Information Technology

You might also like to view...

It is _________ to pass an argument to a function that contains an individual array element, such as scores[3].

a. illegal in C++11 b. legal in C++ c. not recommended by the ANSI committee d. not good programming practice e. None of these

Computer Science & Information Technology

IEEE 802.1x is one of the fastest growing standards being used in enterprise networks today.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology