Skip to content

Commit 63189b9

Browse files
committed
Whoops wrong code
1 parent 14a78ab commit 63189b9

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed
+17-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
def drawCube(side_len):
1+
numCircles = 8
2+
circleSize = 20
3+
4+
speed(0)
5+
def make_caterpillar_cell(color_choice, m_size):
26
pendown()
3-
for i in range(16): # 16 beacuse codehs is dumb
4-
forward(side_len)
5-
left(90)
7+
begin_fill()
8+
color(color_choice)
9+
circle(m_size)
10+
end_fill()
611
penup()
12+
advance_to_next(m_size)
13+
14+
def advance_to_next(m_size):
15+
penup()
16+
forward(m_size * 2)
717

818
penup()
9-
setposition(-200, -200)
10-
for i in range(4):
11-
square_length = input("Enter square size: ")
12-
drawCube(square_length)
13-
forward(400)
14-
left(90)
15-
print("Done!")
19+
setposition(-100, 0)
20+
for i in range(numCircles):
21+
make_caterpillar_cell(input("Color for cell " + str(i + 1) + ": "), circleSize)

0 commit comments

Comments
 (0)