Unit 7 Lab 1
Trees
In this lab, you will create a tree-drawing program that uses recursion to draw the branches by drawing smaller and smaller trees.
In this lab, you will create a tree-drawing program that uses recursion to draw the branches by drawing smaller and smaller trees.
Recursive Tree
Recursive Tree
Vocabulary
Vocabulary
Click each word to view the definition.
State transparency
State transparency
State transparency means putting everything back exactly as it was when you started. It is especially important when blocks depend on other blocks. Usually, this means returning the sprite to the same position and direction and returning the pen to the same color and size.
Recursion
Recursion
Using a block inside of itself is called recursion.
The Base Case
The Base Case
Vocabulary
Vocabulary
Click each word to view the definition.
Base case
Base case
This different version for the lowest level of a recursive script is called the base case.
Self-Check: Tree Inputs
Self-Check: Tree Inputs
Self-Check
Self-Check
Unit 7 Lab 1: Tree Inputs
Unit 7 Lab 1: Tree Inputs
Self-Check: Tree Inputs
Self-Check: Tree Inputs
Self-Check
Self-Check
Unit 7 Lab 1: Tree Variations
Unit 7 Lab 1: Tree Variations
Vary Your Tree
Vary Your Tree
If There Is Time...
If There Is Time...