All directories mentioned below are relative to the mcpc2000 directory.
To judge a program, make sure the current directory is still TEAM,
and then just type
J L #
where L is the problem letter, and # is the team number as in "j e 12" to grade problem e for team 12.
This batch file will
In step 8 the files are compared using the diff utility. If the two files are identical it will say so, and otherwise it will show the differences. The output of diff is fairly clear when it all fits on one screen. If there are a lot of errors it may be easier to see them in step 9.
Step 9 is necessary if it is not obvious that there are wrong answers, and you need to check for a presentation error. The batch file uses the LIST program to view both the team's output and the correct output.
Using the list program:
These batch files assume that the following command-line compilers are in the executable path: "tpc" for Turbo Pascal 7.0, "tcc" for Turbo C++ 3.0, and "javac" for Java v1.1.8 or later. It also uses "java" to execute Java programs. If you are using different compilers you will need to change one of the five lines that immediately follow a comment of the form
rem IS THE FOLLOWING ... LINE RIGHT FOR YOUR SYSTEM?
in JUDGE\J2.BAT so that it runs the correct compiler and executes Java correctly. You can download this batch file before the competition from http://www.cs.smsu.edu/~rcjudge. If you are using a more recent Borland compiler, you will probably have to replace "tcc" with "bcc". In case people are generating old segmented code for DOS, C++ and C files are compiled using the large memory model (that's the -ml option to tcc) because it most closely matches the Turbo Pascal memory model. If you use a non Borland compiler you will need to modify this flag as well.
If you change any of these batch file lines, make sure the source file being compiled is %2.c, %2.cpp, %2.java or %2.pas. The compiled file should be %2.exe or %2.class.
Visual C++ users:
I have included three long lines for Visual C++ 6.0 that work at Loyola under NT. You can remove the rem's at the beginning of the three lines under C and C++ and move the rem's to the Turbo lines. The Visual C++ lines are based on a path to the base Visual C++ directory, set in the first of the three lines. You are likely to need to adjust that path for your installation. Note that the environment variable VCPPBASE needed an unmatched quotation mark -- at the beginning and NOT the end!
Archive of submitted programs
Example: The 4th time that team 7 has a C++ program for problem
E graded on the same computer, the batch file JUDGE\NEXTBACK.BAT is called
to copy their source program to
If there is some problem detected that may affect earlier submissions, you will have a copy to consult! (That is unless you are running on an old system with a virtual disk that is erased every time the system bombs! -- can't help there.)
Browsing in your spare time
All the judges' files are copied by install.bat. While waiting for the next problem to grade, or even if you do not use the judging utilities at all, you can browse through the problem files and administrative information files by starting a web browser at the local file browse.html in the mcpc2000 directory.