Penn foster Graded Final Project TicTacToe Game GUI Java

Availability: In stock

Regular Price: $20.00

Special Price: $15.00

OR

Penn foster Graded Final Project TicTacToe Game GUI Java Player 1 Wins

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

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.

Regular Price: $20.00

Special Price: $15.00

Details

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.

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.