Skip to content

Define total score in yaml, and specify question scores as a percentage of the total #674

Description

@Ktrio3

A useful feature would be the option to specify the total score/points for the challenge as a whole, then define the individual question scores as a percentage of that total. This more closely matches our development cycle, where the total score is not decided until development and QA is completed entirely. For example, it might look something like this.

If the score is omitted, points are treated as they are now. If present, points are taken as a percentage between 0-100

Q1 would be .33 * 1731 = 571.23 (rounded in whatever way you think is best)
Q2 would be .77 * 1731 = 1332.87 (rounded in whatever way you think is best)

x-challenge:
  name: "Single Variable Challenge"
  score: 1731
  ...
  questions:
    - name: "Retrieve the Flag"
      body: "What is the 1st flag for this challenge?"
      placeholder: "Enter the flag"
      points: 33
      answer: *flag1
      max_attempts: 3
    - name: "Retrieve the 2nd Flag"
      body: "What is the 2nd flag for this challenge?"
      placeholder: "Enter the flag"
      points: 77
      answer: *flag2
      max_attempts: 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions