Turn on your sound, click the green flag, and enjoy this simulation for the value of π! This is a Monte Carlo simulation to estimate π by sampling random points in a square. Over time, the approximation for π should get closer and closer to the true value.
I love the new reflection prompts! A success I enjoyed today: I spent probably the first half of my time working on this project on actually getting the simulation working and approximating the right value. The second half, though, was spent trying to time the simulation drawing and informational sprites to the music — I'm pretty proud of how the timing ended up working out, so I'd call that a success! A frustration I experienced today: The first several times I ran the simulation, the simulation would randomly stop part-way through, with no explanation I could think of despite my debugging attempts. It took a little bit of research before I discovered that there's a 300 clone limit in Scratch — I didn't know that before, and so my program was stopping once it hit 300 clones. I had to rework the project using the pen tool instead, which was a good learning experience, and now it can simulate more than 300 points. *** Music from https://files.freemusicarchive.org/storage-freemusicarchive-org/music/no_curator/Scott_Holmes/Inspiring__Upbeat_Music/Scott_Holmes_-_04_-_Upbeat_Party.mp3