-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactingCode2.py
More file actions
53 lines (49 loc) · 827 Bytes
/
Copy pathactingCode2.py
File metadata and controls
53 lines (49 loc) · 827 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
41
42
43
44
45
46
47
48
49
50
51
52
53
#name: Qixuan Hou
#section: A04
#GTID: 903000267
#GTemail: qhou6@gatech.edu
#collaboration statement: I worked on the homework with my partner.
#player Griva
from Myro import*
init()
#race begins
#player Griva is slower
forward(0.6,1)
forward(0.6,1)
forward(0.6,1)
forward(0.6,1)
forward(0.6,1)
forward(0.6,1)
#player Griva is faster
forward(1.3,1)
forward(1.3,1)
forward(1.3,1)
forward(1.3,1)
forward(1.3,1)
forward(1.3,1)
#there is a box in front of player Griva
forward(1,1)
forward(0.5,1)
forward(0.5,1)
forward(0.1,1)
#backup
forward(2,1)
forward(2,1)
#wet floor
turnRight(1,0.25)
turnRight(1,0.25)
turnRight(1,0.25)
turnRight(1,0.25)
#keep going
forward(1,0.5)
forward(1,0.5)
forward(1,0.5)
forward(1,0.5)
forward(1,0.5)
forward(1,0.5)
forward(1,0.5)
forward(1.0.5)
forward(1,0.5)
forward(1,0.5)
backward(1,5)
#loser