forked from Manish57-droid/python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Anime.py
85 lines (53 loc) · 1.11 KB
/
Anime.py
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
from turtle import * from random import randint
speed(0)
penup()
goto(-140, 140)
for step in range(15):
write(step, align ='center')
right(90)
for num in range(8):
penup()
forward(10)
pendown()
forward(10)
penup()
backward(160)
left(90)
forward(20)
player_1 = Turtle()
player_1.color('red')
player_1.shape('turtle')
player_1.penup()
player_1.goto(-160, 100)
player_1.pendown()
for turn in range(10):
player_1.right(36)
player_2 = Turtle()
player_2.color('blue')
player_2.shape('turtle')
player_2.penup()
player_2.goto(-160, 70)
player_2.pendown()
for turn in range(72):
player_2.left(5)
player_3 = Turtle()
player_3.shape('turtle')
player_3.color('green')
player_3.penup()
player_3.goto(-160, 40)
player_3.pendown()
for turn in range(60):
player_3.right(6)
player_4 = Turtle()
player_4.shape('turtle')
player_4.color('orange')
player_4.penup()
player_4.goto(-160, 10)
player_4.pendown()
for turn in range(30):
player_4.left(12)
for turn in range(100):
player_1.forward(randint(1, 5))
player_2.forward(randint(1, 5))
player_3.forward(randint(1, 5))
player_4.forward(randint(1, 5))