CSE 8B: Introduction to Computer Science: Java (Winter, 2006)

Home | Syllabus | Schedule | Exams | Programming Assignments

Programming Assignment 6

Due Monday, February 27 at 11:59 PM.

Last modified:

Previous modifications:

Overview

You'll be writing a GUI application that allows two people to play tic-tac-toe.

The main class will be TicTacToe. You'll run it with:

java TicTacToe

A sample can be found in ~/../public/P6/tictactoe.jar. Run it with

java -jar ~/../public/P6/tictactoe.jar

Requirements

Your tic-tac-toe program need not look identical to the sample, but should be reasonably attractive (for example, the nine buttons should be laid out in a nice grid).

Provided files

All files are in ~/../public/P6.

There is a single sample Tic-Tac-Toe in a jar file.

Unit Testing

You haven't yet learned how to unit test Swing applications.

However, I highly suggest you still incrementally develop your application. For example, you might first get it to display some static status text, then add the buttons, then add the menu. Once you've got that going, you can start adding behavior.

Hints

Extra credit

The sample tic-tac-toe program has the following features you could add to yours: You could add even more:

Turnin

Create a directory on ieng6 with the following file: To turn in your assignment, cd to that directory and run the command
  bundleP6
and carefully follow the dialog. If it is before the due deadline and all necessary assignment files are present, this will turn in your solution files. You can run bundleP6 more than once if you want; only the last one will count.

Grading

We'll be running your tic-tac-toe program and trying it out on ieng6, so make sure you've tested your app there.

The assignment is worth 20 points:

2 points are available for extra credit functionality. As always, an additional 5% (1 point) is available if you turn the assignment in at least 24 hours early.