Skip to content

Instantly share code, notes, and snippets.

View hawksprite's full-sized avatar

Justin Barnyak hawksprite

View GitHub Profile
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))
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
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;
{
"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.",
},
{