Difference between revisions of "Contest.yaml"

From PC2wiki
Jump to: navigation, search
m (Contents of contest.yaml: added link)
m (Contents of contest.yaml: improved example)
Line 19: Line 19:
 
|-
 
|-
 
| scoreboard-freeze || Time when scoreboard will be [[Scoreboard Freeze|frozen]] in contest time as h:mm:ss
 
| scoreboard-freeze || Time when scoreboard will be [[Scoreboard Freeze|frozen]] in contest time as h:mm:ss
|-
 
| submission-feed-port || Port number for the [[Run Forwarding Feed]]
 
 
|-
 
|-
 
| default-clars || Sequence of pre-defined clarification answers. The first will be pre-selected
 
| default-clars || Sequence of pre-defined clarification answers. The first will be pre-selected
Line 26: Line 24:
 
| clar-categories || Sequence of categories for clarifications.
 
| clar-categories || Sequence of categories for clarifications.
 
|-
 
|-
| languages || Sequence of mappings with keys for languages.
+
| languages || List of mappings with keys for languages.
 
|-
 
|-
| problemset || Sequence of mappings with keys for problems. (see [[problem.yaml]])
+
| problemset || List of mappings with keys for problems. (see [[problem.yaml]])
 
|}
 
|}
  
 
===Example===
 
===Example===
  
# Contest configuration
+
# Contest Configuration, version 1.0
---
+
# PC^2 Version: Version 9.3 20110918 (Sunday, September 18th 2011 23:51 UTC) Java ver 1.6.0_20 build 2345 Windows XP 5.1 (x86)
name:             PC^2 Example
+
# Created: 2011-09-18 18:05:40 PDT
short-name:       CSUS Local Contest 2011
+
# $HeadURL: http://pc2.ecs.csus.edu/repos/pc2v9/trunk/samps/contests/sumithello/contest.yaml $
start-time:       2011-10-19 01:23Z
+
---  
duration:         5:00:00
+
 
scoreboard-freeze: 4:00:00
+
name: Sumit Hello Sample
  penaltytime: 20
+
short-name:  
+
elapsed: 0:00:00
# create default "Auto Fill" values for languages
+
remaining: 5:00:00
  languages:
+
running: false
   - name: C++
+
scoreboard-freeze:  
   
+
 
   - name: C
+
languages:
 
+
  - name: Java
   - name: Java
+
  active: true
 +
 
 +
  - name: Perl
 +
   active: true
 +
 
 +
- name: GNU C++
 +
  active: true
 +
 
 +
  - name: GNU C
 +
  active: true
 +
 
 +
problemset:
 +
  - letter: A
 +
   short-name: hello
 +
 
 +
  - letter: B
 +
   short-name: sumit
 +
 
 +
# EOF Contest Configuration
  
 
==PC² specific keys and values==
 
==PC² specific keys and values==

Revision as of 09:20, 14 April 2014

A contest.yaml file contains information to configure a contest.


Contents of contest.yaml

For the current CCS specification for a contest.yaml see contest.yaml

contest.yaml keys
Key Description
name Name of contest
short-name Short name of contest
start-time Date and time in ISO 8601 format (wall-clock time that the contest starts)
duration Duration as h:mm:ss (length of contest, in contest time)
scoreboard-freeze Time when scoreboard will be frozen in contest time as h:mm:ss
default-clars Sequence of pre-defined clarification answers. The first will be pre-selected
clar-categories Sequence of categories for clarifications.
languages List of mappings with keys for languages.
problemset List of mappings with keys for problems. (see problem.yaml)

Example

  1. Contest Configuration, version 1.0
  2. PC^2 Version: Version 9.3 20110918 (Sunday, September 18th 2011 23:51 UTC) Java ver 1.6.0_20 build 2345 Windows XP 5.1 (x86)
  3. Created: 2011-09-18 18:05:40 PDT
  4. $HeadURL: http://pc2.ecs.csus.edu/repos/pc2v9/trunk/samps/contests/sumithello/contest.yaml $

---

name: Sumit Hello Sample short-name: elapsed: 0:00:00 remaining: 5:00:00 running: false scoreboard-freeze:

languages:

- name: Java
  active: true
- name: Perl
  active: true
- name: GNU C++
  active: true
- name: GNU C
  active: true

problemset:

 - letter: A
  short-name: hello
 - letter: B
  short-name: sumit
  1. EOF Contest Configuration

PC² specific keys and values

The article CCS Enhancements describes these entries in more detail.

Section Description
sites Sequence of mappings for Site information
accounts set of accounts to generate (same functionality as Generate Accounts)
auto judge Define Auto Judge assignments/settings
replay automatic Replay of previous contest feature

Example

accounts:
 - account: TEAM
     site: 1
    count: 20
 
- account: JUDGE
     site: 1
    count: 8

 - account: SCOREBOARD
     site: 1
    count: 1

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

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

Creating contest.yaml

A contest.yaml, problem.yaml and data files can be saved using either:

  1. the Export Contest YAML feature
  2. or use the Export Contest XML Report

Loading contest.yaml

Use the Admin Import CCS tab, Import contest.yaml button.


See Also