An interactive gravity simulator built with Python
A small educational project created for Stanford's Code in Place program. Originally developed using the course's Canvas library, it was later adapted to Pygame for local execution. Users can select a celestial body, choose a luggage mass, and compare how gravity affects its weight on Earth, Mars, and the Moon.
The original version developed in CIP using the Canvas library is also included in this repository as cip_code.py.
# Clone repository
git clone https://github.com/valentechie/gravity-lab.git
# Enter project folder
cd gravity-lab
# Install pygame
pip install pygame # or sudo apt install python3-pygame
# Run
python main.py