Pennfoster 402086 – A+ Solution
In this project, you’ll finish the GUI version of the Tic-Tac-Toe
game. This project will require you to rewrite the application
logic found in the graded project for Lesson 2, but using object
orientation this time. In the instructions, code will be refer-
enced from the previous graded projects.
1. In NetBeans, open the
2. In the
file, make the following
changes to the
a. Add a new method named
enumeration. Use the
method in the Lesson 2 graded project as a guide.
b. In the
method, use the
method to determine whether to continue the game.
c. In the
method, display a dialog message
that displays the winner or tie when the game ends.
Optionally, you can clear the board and start a new
game after it ends.
You can use the following method to display a
dialog message in the current window:
JOptionPane.showMessageDialog (this, “Both players tie.”);
3. Build and run the project. Verify it works as expected.
Don’t be discouraged if it doesn’t run as expected right
away. Try tracing your steps and using
statements to figure out where you went wrong