User Tools

Site Tools


running_pc2

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
running_pc2 [2010/11/11 08:51] jtkorbrunning_pc2 [2012/10/23 16:17] (current) – [After Competition] jtkorb
Line 1: Line 1:
-====== Reminder Notes for Running Programming Competitions with PC^2 ====== +====== Student Notes for Competing Using PC^2 ====== 
-  - Login to pc2.cs.purdue.edu + 
-  - cd /home/jtk/pc2 (note local-local directory; assumes pc2 install here+  - One time only: copy /homes/cs390cp/pc2/pc2v9.ini to your local directory somewhere (e.g., ~/pc2). 
-  - bin/pc2site +  - Change into the directory where your pc2v9.ini file is located. 
-  - Login as site1/site1; choose contest password +  - Launch pc2: /homes/cs390cp/pc2/bin/pc2team & 
-  - bin/pc2admin & +  - Log in as teamX/teamX, where X is assigned to you by administrator. 
-  - Login as administrator1/administrator1 + 
-  - Accounts tab, Generate accounts (1 judge, x teams, 1 scoreboard)+====== Administrator Notes for Running Programming Competitions with PC^2 ====== 
 + 
 +===== Account Setup ===== 
 + 
 +  - Login to cs390cp@pc.cs.purdue.edu 
 +  - cd pc2 (assumes pc2 is a symlink to current version, pc2-9.3.1; pc2v9.ini edited to point to server at pc.cs.purdue.edu
 +  - pc2reset [if necessary/desired] 
 +  - pc2server (assumes pc2/bin is in path) 
 +  - Login as site1; choose contest password 
 +  - pc2admin & 
 +  - Login as administrator1
   - Languages tab, Add, Auto Populate with Java and GNU C++, possibly GNU C   - Languages tab, Add, Auto Populate with Java and GNU C++, possibly GNU C
-  - Problems tab, Add+  - Accounts tab, Generate accounts (1 judge, x teams, 1 scoreboard) 
 +    - Load account information from file (see http://pc2.ecs.csus.edu/wiki/Load_Account) 
 +    - File generated by web2py in progress/private with dotask genpc2accounts.py 
 + 
 +===== Before Weekly Class ===== 
 + 
 +  - Create snapshot of current pc2 setup 
 +    - Exit pc2 (server and admin) 
 +    - cd ~ 
 +    - cp -pr pc2-9.2.3 pc2-contest 
 +  - cd pc2-contest 
 +  - rm archive/* 
 +  - Launch server and admin, login  
 +  - Problems tab, Add (repeat for each problem)
     - Problem name     - Problem name
     - Problem Requires Input Data, Stdin, Input Data File     - Problem Requires Input Data, Stdin, Input Data File
Line 14: Line 37:
     - Judging Type tab: Computer judging     - Judging Type tab: Computer judging
     - Validator tab: Use PC^2 validator with option "1 - diff"     - Validator tab: Use PC^2 validator with option "1 - diff"
 +  - Auto judge tab
 +    - Select judge1, Edit
 +    - Shift-select all problems, Enable Auto Judging, Update
 +
 +===== In Class =====
 +
 +  - cd to pc2-contest directory
 +  - Relaunch: pc2server and pc2admin 
 +  - Times tab (pc2admin)
 +    - Select site1, Edit
 +    - Set/update remaining, elapsed, and length times
 +    - Start ALL
 +  - bin/pc2judge &
 +    - Login as judge1/judge1
 +  - bin/pc2board &
 +    - Login as scoreboard1/scoreboard1
 +  - firefox html/summary.html
 +
 +===== After Competition =====
 +
 +  - pc2reset
 +  - Copy archive into main directory (~/pc2-9.2.3)
 +  - Remove pc2-contest
 +
running_pc2.1289494280.txt.gz · Last modified: 2010/11/11 08:51 (external edit)