Penn foster Graded Final Project TicTacToe Game GUI Java

$ 20

Penn foster Graded Final Project TicTacToe Game GUI Java

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 referenced from the previous graded projects.

Instructions
1. In NetBeans, open the TicTacToeGUIGame project.
2. In the TicTacToeGUIGame.java file, make the following changes to the TicTacToeGUIGame class:
a. Add a new method named getOutcome that returns an Outcome enumeration. Use the winOrTie method in the Lesson 2 graded project as a guide.
b. In the takeTurn method, use the getOutcome method to determine whether to continue the game.
c. In the takeTurn 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.
Note: 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 System.out.write statements to figure out where you went wrong.

33 in stock

SKU: PENNJAVAFINAL Category:

Description

Penn foster Graded Final Project TicTacToe Game GUI Java

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 referenced from the previous graded projects.

Instructions
1. In NetBeans, open the TicTacToeGUIGame project.
2. In the TicTacToeGUIGame.java file, make the following changes to the TicTacToeGUIGame class:
a. Add a new method named getOutcome that returns an Outcome enumeration. Use the winOrTie method in the Lesson 2 graded project as a guide.
b. In the takeTurn method, use the getOutcome method to determine whether to continue the game.
c. In the takeTurn 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.
Note: 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 System.out.write statements to figure out where you went wrong.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.