January 2019
Intermediate to advanced
236 pages
5h 41m
English
Yes, you managed to code your way out of a paper bag in a number of different ways. Your first deterministic approach sent the turtle in a line, straight out of the bag:

Perhaps bursting out the side of the paper bag seems to be wrong. We will try other algorithms over the course of the book which avoid busting out of the sides. After the straight line, the turtle built squares that got larger and larger until some landed outside of the paper bag. If the turtle drew forty squares, spaced one unit apart, you see something like this:
Finally, you made a variety of spirangles. If you picked 8 as the stopping criteria for the 120-degree ...
Read now
Unlock full access