Difference between revisions of "CCS Enhancements"

From PC2wiki
Jump to: navigation, search
m (See Also: add RSI section)
m (Replay: removed section)
Line 91: Line 91:
 
       number: 7
 
       number: 7
 
       letters: E
 
       letters: E
 
== Replay==
 
 
There is a [[Replay]] feature in PC² these settings load
 
and optionally start the [[Replay]].
 
 
# load replay data on server
 
replay:
 
    - title: Playback Descriptive Name
 
        file: loadfile/replay.file.txt
 
  auto_start: no
 
  minevents: 108
 
    pacingMS: 200
 
        site: 1
 
 
'''Important Note''' if auto_start is yes then ALL contest sites' contest clocks will
 
be started automatically.
 
 
;title: name for replay data set
 
;file: replay data file name, if file not on the [[Admin]] then will load on the [[Server]]
 
;auto_start: start replay immediately, default no
 
;minevents: number of events to replay, if there are not enough events in the file then will duplicate those events until this number of events are created
 
;pacingMS: number of milliseconds (ms) (wait time) between events, default
 
;site: the site number to replay, default 1
 
 
The following are the minimum required data.
 
 
replay:
 
    - title: Playback Descriptive Name
 
        file: loadfile/replay.file.txt
 
  
 
== Timeout Key ==
 
== Timeout Key ==

Revision as of 08:06, 16 April 2014

The following are PC² enhancements to the CCS Standard.

The contest.yaml file contains general contest information and for each problem there can be a problem.yaml file.

To produce these yaml files use the PC² Report Export Contest YAML files

contest.yaml file

The following are additions to the CCS Standard contest.yaml file.

Sites Section

The sites section defines all fields for each pc2 server/site

sites:
 - number: 1
     name: Site 1
       IP: 130.86.67.202
     port: 50002
 password: siteone

 - number: 2
     name: Site 2
       IP: 130.86.67.201
     port: 50002
number
site number
IP
site host or IP
port
port for server to listen on
password
if not present, then the default Joe password will be created. Ex. login: site2 password site2

Accounts Section

The accounts section defines team accounts, it has equivalent functionality to the Generate Accounts feature.

accounts:
 - account: TEAM
     site: 1
    count: 10
 
 - account: TEAM
     site: 2
    count: 10

- account: JUDGE
     site: 4
    count: 20

 - account: SCOREBOARD
     site: 4
    count: 1


Auto Judge

Automated Judging settings.

auto-judging:
  - account: JUDGE
     site: 1
     number: 2
     letters: A
     enabled: yes

  - account: JUDGE
     number: 4,5,6
     letters: B,C,D

  - account: JUDGE
     site: 2
     number: all
     letters: B,C,D

  - account: JUDGE
     site: 1
     number: 1,3
     letters: F
     enabled: no
site
the site number, default 1
number
the account number(s), use "all" to select all judges.
letters
the letter(s) for the problems to auto judge. Used "all" to select all problems.
enabled
whether auto judging is turned On, default yes

Minimum values are:

auto-judging:
  - account: JUDGE
     number: 7
     letters: E

Timeout Key

The run-time execution time limit for all problems can be specified with the timeout key. A time limit can be overridden if a timeout is specified in the problem.yaml file.

# set run time limit for all problems to 20 seconds
timeout: 20

problem.yaml file

Problem Name

In the CCS the Problem name (full name) is in the LaTex problem.

In PC^2 the problem name is added as a key/value pair name in the problem.yaml file. For example:

name: A - Good or Bad?

Limits Section

For each problem a Run Time Limit can be specified in the limits section

# use 15 seconds for this problem definition
limits: 
   timeout: 15

Input Section

PC² has the option for a team solution (Run) to send data to the team's stdin or the team solution reads from file.

input: 
  readFromSTDIN: false
readFromSTDIN
team solution reads from stdin, default is true

pc2submit script

Additional command and command line options can be used, they are:

  1. --help lists options and command line syntax
  2. --check check parameters, list filename, problem and language, do not submit.
  3. --list list contest problem and languages
  4. --listruns list run info for the user

Run Submission Interface

See Also