Skip to content

Exercise Configuration

Haeri edited this page Sep 11, 2019 · 7 revisions

Inside the the Exercise, we expect a config.json file that provides important information about the exercise.

Here are the possible json values;

Values

Name Type Default Required Breaking Description
type String true true What type of exercise should this be
language String only for type "code" & "codeSnippet" true If type is "code" oder "codeSnippet", we need to cpecify what coding language it is
isGraded bool True false false Should exercise get graded or is it a bonus exericise
maxScore int 1 false false What are the maximum amount of points that can be get in this exercise
maxSubmits int 1 false false Maximum amount of submits possible
options String[] only for type "multipleChoice" & "singleChoice" true A list of options
solutions String[] only for type "multipleChoice" & "singleChoice" & "Text" true A list of solutions
hints String[] false false A list of hints that will get displayd for if max score is not reached
memory int 64 MebiBytes false false Max ram usage in MebiBytes
cpuCores int 1 false false Max core usage
timeout int 5000 false false Max execution time in milliseconds
networking bool false false false Is networking enabled inside the container
testing bool false false false If testing is enabled, memory and cpu restrictions are lifted. Can be used for testing and debugging.