File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
speed (0 )
2
2
setposition (- 200 ,- 200 )
3
- def make_square (color_square ):
3
+ def make_square (color_square ): ##Creates one square 40x40 pixels with color color_square
4
4
color (color_square )
5
5
begin_fill ()
6
6
for i in range (4 ):
7
7
forward (40 )
8
8
left (90 )
9
9
end_fill ()
10
- def make_row (first_color , second_color ):
10
+ def make_row (first_color , second_color ): ## creates a row of 10 squares with alternating colors between first_color and second_color
11
11
mod_check = 0
12
12
for i in range (10 ):
13
13
if mod_check % 2 == 0 :
@@ -16,17 +16,17 @@ def make_row(first_color, second_color):
16
16
make_square (second_color )
17
17
forward (40 )
18
18
mod_check = mod_check + 1
19
- def up_a_row ():
19
+ def up_a_row (): ## moves tracy up a row
20
20
penup ()
21
21
backward (400 )
22
22
left (90 )
23
23
forward (40 )
24
24
right (90 )
25
- def make_two_rows ():
25
+ def make_two_rows (): ## makes a row with red,black and a row on top of it with black,red
26
26
make_row ("red" , "black" )
27
27
up_a_row ()
28
28
make_row ("black" , "red" )
29
- def make_checkerboard ():
29
+ def make_checkerboard (): ##makes the checker board using make_two_rows and up_a_row
30
30
for i in range (5 ):
31
31
make_two_rows ()
32
32
up_a_row ()
You can’t perform that action at this time.
0 commit comments