This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
focalCharacterModulation = float(self.respectForAuthority) * float(c.formalAuthority) | |
finalModulator = (float(round.config['net-idea-opinion-alignment-divisor']) * focalCharacterModulation) | |
partB = math.fabs((focalOpinionOfThem * focalWorkContributed) * finalModulator * 0.1) * 0.5 | |
fNextOpinion = round.getNextValue(fCurrentOpinionOfIdea, fCurrentOpinionOfIdea + (partB * opinionDirection)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let successTemplate = 'Looking at how you played, you were <adjective triggered by percentage> <style name>. You were <2 hardest process objectives achieved> which helped you <list of outcome objectives achieved>.<Statement about style when successful>. <Statement about connections to chart>.<Statement about learner growth from this successful experience>'; | |
let failureTemplate = 'Looking at how you played, you were not very <style name>. You did manage to <List of 2 hardest objectives Achieved> but you <list of 3 easiest unachieved objectives>.<Statement of how to achieve style which is also the plan> <Statement about style when you fail>.<Statement about learner growth from this unsuccessful experience>. Maybe try this again using some of my advice?'; | |
const successMessage = successTemplate | |
.replace('<adjective triggered by percentage>', '') | |
.replace('<style name>', this.convertScenarioToStyle(scenario)) | |
.replace('<2 hardest process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getPositionedAdjectives = (_data: any[], max: number, direction: number, nameMatch: string) => { | |
let data: any[] = []; | |
if (nameMatch === undefined) { | |
data = _data; | |
} | |
else { | |
for (let i = 0; i < _data.length; i++) { | |
const name: string = _data[i].name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"statements": [ | |
{ | |
// the average of the last three scores must be within 60 and 80. And it won't apply untill 3 had gone by | |
"averageOfLastThreeScoresMin": "60.0", | |
"averageOfLastThreeScoresMax": "80.0", | |
"atleastThisManyPlays": "3", | |
"statement": "You did alright.", | |
}, | |
{ |
OlderNewer