icypc_instructions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| icypc_instructions [2010/11/11 12:36] – jtkorb | icypc_instructions [2011/11/08 11:54] (current) – jtkorb | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to Set Up for ICYPC Ladder Competition ====== | ====== How to Set Up for ICYPC Ladder Competition ====== | ||
| - | - Create ~/icypc (directory in your home directory) | + | - Create |
| - Make world readable/ | - Make world readable/ | ||
| - | - Create executable shell scripts in ~/icypc | + | - Create executable shell scripts in '' |
| - | * ~/ | + | * '' |
| - | * ~/ | + | * '' |
| * etc | * etc | ||
| + | - Naming convention: Please do not use '' | ||
| - Be sure to make them executable (again, '' | - Be sure to make them executable (again, '' | ||
| - | - Register program(s) at ladder website | + | - Register program(s) at ladder website: [[https:// |
| + | - To help with some automation to locate competitors, | ||
| - | ===== Script Examples ===== | + | A quick way to ensure that your icypc directory and all files are world-readable and (where appropriate) world-executable: |
| + | |||
| + | % chmod -R o+rX ~/icypc | ||
| + | |||
| + | This command recursively ('' | ||
| + | |||
| + | Note that this command makes everything in your '' | ||
| + | |||
| + | You might find it useful to create subdirectories in '' | ||
| + | |||
| + | ====== Ladder Rules ====== | ||
| + | |||
| + | - Any time a challenger beats a defender, the two competitors swap positions in the ladder. | ||
| + | - If a challenger scores 0 points in a match, that competitor is // | ||
| + | |||
| + | ====== Script Examples | ||
| **'' | **'' | ||
| - | #!/bin/bash | + | #!/bin/sh |
| cd / | cd / | ||
| / | / | ||
| **'' | **'' | ||
| - | #!/bin/bash | + | #!/bin/sh |
| cd / | cd / | ||
| c++_example/ | c++_example/ | ||
| | | ||
| - | Note that your script must be world-executable and all files needed by it must be world-readable. | + | ====== Viewing Instructions ====== |
| - | % chmod -R o+rX /homes/YOUR-LOGIN-ID/icypc | + | You can view a replay of any ladder match. (Trace files are kept in '' |
| - | This command recursively sets all permissions | + | * To view a match in 2D ('' |
| + | |||
| + | % / | ||
| + | |||
| + | * To view a match in 3D ('' | ||
| + | |||
| + | % / | ||
| + | |||
| + | * To view the stdout from the match: | ||
| + | |||
| + | % / | ||
| + | |||
| + | * To view the stderr from the match: | ||
| + | |||
| + | % / | ||
| + | |||
| ====== To Play a " | ====== To Play a " | ||
| Line 35: | Line 67: | ||
| % java -jar icypc.jar -player pipe 1 / | % java -jar icypc.jar -player pipe 1 / | ||
| - | There is an example " | + | There is an example " |
| - | % /homes/jtk/icypc/battle li400 hunter wzhang planter | + | % /homes/cs390cp/bin/battle li400 hunter wzhang planter |
| | | ||
| - | Also, see the " | + | Also, see the " |
| - | + | ||
| - | ====== Advanced Instructions ====== | + | |
| - | + | ||
| - | To set up the web ladder or configure the 3D viewer: [[icypc_challenge_installation|here]] | + | |
icypc_instructions.1289507807.txt.gz · Last modified: 2010/11/11 12:36 by jtkorb