From f27b81f850acf35330f1e55f04dc2e1345cd9445 Mon Sep 17 00:00:00 2001 From: Ken Holstein Date: Thu, 29 Jun 2017 20:37:56 -0400 Subject: [PATCH] updating critical struggle with elaboration strings --- .../Lumilo/Critical_Struggle/critical_struggle.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js b/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js index b418b47..a4bde8d 100644 --- a/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js +++ b/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js @@ -33,6 +33,7 @@ var help_variables = {"lastAction": "null", "lastSenseOfWhatToDo": false }; var initTime; +var elaborationString; // //[optional] single out TUNABLE PARAMETERS below var windowSize = 7; @@ -453,6 +454,16 @@ function receive_transaction( e ){ var isWheelSpinning = detect_wheel_spinning(e, onboardSkills, stepCounter[currStep]); + if (isWheelSpinning){ + elaborationString = "not improving on some skills"; + } + else if (help_model_output == "ask teacher for help/try step"){ + elaborationString = "hints aren't helping"; + } + else{ + elaborationString = ""; + } + attemptWindow.shift(); attemptWindow.push( (help_model_output == "ask teacher for help/try step" || isWheelSpinning) ? 1 : 0 ); var sumAskTeacherForHelp = attemptWindow.reduce(function(pv, cv) { return pv + cv; }, 0);