Difference between revisions of "Problemset.yaml"

From PC2wiki
Jump to: navigation, search
m (See Also=: fixed typo)
m (add file format, updated description)
Line 1: Line 1:
The problemset.yaml is a file that contains the [[Contest.yaml#problemset problemset]] section.
+
The problemset.yaml is a file that contains a list of problems.
 +
 
 +
=File Layout=
 +
 
 +
The list of problems defs in the problemset determines
 +
the number and order of the problems defined in a contest.
 +
 
 +
Each problemset problem definition has a short-name which
 +
is also called the problem short name.  The problem short
 +
name is the name of a directory where the rest of the
 +
problem settings are stored.  For more information about
 +
those files and their contents see the article [[Problem Format]].
 +
 
 +
The problem short name (short-name) directory is expected
 +
to be in the same directory as the problemset.yaml file.
 +
 
 +
{|border="1" cellpadding="2"
 +
|+ problemset name and values
 +
! Name !! Description !! Example
 +
|-
 +
|letter||letter used to identify problem||G
 +
|-
 +
|short-name||problem short name (directory name for files, see [[Problem Format]])||fizbuzz
 +
|-
 +
|color||(optional) name of the color for the balloon ||Muave
 +
|-
 +
|rgb||(optional) the RGB color for the ballon||#0000ff
 +
|-
 +
|}
 +
 
 +
An example of a problemset section
 +
 
 +
problemset:
 +
  - letter:    A
 +
    short-name: apl
 +
    color:      yellow
 +
    rgb:        #ffff00
 +
 
 +
  - letter:    B
 +
    short-name: barcodes
 +
    color:      red
 +
    rgb:        #ff0000
 +
 
 +
  - letter:    C
 +
    short-name: biobots
 +
    color:      green
 +
    rgb:        #00ff00
 +
 
 +
  - letter:    D
 +
    short-name: castles
 +
    color:      blue
 +
    rgb:        #0000ff
 +
 
 +
  - letter:    E
 +
    short-name: channel
 +
    color:      white
 +
    rgb:        #ffffff
  
The set of problems can be specified in either the [[contest.yaml]] or in the problemset.yaml
 
  
 
=See Also=
 
=See Also=
Line 9: Line 64:
  
 
[[Category:CCS|CCS]]
 
[[Category:CCS|CCS]]
 
 
[[Category:Version 9.3]]
 
[[Category:Version 9.3]]
 
 
[[Category:Import and Export]]
 
[[Category:Import and Export]]

Revision as of 10:28, 13 November 2014

The problemset.yaml is a file that contains a list of problems.

File Layout

The list of problems defs in the problemset determines the number and order of the problems defined in a contest.

Each problemset problem definition has a short-name which is also called the problem short name. The problem short name is the name of a directory where the rest of the problem settings are stored. For more information about those files and their contents see the article Problem Format.

The problem short name (short-name) directory is expected to be in the same directory as the problemset.yaml file.

problemset name and values
Name Description Example
letter letter used to identify problem G
short-name problem short name (directory name for files, see Problem Format) fizbuzz
color (optional) name of the color for the balloon Muave
rgb (optional) the RGB color for the ballon #0000ff

An example of a problemset section

problemset:
  - letter:     A
    short-name: apl
    color:      yellow
    rgb:        #ffff00
  
  - letter:     B
    short-name: barcodes
    color:      red
    rgb:        #ff0000
  
  - letter:     C
    short-name: biobots
    color:      green
    rgb:        #00ff00
  
  - letter:     D
    short-name: castles
    color:      blue
    rgb:        #0000ff
  
  - letter:     E
    short-name: channel
    color:      white
    rgb:        #ffffff


See Also