This script shows the simulation of few balls bouncing in a container under gravity. They also collide with the bottom part and the walls of the container.
The script runs in python3. pygame module is needed
pip3 install requirements.txt
Navigate to the folder where the source code is written. Open a terminal and execute the command:
python3 ball_bounce.py
Ayush Shaw