sub 500 line PPO agent lands on the moon in < 500 episodes, reliably. read how
pygame needs the SDL2 headers to build when using the gymnasium[box2d] extra. Install them once before creating the virtual environment:
- macOS (Homebrew)
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf
- Ubuntu / Debian
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python beautiful_lander.py