- Anand Kumar
- Shivam Singh
Our project aims to provide an interactive real-time simulation of the Plinko Board using the pygame
and pymunk
packages in Python and employing Galton Board statistics to predict expected scores and guide player decisions. By integrating probability distributions, players can visualize potential outcomes based on their chosen slots. The system calculates and displays the evolving probability distribution across scoring slots, incorporating the reflective nature of the board's sides for accuracy. This unique approach enhances the strategic element of Plinko, offering players informed insights into optimal release points and expected scores. Our simulation not only provides an engaging gaming experience but also serves as an educational tool, demonstrating the seamless integration of probability theory into interactive entertainment. Through this Plinko simulation, we showcase the synergy between Galton Board principles and strategic decision-making.
Demonstration.mp4
-
Clone the Repository to your local directory
git clone https://github.com/AnandK27/PlinkoStat.git
-
Install the all dependencies from
requirement.txt
pip install -r requirements.txt
-
Run the main.py file in directory
main
python main.py
Our real-time simulation provides a wide array of interactive widgets to modify the parameters as follows
This widget takes its input using a drop-down menu with values ranging from
Using the drop-down menu, this parameters take in only the the odd numbers ranging from
We provided a slider to select the number of balls ranging from
A text box is provided to enter the values of slots with maximum of
The start button, on clicked, begins the simulation with the provided parameters and the pause button can be used to freeze the simulation and resume whenever needed.
The fast-forward and slow-down buttons are self-explanatory as they help in speeding up and down the simulation respectively. The timescale
The user also has the option to select light theme by clicking on the half-filled circle on the top left of the interface window which will result in the colors
The plot is enabled after all the balls reach their respective bins as shown in plot.