ICode国际青少年编程竞赛- Python-2级训练场-数独
1、
Spaceship.step(3)
2、
Spaceship.step(3)
3、
Spaceship.step(1)
Spaceship.turnLeft()
Spaceship.step(1)
4、
Spaceship.step(3)
Spaceship.turnRight()
Spaceship.step(1)
5、
Spaceship.step(4)
for i in range(3):Spaceship.turnRight()Spaceship.step(3)
6、
for i in range(3):Spaceship.step(4 - i)Spaceship.turnLeft()
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.step(1)
7、
for i in range(4):Spaceship.step(4 - i)Spaceship.turnLeft()
Spaceship.step(1)
8、
for i in range(3):Spaceship.step(4 - i)Spaceship.turnLeft()
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.step(1)
9、
Spaceship.step(4)
for j in range(2):for i in range(2):Spaceship.turnLeft()Spaceship.step(3 - j)
10、
Spaceship.step(4)
for j in range(2):for i in range(2):Spaceship.turnLeft()Spaceship.step(3 - j)
Spaceship.turnLeft()
Spaceship.step(1)
11、
Spaceship.step()
for j in range(2):for i in range(2):Spaceship.step(3 - j)Spaceship.turnLeft()
Spaceship.step(1)
12、
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.step(1)
13、
Spaceship.step(6)
for i in range(3):Spaceship.turnLeft()Spaceship.step(1)
Spaceship.step(3)
14、
Spaceship.step(1)
for j in range(4):for i in range(2):Spaceship.step(5 - j)Spaceship.turnRight()
Spaceship.step(1)
15、
for i in range(2):Spaceship.step(6 - i)Spaceship.turnLeft()
for i in range(4):Spaceship.step(5 - i)Spaceship.turnLeft()
for i in range(2):Spaceship.step(2 - i)if i != 1: Spaceship.turnLeft()
16、
for i in range(2):Spaceship.step(6 - i)Spaceship.turnRight()
for i in range(3):Spaceship.step(5 - i)Spaceship.turnRight()
for i in range(2):Spaceship.step(3 - i)if i != 1: Spaceship.turnRight()
17、
Spaceship.step(1)
for j in range(3):Spaceship.step(5)Spaceship.turnRight()
for j in range(2):Spaceship.step(4)Spaceship.turnRight()
Spaceship.step(3)
18、
Spaceship.step()
for i in range(3):Spaceship.step(5)Spaceship.turnRight()
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.step(3)
Spaceship.turnLeft()
Spaceship.step(2)
19、
Spaceship.step()
for i in range(3):Spaceship.step(5)Spaceship.turnRight()
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.step(4)
Spaceship.turnLeft()
Spaceship.step(1)
20、
Spaceship.step(1)
for j in range(3):Spaceship.step(5)Spaceship.turnLeft()
for j in range(2):Spaceship.step(4)Spaceship.turnLeft()
Spaceship.step(2)