Closed pixelzoom closed 4 years ago
Reproduced manually with ?ea&screens=5&fuzz&log
. It doesn't happen immediately, so let it run awhile.
The problem is that xVariable
(x) for SolveItScene has range [-40,40]. But "level 1, type 3" challenges (for example) derive the value of xVariable
. Based on the range of coefficients a, b, c, d, x value derived by the challenge generator can be outside that range. Having a range for x in challenges is generally inappropriate, because x is not controlled by the user, and the range of x depends on the form of the equation and the range of its coefficients.
Now that NumberProperty is more strict about its range, this issue and #156 popped up.
There were 3 problems here: (1) all "variables" (Variable.js) had a default range, (2) the default was not generally appropriate, and (3) ranges were set for variables that shouldn't have a range, for example the derived value of 'x' in certain game challenges.
The only variables that require a range are those that are user-controlled (via pickers). So the gist of the above commits is that Variable.js defaults to range: null
, and those scenes that control variable values via pickers then set an appropriate range
.
This affects all 3 sims in the equality-explorer family. I tested them all manually and with ?ea&fuzz
.
I'll leave this open until CT verifies.
CT is happy for 3 cycles, closing.
Thanks for taking care of this!
CT is failing consistently with errors like the one below. This is likely related to NumberProperty range changes in https://github.com/phetsims/axon/issues/274.