Simulating the math behind Plinko/Galton board games with Streamlit
Hey everyone,
I was curious about the actual mathematics behind Plinko-style games, so I put together a quick Streamlit dashboard to simulate how the odds and house edge play out over time.
*Live App:* https://plinko-simulation.streamlit.app/
*GitHub:* GitHub - JimmyGBuckets00/Plinko-simulation: Interactive Monte Carlo, Binomial & Hypergeometric probability simulations for Plinko and Mines (Python / Streamlit & C++). · GitHub
What it does:
- Calculates the exact theoretical drop probabilities using a binomial distribution ($n=8, p=0.5$).
- Analyzes the theoretical RTP and house edge (which turns out to be a brutal ~37.66% on this layout).
- Runs a Monte Carlo simulation for up to 100 simultaneous players to visualize how fast bankrolls decay over multiple rounds.
Built with Streamlit, NumPy, SciPy, and Matplotlib.
Would love to hear any thoughts or feedback on improving the visualization!