Closed pixelzoom closed 10 years ago
I added 'playAll' query parameter. It does the job, and the scoreboard reflects the correct number of total challenges. But there are a some issues that I haven't addressed, and I'm not sure if I should put time into it:
vegas.ProgressIndicator (the stars on the level-selection buttons) did some odd things when score > perfectScore, as noted in phetsims/vegas#30. I added an assert, which will indeed fail when running with 'playAll'.
I correct issues with 'playAll' by adding support for per-level number of equations in the game. See https://github.com/phetsims/balancing-chemical-equations/commit/3a02b9962ffb8feff3113ccf49d7d768be3931d2
Since selection of equations is random in the game, it would be useful to add a query parameter that allows you to play all of the possible challenges in the game. Otherwise we may miss a layout (or other) problem related to an equation that doesn't get seen in testing. The Java implementation had this feature, but it was not MLL's responsibility to implement it.