ICode国际青少年编程竞赛- Python-4级训练场-绿色飞板1
1、
while Flyer.disappear():
wait()
Dev.step(4)
2、
Dev.turnRight()
Dev.step()
while Flyer[0].disappear():
wait()
Dev.step(3)
Dev.turnLeft()
Dev.step()
while Flyer[1].disappear():
wait()
Dev.step(2)
Dev.turnRight()
Dev.step()
while Flyer[2].disappear():
wait()
Dev.step(2)
3、
Dev.step()
while Flyer[1].disappear():
wait()
Dev.step(6)
Dev.step(-4)
Dev.turnLeft()
while Flyer[2].disappear():
wait()
Dev.step(-2)
while Flyer[2].disappear():
wait()
Dev.step(2)
while Flyer[0].disappear():
wait()
Dev.step(3)
4、
Spaceship.step(2)
while not Flyer.disappear():
wait()
Spaceship.step(4)
5、
while not Flyer[0].disappear():
wait()
Spaceship.step(4)
Spaceship.turnRight()
Spaceship.step(6)
Spaceship.turnRight()
Spaceship.step(2)
Spaceship.turnRight()
while not Flyer[1].disappear():
wait()
Spaceship.step(4)
Spaceship.turnLeft()
Spaceship.step(6)
Spaceship.turnLeft()
Spaceship.step(2)
Spaceship.turnLeft()
while not Flyer[2].disappear():
wait()
Spaceship.step(4)
Spaceship.turnRight()
Spaceship.step(2)
6、
for i in range(3):
while Flyer[i].disappear():
wait()
Dev.step(4)
Dev.turnRight()
7、
for i in range(3):
while Flyer[i].disappear():
wait()
Dev.step(3)
8、
for i in range(3):
Dev.step()
while Flyer[i].disappear():
wait()
Dev.step(3)
Dev.turnRight()
9、
for i in range(3):
Dev.turnLeft()
while Flyer[i].disappear():
wait()
Dev.step(2)
Dev.turnRight()
Dev.step(3)
10、
for i in range(5):
Dev.turnRight()
while Flyer[i].disappear():
wait()
Dev.step(7-i)
11、
for i in range(4):
while Flyer[i].disappear():
wait()
Dev.step(i-5)
Dev.step(3-i)
while Flyer[i].disappear():
wait()
Dev.step(2)
Dev.turnRight()
12、
for i in range(4):
Dev.turnLeft()
Dev.step(i+1)
Dev.turnRight()
Dev.step(i+1)
while Flyer[i].disappear():
wait()
Dev.step(2)
13、
for i in range(3):
while not Flyer[i].disappear():
wait()
Spaceship.step(3)
14、
for i in range(4):
Spaceship.step()
Spaceship.turnRight()
while not Flyer[i].disappear():
wait()
Spaceship.step(6)
15、
for i in range(4):
while not Flyer[i].disappear():
wait()
Spaceship.step(5)
Dev.turnLeft()
Dev.step(3)
Dev.step(-6)
Dev.step(3)
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(3)
while not Flyer[i].disappear():
wait()
Spaceship.step(2)
Spaceship.turnLeft()
16、
for i in range(3):
Spaceship.step(4)
Spaceship.turnRight()
while not Flyer[i].disappear():
wait()
Spaceship.step(4)
Spaceship.turnLeft()
17、
for i in range(3):
Spaceship.step(i)
while not Flyer[i].disappear():
wait()
Spaceship.step(2)
Dev.step()
Dev.step(-1)
Spaceship.turnRight()
Spaceship.step((i+1)*2)
Spaceship.turnLeft()
18、
Dev.turnRight()
for i in range(4):
while not Flyer[i*2].disappear():
wait()
Spaceship.step(2)
while Flyer[1 + i*2].disappear():
wait()
Dev.step(4)
Dev.step(-2)
while Flyer[1 + i*2].disappear():
wait()
Dev.step(-2)
19、
for i in range(4):
Spaceship.step(2)
while not Flyer[i*2].disappear():
wait()
Spaceship.step(2)
Dev.turnRight()
while Flyer[1 + i*2].disappear():
wait()
Dev.step(3)
Dev.step(-1)
while Flyer[1 + i*2].disappear():
wait()
Dev.step(-2)
Spaceship.step(4)
Spaceship.turnRight()
20、
for i in range(4):
Dev.step(5-i)
while Flyer[i].disappear():
wait()
Dev.step(2)
Dev.turnRight()
Dev.step(2)
Dev.turnLeft()
Flyer[4].step(2)
Dev.step(i-7)
Dev.turnRight()
Dev.step(2)
Dev.turnLeft()
Flyer[4].step(2)