Thanks to code.org for this video!
Here is the starter code for this lab: Lab 2 Starter Code
You will need to fill in the blocks under "Lab 2: Build Your Own Blocks" and submit this to Gradescope. For instructions on how to submit to labs to Gradescope, please see this document.
The autograder will grade the following blocks:
We can use the block
to make drawing shapes a lot easier! You can see below a script to draw a square.
(You can click on the script above to open the script in Snap! in another
window. This is indicated by the little
icon that
follows it.)
There are three different numeric values in the script—4
, 100
,
and 90
—that
you can think of as parameters that change the resulting picture.
Play with the script to understand how each number contributes to
the "squareness" of the shape that is drawn.