Implement random_walk #23

Closed
opened 2026-10-07 18:02:15 +02:00 by Tirsvad · 0 comments
Owner

Implement random_walk(pen, steps, distance, rng): set the pen size and speed, then for each of 200 steps choose a heading from the list of 0, 90, 180 and 270 degrees, give the line a random_color RGB value and move forward by a fixed distance. The directions are a tuple constant.

Phase: MIL-004

Implement `random_walk(pen, steps, distance, rng)`: set the pen size and speed, then for each of 200 steps choose a heading from the list of 0, 90, 180 and 270 degrees, give the line a `random_color` RGB value and move forward by a fixed distance. The directions are a tuple constant. Phase: MIL-004
Tirsvad added this to the Milestone 004: Random Walk and Spirograph milestone 2026-10-07 18:02:15 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/018-turtle#23