INT215 Final Graded
Project
Programming in Java : INT215 Final
Graded Project
Lesson 6 Overview
Throughout most of the
lessons you’ve been
developing a simple game
application, gradually
adding new features to
improve the application
and demonstrate what
you’ve learned. Your final
project will put all the pieces together in a multithreaded application
with a fully interactive GUI, to prove your Java knowledge and provide
a high-quality gaming experience.
6.1 Develop a multithreaded, object-oriented game
application with a GUI
INT215 Graded Final Project: Programming in Java
READING ASSIGNMENT
Your project must be submitted as files (.java, .class). Your project will be
individually graded by your instructor and therefore may take up to five to
Copyright Penn Foster, Inc. 2019 Page 1
Course Version: 1
seven days to grade. Be sure that your submission contains the following
information:
Your name
Your student ID number
The exam number 418798
Your email address
To submit your graded project, follow these steps:
Log in to your student portal.
Click on Take Exam next to the lesson you’re working on.
Find the exam number for your project at the top of the Project Upload
page.
Follow the instructions provided to complete your exam.
Be sure to keep a backup copy of any files you submit to the school!
Overview
Now that you’ve completed the study guide and required textbook
reading, you’re ready to finish the TicTacToe game in the final project.
Make sure that you follow all directions completely and verify your
results before submitting the project. Remember to include all required
components in your solution.
Your Project
In this project, you’ll finish the GUI version of the Tic-Tac-Toe game.
This project will require you to rewrite the program code you
developed in the graded project for Lesson 2 to use a more object-
oriented approach. In the instructions, code is referenced from the
previous graded projects.
Copyright Penn Foster, Inc. 2019 Page 2
Course Version: 1
You’ll also add some messages to be displayed in a dialog box. To
create a dialog box that appears on top of the existing window, use
the following code:
[Link] (this,"This is a message")
;
This will produce a dialog box that looks like this:
[An image of a Java dialog box]
Dialog Box
The message will remain displayed until the user dismisses it by
clicking the OK button.
At some point in your program you may want to exit the program
immediately. This can be done with the statement [Link](0);.
Here are your detailed instructions.
Instructions
1. Create a new Eclipse Java project. Call it TicTacToe Final.
Copyright Penn Foster, Inc. 2019 Page 3
Course Version: 1
2. Copy the package [Link] from your Lesson 5 project into
the new project.
3. Rename the file [Link] to
[Link]. To do this, select the file in the Project
Explorer, then choose Refactor > Rename from the main menu.
4. In the [Link] file, in the TicTacToeGame class,
add a new method named getOutcome() that returns an Outcome
enumeration. Use the winOrTie() method in the Lesson 2 graded
project as a guide.
5. In the takeTurn() method, in the TicTacToeGame class, use the
getOutcome() method to determine whether to continue the
game.
6. Also in the takeTurn() method, display a dialog message that
displays the winner or reports a tie when the game ends. When
the dialog is dismissed, your program should terminate.
7. In the [Link] file, in the Board class, modify the catch block
in the setCell() method, which you added in Lesson 5, to use a
dialog box to display the error. The program should continue
when the dialog is dismissed.
8. Build and run the project. Verify that it works as expected. Don’t
be discouraged if it doesn’t run as expected right away. Try
tracing your steps and using [Link] statements to
figure out where you went wrong.
Submission Guidelines
To submit your final project, you’ll collect all of your source files into a
Copyright Penn Foster, Inc. 2019 Page 4
Course Version: 1
Java ARchive, or JAR file. You can follow these steps to produce the
JAR file in Eclipse:
1. Select the project file in the Project Explorer pane.
2. From the main memory select File > Export...
3. In the window that appears, choose Java > JAR file, then click
Next.
4. In the dialog that appears next, name the JAR file
[Link], and select Export Java source files and
resources. Then click Finish. The JAR file will be created in your
Eclipse workspace.
To submit your project, you must provide the following two files:
[Link]
[Link]
Upload your project online and submit.
Grading Criteria
Your instructor will use the following guidelines to grade your project.
Application behaves as expected. 70 points
GUI meets the requirements. 30 points
TOTAL 100 points
Congratulations! You’ve completed a simple application with a GUI.
Copyright Penn Foster, Inc. 2019 Page 5
Course Version: 1
You could expand on this game by adding more graphics or animation
or develop a new game like Connect Four or Mastermind.
Now you’re ready to take on the larger world of Java development!
Copyright Penn Foster, Inc. 2019 Page 6
Course Version: 1