This is an old revision of the document!
Table of Contents
How to Set Up for ICYPC Ladder Competition
- Create
~/icypc
(directory in your home directory) - Make world readable/executable (
chmod 755
) - Create executable shell scripts in
~/icypc
~/icypc/hunter
~/icypc/planter
- etc
- Be sure to make them executable (again,
chmod 755
will do it) - Register program(s) at ladder website: http://pc2.cs.purdue.edu:8000/ladder
A quick way to ensure that your icypc directory and all files are world-readable and (where appropriate) world-executable:
% chmod o+rX ~/icypc
Note that this command makes your source code readable, if it is in your icypc directory.
Script Examples
hunter
#!/bin/bash cd /homes/YOUR-LOGIN-ID/icypc /p/java-1.6/bin/java java_example.Hunter
camper
#!/bin/bash cd /homes/YOUR-LOGIN-ID/icypc c++_example/camper
Note that your script must be world-executable and all files needed by it must be world-readable. For example, you might set permissions like this…
% chmod -R o+rX /homes/YOUR-LOGIN-ID/icypc
This command recursively sets all permissions in your icypc directory to world (“o” for “other”) readable (“r”) and executable (“X”, which sets the execute bit only if on directories and files that are already exeuctable).
To Play a "Friendly" Competition with One Another
- Use setup as above.
- Example (with assumed student/player names)…
% java -jar icypc.jar -player pipe 1 /homes/li400/icypc/hunter -player pipe 1 /homes/wzhang/icypc/planter
There is an example “battle” script in /homes/jtk/icypc/battle, which takes four arguments:
% /homes/jtk/icypc/battle li400 hunter wzhang planter
Also, see the “hunter” and “camper” scripts in that directory for examples of running Java and C++ competitors. There is also a “twoer” script that uses a two hunter plus two planter strategy.
Advanced Instructions
To set up the web ladder or configure the 3D viewer: here