Closed Nancy-Salpepi closed 2 years ago
Reproduced in unbuilt master. The unobfuscated stack trace is:
EqualityExplorerRewardNode.js:60 Uncaught TypeError: createNodesFunction[(level - 1)] is not a function
at new EqualityExplorerRewardNode (EqualityExplorerRewardNode.js:60)
at Object.showCallback (SolveItSceneNode.js:297)
at Dialog.js:292
at TinyProperty.emit (TinyEmitter.js:86)
at BooleanProperty._notifyListeners (Property.js:279)
at BooleanProperty.set (Property.js:191)
at BooleanProperty.set value [as value] (Property.js:353)
at RewardDialog.show (Popupable.js:118)
at SolveItSceneNode.js:310
at TinyProperty.emit (TinyEmitter.js:86)
The number of levels in the game increased from 4 to 5, but an additional reward was not added for the Reward dialog. So when we request the reward for Level 5, it doesn't exit. So we'll need to add a reward level. And we'll need to revisit all of the rewards, because the rewards were specific to level, and (according to https://github.com/phetsims/equality-explorer/issues/164) we replaced the former Level 1 with new Level 1 & Level 2.
@amanda-phet I need your input on what the rewards should be for the new Level 1 and Level 2. If you need to decide by playing with the sim, use master.
Running with ?showAnswers&rewardScore=1
will make it easier to get to rewards.
The challenges for each level are described in Equality Explorer - game challenge generation.
Level 1: What do you want for rewards here? I recommend: variable terms with POSITIVE integer coefficients, constant terms with integer values, red spheres, and blue squares.
Level 2 is currently: variable terms with integer coefficients, constant terms with integer values, apples, and oranges. I recommend: variable terms with NEGATIVE integer coefficients, constant terms with integer values, apples, and oranges.
Levels 3, 4, 5 were previously Levels 2,3,4 respectively, so no changes should be needed. They are:
I went ahead and made the changes that I recommended to Level 1 & 2 rewards. @amanda-phet please review in master. Let me know if you want to change anything. And again, running with ?showAnswers&rewardScore=1
will make it easier to get to rewards.
I like the suggested changes. The only issue I see right now is Level 2. I sometimes see 0x and 1x, so something is off about how you are defining negative coefficients.
Good catch @amanda-phet. For Level 2, I had the coefficient range set to [-9,1] instead of [-9,-1]. Fixed in the above commit.
@Nancy-Salpepi back to you to verify in master. Note that running with ?showAnswers&rewardScore=1
will make it faster to get to rewards.
To verify:
Close if everything looks OK.
Looks good on master.
Test device MacBook Air (m1 chip)
Operating System 12.0.1
Browser safari 15
Problem description https://github.com/phetsims/qa/issues/732 On the Solve It! Screen, once Level 5 is completed, the sim freezes.
Steps to reproduce Using ?showAnswers query parameter, complete 10 challenges in Level 5.
Visuals
Console Error:
[Error] TypeError: [qR,CR,xR,IR][e-1] is not a function. (In '[qR,CR,xR,IR][e-1]()', '[qR,CR,xR,IR][e-1]' is undefined) ER (equality-explorer_all_phet.html:870:1589484) showCallback (equality-explorer_all_phet.html:870:1593105) (anonymous function) (equality-explorer_all_phet.html:870:933125) emit (equality-explorer_all_phet.html:870:42657) _notifyListeners (equality-explorer_all_phet.html:870:80915) set (equality-explorer_all_phet.html:870:80341) value (equality-explorer_all_phet.html:870:81367) show (equality-explorer_all_phet.html:870:930191) (anonymous function) (equality-explorer_all_phet.html:870:1593273) emit (equality-explorer_all_phet.html:870:42657) _notifyListeners (equality-explorer_all_phet.html:870:80915) set (equality-explorer_all_phet.html:870:80341) value (equality-explorer_all_phet.html:870:81367) showAnswer (equality-explorer_all_phet.html:870:1479422) listener (equality-explorer_all_phet.html:870:1592560) emit (equality-explorer_all_phet.html:870:42657) (anonymous function) (equality-explorer_all_phet.html:870:85071) execute (equality-explorer_all_phet.html:870:70479) emit (equality-explorer_all_phet.html:870:85308) fire (equality-explorer_all_phet.html:870:912826)