You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
413 B
20 lines
413 B
export default class Complexity {
|
|
static get_complexity(level) {
|
|
const complexity = [
|
|
"c-VerySimple",
|
|
"c-Basic",
|
|
"c-Elementary",
|
|
"c-Straightforward",
|
|
"c-Moderate",
|
|
"c-Intermediate",
|
|
"c-Complex",
|
|
"c-Challenging",
|
|
"c-Advanced",
|
|
"c-HighlyAdvanced",
|
|
"c-ExtremelyComplex",
|
|
];
|
|
|
|
const numLevel = Number(level);
|
|
return complexity[numLevel] ?? "c-Basic";
|
|
}
|
|
}
|
|
|