Additional Lab Information

Lab 1

Creating a jar for eclipse:

You need to combine all the .class files into a jar archive, then you can import the classes into ecplise via the archive.

Creating a jar (command line):
jar cf lab1.jar *.class

You can then import the .jar into Eclipse as an archive. It's important that StudentSolver.class and StudentGenerator.class are not in the archive, the command above simply adds all .class files to the archive. This means you must either list all the classes minus the two you don't want, such as:

jar cf lab1.jar Class1.class Class2.class ...

Or, alternatively, you can simply remove StudentSolver.class and StudentGenerator.class from the folder.

Adding the jar to Eclipse

Import the .jar into the project (select archive). Once added, project->properties and select "Library Path", then "Add Jar" and select the .jar you just added to the project. If it is not there, you can also add it using "Add External Jar" and finding the jar directly in the file system. You then need to goto Run->Run Configurations and select the Main Tab. Enter "Dark" as the name of the main class. This has only been tested with Eclipse 3.5.

Lab 2

Tournament

Player Total Record Win Pct Total Tiles Record as Black Record as White
OthelloAI88102212 32- 0- 0 1.000 1667 16- 0- 0 16-0- 0
OthelloAI56981046 21-10- 1 0.672 1242 10- 5- 1 11-5- 0
OthelloAI59171264 21-11- 0 0.656 1066 10- 6- 0 11-5- 0
OthelloAI29431226 17-13- 2 0.563 1129 12- 3- 1 5-10- 1
OthelloAI50877469 18-14- 0 0.563 1087 7- 9- 0 11-5- 0
OthelloAI35974489 16-16- 0 0.500 912 5-11- 0 11-5- 0
OthelloAI29306171 16-16- 0 0.500 976 6-10- 0 10-6- 0
OthelloAI21832543 15-16- 1 0.484 967 9- 7- 0 6-9- 1
OthelloAI27335417 15-16- 1 0.484 970 6-10- 0 9-6- 1
OthelloAI27028049 15-16- 1 0.484 994 4-12- 0 11-4- 1
OthelloAI32723577 14-17- 1 0.453 975 5-10- 1 9-7- 0
OthelloAI54834733 14-18- 0 0.438 916 5-11- 0 9-7- 0
OthelloAI79762159 13-18- 1 0.422 897 6- 9- 1 7-9- 0
OthelloAI56255679 13-19- 0 0.406 889 5-11- 0 8-8- 0
OthelloAI92369596 10-21- 1 0.328 828 5-10- 1 5-11- 0
OthelloAI14091107 9-23- 0 0.281 794 3-13- 0 6-10- 0
OthelloAI34191702 8-23- 1 0.266 647 4-12- 0 4-11- 1
OthelloAI14308549 DISQUALIFIED (illegal move)
OthelloAI12569158 DISQUALIFIED (illegal move)
OthelloAI76555439 DISQUALIFIED (java.lang.reflect.InvocationTargetException)
OthelloAI49206047 DISQUALIFIED (took too long)
OthelloAI46425107 DISQUALIFIED (java.lang.NullPointerException)
OthelloAI73594478 DISQUALIFIED (took too long)
OthelloAI66816267 DISQUALIFIED (took too long)