About this stage
It's time to move the 'Blues' around. Create a population of blues and then hit the 'Go' button to make them move around.
They currently bounce off the walls...not each other...we'll develop that ability in the future.
Use the Speed slider to adjust the speed of the blues.
Ponder Points (Simulitis ~ Stage 3)
- What improvements do you note comparing this current stage to Stage 2? What did we do to make the changes more apparent in the user interface?
- Refresh the simulation and set the population to 100. Use the increment/decrement buttons to get there, if necessary. Create the population and 'Go!'. Try to increment or decrement the population (without moving the slider) and notice they have been deactivated. What single line of code in both tickPopulation functions made them non-functional under these circumstances?
- Refresh the app and set the population to 1024. Run the simulation for a bit and then make changes to the speed, higher and lower. Do you see any unusual things happen besides the speed of the Blues changing? Do you think we need additional improvements? Why or why not? If you're not sure, create a population of 1 Blue and run it. Change its speed and watch what happens? Describe what you see.
Last update: 03/15/20