Skip to content
Snippets Groups Projects
Commit c823ef38 authored by Teemu Lehtinen's avatar Teemu Lehtinen
Browse files

Add qlcs to while_loop

parent 0183e43e
Branches
No related tags found
No related merge requests found
......@@ -244,15 +244,20 @@ let Content = {
executeAtStart: false,
points: function ($element, config, accessor) {
let correct = [5, 4, 3, 2, 1, 0, "Lift off!"];
let p = accessor.testResults(10, function (i, args, res) {
let p = accessor.testResults(8, function (i, args, res) {
return correct.every(function (e, i) {
return args[i] == e;
})
? 10
? 8
: 0;
});
return { points: p };
},
qlcs: {
requirePoints: 8,
rewardPoints: 2,
request: [{ count: 3, types: ['LoopEnd', 'VariableDeclaration'], uniqueTypes: true }],
},
maxPoints: 10,
title: "While loop",
description:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment