Add pen.py with a Pen protocol listing the turtle methods the challenges use, and helpers that create the Screen (color mode 255) and the Turtle named tim. The drawing functions take a Pen, so tests can pass a fake. The Doxygen comments also explain the import styles of the lecture (import turtle, from turtle import Turtle, import turtle as t) and why the wildcard import is avoided.
Phase: MIL-002
Add `pen.py` with a `Pen` protocol listing the turtle methods the challenges use, and helpers that create the `Screen` (color mode 255) and the `Turtle` named `tim`. The drawing functions take a `Pen`, so tests can pass a fake. The Doxygen comments also explain the import styles of the lecture (`import turtle`, `from turtle import Turtle`, `import turtle as t`) and why the wildcard import is avoided.
Phase: MIL-002
Tirsvad
added this to the Milestone 002: Square and Dashed Line milestone 2026-10-07 18:01:38 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add
pen.pywith aPenprotocol listing the turtle methods the challenges use, and helpers that create theScreen(color mode 255) and theTurtlenamedtim. The drawing functions take aPen, so tests can pass a fake. The Doxygen comments also explain the import styles of the lecture (import turtle,from turtle import Turtle,import turtle as t) and why the wildcard import is avoided.Phase: MIL-002