Skip to content

valentechie/gravity-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravity Lab

An interactive gravity simulator built with Python

demo

About

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.


Run it locally

# 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

About

Interactive educational project exploring gravity and planetary weight

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages