User Tools

Site Tools


icypc_instructions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
icypc_instructions [2010/11/11 13:28] jtkorbicypc_instructions [2011/11/08 11:54] (current) jtkorb
Line 7: Line 7:
     * ''~/icypc/planter''     * ''~/icypc/planter''
     * etc     * etc
 +  - Naming convention: Please do not use ''-'' or ''.'' characters in your script names (just alphanumerics).
   - Be sure to make them executable (again, ''chmod 755'' will do it)   - 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]]+  - Register program(s) at ladder website: [[https://pc.cs.purdue.edu/icypc]] 
 +  - To help with some automation to locate competitors, please ensure that the only executable files in ''~/icypc'' are competitor scripts.
  
 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 17: Line 19:
  
 Note that this command makes everything in your ''icypc'' directory readable, including source code if it is there. Note that this command makes everything in your ''icypc'' directory readable, including source code if it is there.
 +
 +You might find it useful to create subdirectories in ''~/icypc'' (or elsewhere) to contain your source code and a working copy of your binaries (e.g., .class files for Java).  Then, when you've sufficiently debugged your competitor and want to take on other players on the ladder, copy your binaries to the ''~/icypc'' directory for execution by your competitor script.
 +
 +====== 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 //benched//, making it unavailable for future matches until it has been //readied// again for competition (e.g., by resubmitting it by the original author).
  
 ====== Script Examples ====== ====== Script Examples ======
Line 30: Line 39:
   c++_example/camper   c++_example/camper
      
- 
 ====== Viewing Instructions ====== ====== Viewing Instructions ======
  
Line 37: Line 45:
   * To view a match in 2D (''NNN'' is the match number):   * To view a match in 2D (''NNN'' is the match number):
  
-  % /homes/cs390cp/bin/view NNN+  % /homes/cs390cp/bin/view2d NNN
  
   * To view a match in 3D (''NNN'' is the match number):   * To view a match in 3D (''NNN'' is the match number):
  
   % /homes/cs390cp/bin/view3d NNN   % /homes/cs390cp/bin/view3d NNN
-   + 
-Note that 3D viewing works in the Linux lab (LWSN B158), but not (currently) in the Solaris lab (LWSN B146).+  * To view the stdout from the match: 
 + 
 +  % /homes/cs390cp/bin/viewso NNN 
 + 
 +  * To view the stderr from the match: 
 + 
 +  % /homes/cs390cp/bin/viewse NNN 
 + 
  
 ====== To Play a "Friendly" Competition with One Another ====== ====== To Play a "Friendly" Competition with One Another ======
Line 52: Line 67:
   % java -jar icypc.jar -player pipe 1 /homes/li400/icypc/hunter -player pipe 1 /homes/wzhang/icypc/planter   % 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/cs390cp/icypc/battle'', which takes four arguments:+There is an example "battle" script in ''/homes/cs390cp/bin/battle'', which takes four arguments:
  
-  % /homes/cs390cp/icypc/battle li400 hunter wzhang planter+  % /homes/cs390cp/bin/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. +Also, see the "hunter" and "camper" scripts in /homes/jtk/icypc for examples of running Java and C++ competitors.  There is also a "twoer" script that uses a two hunter plus two planter strategy.
icypc_instructions.1289510928.txt.gz · Last modified: 2010/11/11 13:28 by jtkorb