pyBegin / projects / tesla
🖼️

Tesla Self-Driving Car

A Pygame simulation of a self-driving car. A car follows a track image by sampling pixel colors ahead of it to decide when to drive straight or turn.

77 lines🖥 Desktop only

Tesla Self-Driving Car

A Pygame simulation of a self-driving car. A car follows a track image by sampling pixel colors ahead of it to decide when to drive straight or turn.

How to run

pip install pygame
python tesla.py

Dependencies

pygame

Pyodide-runnable

No — it uses Pygame for windowed graphics and loads track/car image assets, which require a desktop display.