CSCI 1321 (Principles of Algorithm Design II), Spring 2003:
Homework 1

Due:
Design due January 29, 2003, at 5pm; code due January 31, 2003, at 5pm.

Credit:
Design 40 points; code 20 points.

What you are to do

Review Dr. Lewis's Project Description. Then read the specific instructions for Assignment 1.

Creating a project using Together

See the course links page for information on running Together on one of the lab machines or on your own machine. Once you have started Together, do the following to create a new project and set it up for this assignment.

Completing the design step

Once you have your project set up as described above, do the following steps to finish the design part of this assignment.

Turning in your design

Send me e-mail (at bmassing@cs.trinity.edu) telling me that your design is ready to be graded. Please use a subject line that mentions the course name and the assignment number (e.g., ``cs1321 design 1'' or ``PAD2 design 1''). You are free to make changes to your work after sending this message, but be advised that if the files containing your documentation have timestamps past the deadline, the assignment will be considered late.

Completing the code step

For this step, you are to add a main() method to your main game class. The parameters, return type, etc. of this method should be the same as in the examples we will be doing in class. What the body of the code should do is described in Dr. Lewis's Assignment 1 writeup. You will be making use of his GameSetup and MainFrame classes; to find out how to use these classes, read his project documentation.

Once you have written your code, compile it and test it. Here are some tips on writing, compiling, and testing your code using Together. They assume that you have followed the preceding steps for creating a project and documentation for your main class.

When you are happy with how your code works, generate a final version of your documentation, as described above except putting the result in Local/HTML-Documents/PAD2Project/Assn1/Final.

Turning in your code

E-mail the source code for your main class to me at bmassing@cs.trinity.edu, again using a subject line that mentions the course name and the assignment number (e.g., ``cs1321 code 1'' or ``PAD2 code 1''). This code will be in a file with the extension .java. (For example, if your main class is called MyGame, this file will be MyGame.java.) The simplest way to do this is probably to use your favorite mail program and attach the .java file as an attachment. I do not recommend cutting and pasting source code into a mail program; this tends to result in garbled code.

Hints and tips

Notice that you can do everything except generate HTML documentation using command-line tools, if you need to work on your project on a computer that doesn't have Together installed or doesn't have enough memory to run it with acceptable performance (or if you just decide you prefer editing code with vim!). See Java Without an IDE for details. If you do this, the next time you open the project with Together, it should pick up any changes you made with other tools; you can use the Synchronize with External Changes option from the File menu if it doesn't seem to be doing so.



Berna Massingill
2003-01-30