The simulator must run in two modes, debugging and regular. In debugging mode the simulator produces a dump on stderr of the format described in section 2.13 of the specification document. Debugging mode is triggered by the use of a flag -debug . Your simulator may also support other flags for other sorts of debugging for your own use.
Your Main driver class must be in a package called ant . So typical runs of your simulator would look like:
> java ant.Main redant.txt blackant.txt world1.txt output1.txt > java ant.Main -debug redant.txt blackant.txt world1.txt output1.txt
Or, if you wanted to run a small sample ant againt itself:
> java ant.Main -debug sampleant.txt sampleant.txt smallworld.txt smallouput.txt
The input format of the files is defined in the specifications document. The output file should be in exactly this format:
Food collected by red ants: xxxxxxxxxxx Food collected by black ants: xxxxxxxxxxx
YourLastName/ README build.xml build file for ant bin/ any scripts you have developed classes/ where your generated classes go design/ any online design documentation doc/ where your generated javadoc html goes lib/ where generated .jar files go src/ java/aspectj/junit source files for your project (organized into a good package structure)You can create a clean directory (that does not have the hidden svn files) using:
svn export YourSVNWorkingDirectory YourLastNameto export a clean copy of your project to a directory called YourLastName.
You can create the jar file by using:
jar -cvf YourLastName.jar YourLastNameto create the jar file to send to the TA.