May 2018
Intermediate to advanced
256 pages
6h 20m
English

Placing blocks can be time consuming and dangerous, especially if you fall from a great height when you’re creating large buildings in survival mode. Instead of building walls yourself, you can program a turtle to take on these hazardous and dull building jobs. In this chapter, you’ll design an algorithm to create walls of any size by adding more functions to the hare module. Although we’ll focus on creating stone brick walls in this chapter, the functions will work with any type of block, including dirt, glass, or even watermelons, as you can see in Figure 11-1.
Figure 11-1: Turtles building walls of dirt, stone bricks, ...
Read now
Unlock full access