Skip to content

Commit

Permalink
updating critical struggle with elaboration strings
Browse files Browse the repository at this point in the history
  • Loading branch information
d19fe8 committed Jun 30, 2017
1 parent 38a704e commit f27b81f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var help_variables = {"lastAction": "null",
"lastSenseOfWhatToDo": false
};
var initTime;
var elaborationString;
//
//[optional] single out TUNABLE PARAMETERS below
var windowSize = 7;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f27b81f

Please sign in to comment.