CS 61B: Data Structures (Spring 2002)
Enter the Network Tournament!

The Network tournament will be held on Wednesday, May 8, at 7 pm in 306 Soda. The winning team will receive gift certificates to Amoeba Records (and stronger letters of recommendation). Nobody is required to enter the tournament, but we would like to encourage as many of you to submit as possible. You are welcome to make improvements to your MachinePlayer that were not in your original Project 2 submission, but if you don't, give it a shot anyway.

The official deadline for submission is Sunday, May 5 at 5 pm. Late submissions will probably be accepted, but there are no guarantees. Submissions after the tournament obviously will not be accepted.

Submission

To prevent your submission from conflicting with other competitors' submissions, we want you to put MachinePlayer.java and all the .java files your MachinePlayer needs (except Player.java and Move.java) into one package, called tourny. This includes .java files in the list package or other packages. (These are the files that are most likely to conflict.)

Make sure that tourny does not contain Player.java or Move.java. These two files should remain in the player package. (Every team's submission will share the same copies of Player.java and Move.java. Since you can't change them, you can't submit them, but you should keep them in the player package so you can test that your MachinePlayer compiles correctly.)

You will need to change all the files in the tourny package to include the line "package tourny;". If you want to have a list package inside the tourny package, its files should include the line "package tourny.list;".

Also, you will need to add the line "import player.*;" to any file that refers to the Player or Move classes. Make sure that none of your .java files imports any package outside tourny, except player or standard packages in the Java library.

Once you've made these changes, make sure that your MachinePlayer still compiles.

javac -g tourny/*.java
Then submit by typing
submit tourny

Pitting MachinePlayers Against Each Other

To help you compare different strategies, the tournament code XTourney.class is available in the Project 2 directory. To pit two MachinePlayers against each other, you must first put each one in its own, differently-named package. For instance, one might be in the tourny package (as per the instructions above), and one might be in the "other" package or even in the "player" package. Both MachinePlayers must use the Player and Move classes in the player package.

Put XTourney.class in your pj2 directory (alongside Network.class, which is not used by XTourney), and run

java XTourney tourny other
replacing the last two words with the names of the two packages you want to see compete.

If something doesn't work as advertised, please let us know.


Mail inquiries to cs61b@cory.eecs