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
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.
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 arandom_colorRGB value and move forward by a fixed distance. The directions are a tuple constant.Phase: MIL-004