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 13:14] – jtkorb | icypc_instructions [2011/11/08 11:54] (current) – jtkorb | ||
---|---|---|---|
Line 7: | Line 7: | ||
* '' | * '' | ||
* 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: [[http://pc2.cs.purdue.edu:8000/ladder]] | + | - Register program(s) at ladder website: [[https://pc.cs.purdue.edu/ |
+ | - To help with some automation to locate competitors, | ||
A quick way to ensure that your icypc directory and all files are world-readable and (where appropriate) world-executable: | A quick way to ensure that your icypc directory and all files are world-readable and (where appropriate) world-executable: | ||
Line 14: | Line 16: | ||
% chmod -R o+rX ~/icypc | % chmod -R o+rX ~/icypc | ||
- | This command recursively sets all permissions in your '' | + | This command recursively |
- | Note that this command makes your source code readable, if it is in your icypc directory. | + | Note that this command makes everything in your '' |
+ | |||
+ | You might find it useful to create subdirectories | ||
+ | |||
+ | ====== 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 ====== | ====== Script Examples ====== | ||
**'' | **'' | ||
- | #!/bin/bash | + | #!/bin/sh |
cd / | cd / | ||
/ | / | ||
**'' | **'' | ||
- | #!/bin/bash | + | #!/bin/sh |
cd / | cd / | ||
c++_example/ | c++_example/ | ||
| | ||
- | ====== | + | ====== |
- | - Use setup as above. | + | You can view a replay of any ladder match. (Trace files are kept in '' |
- | - Example | + | |
- | | + | |
- | There is an example " | + | % /homes/cs390cp/bin/view2d NNN |
- | | + | |
- | + | ||
- | Also, see the " | + | |
- | ====== Viewing Instructions ====== | + | % / |
- | * To view in 2D ('' | + | * To view the stdout from the match: |
- | % / | + | % / |
- | + | ||
- | * To view in 3D ('' | + | |
- | % / | + | |
+ | |||
+ | | ||
+ | |||
+ | |||
+ | ====== To Play a " | ||
+ | |||
+ | - Use setup as above. | ||
+ | - Example (with assumed student/ | ||
+ | |||
+ | % java -jar icypc.jar -player pipe 1 / | ||
+ | |||
+ | There is an example " | ||
+ | |||
+ | % / | ||
| | ||
- | Note that 3D viewing only works in the Linux lab. | + | Also, see the " |
icypc_instructions.1289510067.txt.gz · Last modified: 2010/11/11 13:14 by jtkorb