-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCheckerBoard.py
More file actions
40 lines (32 loc) · 899 Bytes
/
CheckerBoard.py
File metadata and controls
40 lines (32 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
def checkers():
import turtle
turtle.color('black', 'black')
turtle.pu()
turtle.speed(50)
turtle.goto(-300, 300)
turtle.pd()
turtle.begin_fill()
for i in range (4):
for i in range (2):
for i in range (4):
turtle.begin_fill()
for i in range (4):
turtle.forward(75)
turtle.right(90)
turtle.end_fill()
turtle.pu()
turtle.forward(150)
turtle.right(90)
turtle.forward(75)
turtle.right(90)
turtle.forward(525)
turtle.right(180)
turtle.left(180)
turtle.forward(150)
turtle.left(180)
turtle.pd()
for i in range (4):
turtle.begin_fill()
turtle.forward(600)
turtle.left(90)
turtle.end_fill()