Difference between revisions of "Problemset.yaml"

From PC2wiki
Jump to: navigation, search
m (File Layout: added note about section name)
m (added quote for RGB value)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
The problemset.yaml is a file that contains a list of problems.
 
The problemset.yaml is a file that contains a list of problems.
 
In an earlier [[CCS]] standard this section was present in the [[contest.yaml]] file.
 
 
'''Note that the section name changed from problemset to problems'''.  The section name
 
is problemset in [[contest.yaml]] and problems in [[problemset.yaml]].
 
  
 
=File Layout=
 
=File Layout=
Line 23: Line 18:
  
 
{|border="1" cellpadding="2"
 
{|border="1" cellpadding="2"
|+ problemset name and values
+
|+ problems name and values
 
! Name !! Description !! Example
 
! Name !! Description !! Example
 
|-
 
|-
Line 32: Line 27:
 
|color||(optional) name of the color for the balloon ||Muave
 
|color||(optional) name of the color for the balloon ||Muave
 
|-
 
|-
|rgb||(optional) the RGB color for the ballon||#0000ff
+
|rgb||(optional) the RGB color for the balloon||#0000ff
 
|-
 
|-
 
|}
 
|}
Line 42: Line 37:
 
     short-name: apl
 
     short-name: apl
 
     color:      yellow
 
     color:      yellow
     rgb:        #ffff00
+
     rgb:        '#ffff00'
 
    
 
    
 
   - letter:    B
 
   - letter:    B
 
     short-name: barcodes
 
     short-name: barcodes
 
     color:      red
 
     color:      red
     rgb:        #ff0000
+
     rgb:        '#ff0000'
 
    
 
    
 
   - letter:    C
 
   - letter:    C
 
     short-name: biobots
 
     short-name: biobots
 
     color:      green
 
     color:      green
     rgb:        #00ff00
+
     rgb:        '#00ff00'
 
    
 
    
 
   - letter:    D
 
   - letter:    D
 
     short-name: castles
 
     short-name: castles
 
     color:      blue
 
     color:      blue
     rgb:        #0000ff
+
     rgb:        '#0000ff'
 
    
 
    
 
   - letter:    E
 
   - letter:    E
 
     short-name: channel
 
     short-name: channel
 
     color:      white
 
     color:      white
     rgb:        #ffffff
+
     rgb:        '#ffffff'
 +
 
  
 
=See Also=
 
=See Also=
 
* [[contest.yaml]]
 
* [[contest.yaml]]
* [[Problem Format]]
+
* [[Problem Format]] - location of problem data files, solution files
 
* [[problem.yaml]]
 
* [[problem.yaml]]
 +
* [[Export Tab]]
  
[[Category:CCS|CCS]]
+
[[Category:CLICS]]
 
[[Category:Version 9.3]]
 
[[Category:Version 9.3]]
 
[[Category:Import and Export]]
 
[[Category:Import and Export]]

Latest revision as of 15:52, 8 November 2019

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.

The section name for the problems in problemset.yaml is "problems".

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.

problems 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 balloon #0000ff

An example of a problems section

problems:
  - 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