Draft 1.1

This commit is contained in:
Finn Goehrig 2023-06-05 13:47:22 -04:00
parent 84dd571c65
commit 155a8391dd
1 changed files with 41 additions and 29 deletions

View File

@ -1,3 +1,9 @@
#inductive vs deductive
#breaking complicated problem into simple problems
#when trying to recreate a brick wall, we can start brick by brick.
#if students are stuck, we fill in the gaps for them.
from turtle import * from turtle import *
#let's try making a brick... that shouldn't be too hard. It's a rectangle. #let's try making a brick... that shouldn't be too hard. It's a rectangle.
@ -194,46 +200,52 @@ def rosette():
def stem(): def stem():
right(90) right(90)
forward(100) forward(100)
backward(100)
left(90) left(90)
#...and leaves... #...and leaves...
def leaf(): def right_leaf():
circle(50,130) left(90)
penup() forward(50)
circle(50,230) left(30)
pendown() forward(30)
circle(100,130) left(150)
forward(50)
left(30)
forward(30)
left(60) left(60)
circle(55,110)
penup() def left_leaf():
circle(55,250) right(90)
pendown() forward(50)
left(26) right(30)
circle(55,90) forward(30)
penup() right(150)
circle(55,270) forward(50)
right(86) right(30)
circle(100,230) forward(30)
pendown() right(60)
right(10)
circle(60,130)
penup()
circle(60,230)
left(10)
pendown()
#Let's put those leaves on the stem... #Let's put those leaves on the stem...
def stem(): def stem():
right(90) right(90)
forward(100) forward(100)
leaf() left_leaf()
right(90) right_leaf()
forward(100) forward(100)
#rosette() rosette()
#stem() stem()
leaf() penup()
home()
forward(100)
pendown()
two_rows_of_bricks()
two_rows_of_bricks()
two_rows_of_bricks()
two_rows_of_bricks()
two_rows_of_bricks()
two_rows_of_bricks()
input() input()