|
@@ -67,7 +67,7 @@ function getAnswer() {
|
|
+ '\ngameDifficulty:' + gameDifficulty
|
|
+ '\ngameDifficulty:' + gameDifficulty
|
|
+ '\nfractionLabel:' + fractionLabel;
|
|
+ '\nfractionLabel:' + fractionLabel;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
return str;
|
|
return str;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -79,7 +79,7 @@ function getAnswer() {
|
|
*
|
|
*
|
|
* @returns {number} student's grade for the current assignment : real number between 0.0 and 1.0
|
|
* @returns {number} student's grade for the current assignment : real number between 0.0 and 1.0
|
|
*/
|
|
*/
|
|
-function getEvaluation() {
|
|
|
|
|
|
+ function getEvaluation() {
|
|
if (iLMparameters.iLM_PARAM_SendAnswer == 'false') { // Student
|
|
if (iLMparameters.iLM_PARAM_SendAnswer == 'false') { // Student
|
|
let i;
|
|
let i;
|
|
for (i = 0; i < moodleVar.hits.length && moodleVar.hits[i] == 1; i++);
|
|
for (i = 0; i < moodleVar.hits.length && moodleVar.hits[i] == 1; i++);
|
|
@@ -150,7 +150,6 @@ const getiLMContent = function () {
|
|
* @param {string} text content of the .frc file
|
|
* @param {string} text content of the .frc file
|
|
*/
|
|
*/
|
|
const breakString = function (text) {
|
|
const breakString = function (text) {
|
|
-
|
|
|
|
let gameInfo = {}, results;
|
|
let gameInfo = {}, results;
|
|
const lines = text.split('\n'); // Break by line
|
|
const lines = text.split('\n'); // Break by line
|
|
|
|
|