Published using Google Docs
Building Code - Turtle Art
Updated automatically every 5 minutes

Building Code

Help the turtle become a superior architect by programming it to create buildings that are “up to code.” Use the block stacks (or scripts) below to help you construct a building. Try changing numbers (one at a time) or make new polygons to add to your building.

Shape

Code

Think

Challenges

Can you make this stack of code shorter so it makes the same shape?

How would you make it wide or narrow?

You might want to make it shorter or taller. Can you figure out how?

  • Add a spire to the top of your building.

  • Find a way to change the pen color.

  • Change the background color to make it night or day?

  • Program a famous building in Hong Kong or another city.

  • How would you add more buildings?

  • Get with a peer and program a cityscape together.

Can you make the square (box) bigger? How?

How might you turn the triangle to point one way or another?

What happens when you change the angle?

What does the radius do?

Use your knowledge of coordinates and the setxy block to help move the Turtle Move to specific locations.