From 787d8db9cf86692b0c3cb1a6a50d797d0455ee1e Mon Sep 17 00:00:00 2001 From: Cory Dean Chung Date: Fri, 28 Jul 2023 10:45:48 -0400 Subject: [PATCH] I added a 5th letter, F. I enjoyed doing the problem set yesterday, and since I'd only made one commit, I thought I'd do three more letters to get to the four commits for the problemset. I continue to have a bit of difficulty with taking the perspective of the turtle to know whether one of the arguments for the circle function should be negative. I tested it every time I made a change, primarily when I made a segment and turned, so that I could quickly adjust if necessary. It ended up going pretty quickly! --- grid.pyc | Bin 0 -> 913 bytes typeface.py | 33 ++++++++++++++++++++++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 grid.pyc diff --git a/grid.pyc b/grid.pyc new file mode 100644 index 0000000000000000000000000000000000000000..83d818f103c1e37b7ded56c8df12ebfbda6a251f GIT binary patch literal 913 zcmcIi(Q4Z;6uq*OuFclL)G(=qU7dT5;`{yHi~gOi=-(IN{{hn<12l%Bn&^v;Xsk%b^owX5 zk?u$klkUeAI3#>TgiZSK|rq2NDl!6rgsi^<$6>Sxtxh29{1r(1Y zTI|yZ1coUe9@q}hjsda`T|};&Pfd7&XwtY<>2%M2oyneo1;;1R6rhbnw$71qbR1-4M&NW?j$ZA6gd z7K7-J1zNnJ(fZ`!+1IpZ?4 zC8bZowMl$iR*>S=*gx(J<$Bb573Lu9Vx&8N{e+Q`IKt z+r<-awRuE0n3%Z1-Sx2W&j1u1s3Y|fjyzWb;TM>5Sh@gi{D}Vczz6=5dz|;Oi#yI| Sjb7H~J!>hCr5Ei)d)+@E3Bt7i literal 0 HcmV?d00001 diff --git a/typeface.py b/typeface.py index a04725f..2c59dd8 100644 --- a/typeface.py +++ b/typeface.py @@ -65,7 +65,34 @@ def draw_letter_e(unit): pass def draw_letter_f(unit): - pass + #print(heading()) + #print(pos()) + circle(unit,90) + forward(6 * unit) + circle(unit,90) + right(180) + forward(7 * unit) + right(90) + forward(2 * unit) + circle(-unit,-90) + left(180) + forward(3 * unit) + left(90) + forward(2 * unit) + left(90) + forward(4 * unit) + right(90) + forward(2 * unit) + circle(-unit,-90) + left(180) + forward(3 * unit) + left(90) + forward(3 * unit) + circle(unit,90) + left(180) + forward(4 * unit) + right(180) + def draw_letter_g(unit): pass @@ -77,8 +104,8 @@ def draw_letter_i(unit): pass def draw_letter_j(unit): - print(heading()) - print(pos()) + # print(heading()) + # print(pos()) left(90) penup() forward(8 * unit)