Assignment 4: Java Applet

[1] Description: You are implementing a simplified Sudoku game as an Applet. The following screen shot described the minimum GUI components. It is intended as a suggestion. You are free to design your GUI.

Here are the requirements. You should provide the following three functionalities: (1) "New": resetting the game so user can start over from the beginning (complete blank game), (2) "Define": take what were entered as the initial values of the game. These numbers cannot be changed during the game. (3) "Check": At any time of the game, the player can ask the program to check the correctness of the game. A message should be displayed to communicate the result to the player. The figure on the left indicates the new or resetted state of the game. The one on the right shows how some of the cells were defined (with gray background). These fields must be made non-editable.

As decribed above, there is no way to replay a game that was defined earlier. One can only define the game once, i. e., clicking it the second time does nothing. There is no need to verify whether the game is valid, i. e., will lead to a solution. You don't need to give a score, keep track of the time spent in this assignment. Keep in mind that the next assignment will expand on this one. Think reuse!

[2] Input: None. GUI.

[3] Output: None. GUI.

[4] Keywords: Java, Applet, Events, Visual Components.

[5] Due Date: Monday, November 27, 2006.