Turtle’s Random Walk
Follow this video instructions to learn how to:
- Load a module renaming it with
importandas - Set the heading color with
setHeadingColor() - Generate a random number and take decisions based on it.
- Make the turtle never go offscreen by making it appear on the opposite side of the screen using the
%(modulo) operator. Check this tutorial, this video or this other video on how to use it (the internet is full of them). - Tweak the decisions in order to get different types of random walks.