The drawing of a car: body, cabin, windows, headlight, two wheels
collision.py
is_colliding: pure rectangle test, no turtle needed
scoreboard.py
Scoreboard(Turtle): level text and GAME OVER
Design choices
Cars look like cars. A car is a compound turtle shape inside the 40 x 20
pixel footprint of the assignment. One shape is registered per colour, so no
image files are needed.
Testable without a window. Geometry (car_components), the collision
test and the spawn rule are plain code. CarManager receives a car factory
and a random source, so tests use a fake car and a seeded dice.
Collision uses the whole car. The player is compared with the car's
rectangle, not only with its centre.
Documentation
Source comments are Doxygen comments. Build them with doxygen Doxyfile.
Planning and review documents are in docs/.