ICode国际青少年编程竞赛- Python-4级训练场-太阳能板1
1、

Dev.step(3)
Dev.turnRight()
Dev.step(2)
while Dev.energy < 60:
wait()
Dev.step(-6)
2、

Dev.step(7)
while Dev.energy < 90:
wait()
Dev.step(-1)
Dev.turnRight()
Dev.step(7)
3、

Dev.step(4)
Dev.turnRight()
Dev.step(3)
Dev.turnRight()
Dev.step(1)
Dev.turnRight()
while Dev.energy < 80:
wait()
Dev.step(7)
4、

Dev.step(7)
Dev.turnRight()
Dev.step(4)
while Dev.energy < 100:
wait()
Dev.step(-4)
Dev.turnRight()
Dev.step(-7)
5、

for i in range(3):
Dev.turnRight()
Dev.step(3)
if i == 0:
Dev.step(3)
while Dev.energy < 50:
wait()
Dev.step(-3)
Dev.turnLeft()
Dev.step(3)
6、

for i in range(3):
Dev.step(7)
Dev.turnRight()
while Dev.energy<100:
wait()
7、

for i in range(3):
while Dev.energy < 100:
wait()
Dev.step(4)
Dev.turnRight()
Dev.step(4)
Dev.turnLeft()
8、

for i in range(4):
while Dev.energy < 100:
wait()
Dev.step(5)
Dev.step(-5)
Dev.turnRight()
9、

for i in range(4):
while Dev.energy < 100:
wait()
Dev.step(4)
Dev.turnRight()
Dev.step(4)
10、

for i in range(3):
while Dev.energy < 100:
wait()
Dev.step(4)
Dev.turnLeft()
Dev.step(3)
Dev.turnRight()
Dev.step(5)
11、

for i in range(4):
Dev.step()
while Dev.energy < 100:
wait()
Dev.step()
Dev.turnRight()
Dev.step(4)
Dev.step(-4)
Dev.turnLeft()
12、

for i in range(5):
Dev.step(2)
Dev.turnRight()
Dev.step(4)
Dev.step(-5)
while Dev.energy < 100:
wait()
Dev.step()
Dev.turnLeft()
13、

for i in range(4):
Dev.step(8)
while Dev.energy < 100:
wait()
Dev.step(-2)
Dev.turnRight()
14、

for i in range(4):
Dev.step(3)
Dev.turnRight()
Dev.step(3)
if i < 3:
Dev.step(3)
while Dev.energy<100:
wait()
Dev.step(-3)
Dev.turnLeft()
15、

for i in range(3):
Dev.step(6)
while Dev.energy < 100:
wait()
Dev.step(-3)
Dev.turnRight()
Dev.step(3)
Dev.turnLeft()
16、

for i in range(4):
Dev.step(3)
Dev.turnRight()
Dev.step()
while Dev.energy < 100:
wait()
Dev.step()
Dev.turnRight()
Dev.step(3)
Dev.turnLeft()
17、

for i in range(4):
Dev.step(4)
Dev.turnLeft()
Dev.step(2)
Dev.step(-4)
while Dev.energy < 100:
wait()
Dev.step(2)
Dev.turnRight()
Dev.step(-4)
Dev.turnLeft()
18、

for i in range(4):
for j in range(2):
Dev.step(4)
Dev.turnRight()
Dev.step(2)
while Dev.energy < 100:
wait()
Dev.step(-1)
Dev.turnLeft()
19、

for i in range(4):
for j in range(2):
Dev.step(5 - j * 2)
Dev.turnRight()
Dev.step(4)
while Dev.energy < 100:
wait()
Dev.step(-2)
Dev.turnLeft()
20、

for i in range(4):
Dev.step(5)
while Dev.energy < 100:
wait()
Dev.step(-5)
Dev.turnRight()
Spaceship.step(3)
Spaceship.turnRight()