This Python project runs a simple ASCII solar system in your Unix terminal.
It's also my first Boot.dev personal project, and showcases some of the Python skills I've picked up while following their Backend Developer course.
Note: unlike the guided projects, this project is entirely my own.
- Animated ASCII planets and stars
- Vibrant color support made possible with Rich
- Dynamically adapts to terminal rescaling
- Easy CLI exit by pressing the 'q' key during runtime
-
Clone the repo:
git clone https://github.com/charliej2005/terminal-solar-system.git cd terminal-solar-system
-
Install dependencies:
pip install -r requirements.txt
-
Run the project:
python3 main.py
-
Optional flags:
--color
: Enable vibrant color output--random
: Generate a random solar system--fps FPS
: Set frames per second (default: 30)--stars STARS
: Set number of background stars (default: 100)--x-scale X_SCALE
: Set terminal font aspect ratio (default: 2.2)
Have fun! :)
This tool is not accurate to real-world orbits. If you're an astronomer, please avert your eyes!