phetsims / plinko-probability

"Plinko Probability" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 7 forks source link

Add custom query parameters to file #39

Closed jessegreenberg closed 8 years ago

jessegreenberg commented 8 years ago

PhET has begun to document custom query parameters in a separate file so that they are documented and easy to find. Would you mind doing this for the 'lowerBallMaximum' parameter? Please see AreaBuilderQueryParameters for an example.

veillette commented 8 years ago

I'm assigning this one to you @Denz1994 . Our query parameter was somewhat of a hack (although it was useful for the QA team). A better query parameter might be ?launchedBalls=###, which would prepopulate the histogram with that many balls. That could be useful on the second screen.

Denz1994 commented 8 years ago

The "lowerBallMaximum" parameter has been replaced by "ballsOnScreen" for more flexibility. Now users can enter "?ballsOnScreen=450" and the lab tab, once opened, will be initialized as if 450 balls have fallen. This includes updating the histogram along with the statistics associated with 450 randomly dropped balls (the histogram differs every time, as it should).

This may be useful for instructors as well, if they wish to start the simulation with a specific number of balls, rather than waiting for a specific number of balls to drop.

Additionally, the query parameter file contains these metrics and has been created as suggested. Assigning to @jessegreenberg for review and any further input.

jessegreenberg commented 8 years ago

@Denz1994 PlinkoProbabilityQueryParameters looks great. ?launchedBalls=### is a very helpful addition! Closing.