SHOW:
|
|
- or go back to the newest paste.
1 | - | sleep(1) |
1 | + | sleep(1) |
2 | - | |
2 | + | |
3 | - | for y = 1, 10 do |
3 | + | for y = 1, 10 do |
4 | - | for x = 1, 10 do |
4 | + | for x = 1, 10 do |
5 | - | turtle.forward() |
5 | + | turtle.forward() |
6 | - | if ((y-1) * 10 x-1) % 2 == 0 then |
6 | + | if ((y-1) * 10 x-1) % 2 == 0 then |
7 | - | turtle.digDown() |
7 | + | turtle.digDown() |
8 | - | end |
8 | + | end |
9 | - | end |
9 | + | end |
10 | - | turtle.forward() |
10 | + | turtle.forward() |
11 | - | if y % 2 == 0 then |
11 | + | if y % 2 == 0 then |
12 | - | turtle.turnRight() |
12 | + | turtle.turnRight() |
13 | - | turtle.forward() |
13 | + | turtle.forward() |
14 | - | turtle.turnRight() |
14 | + | turtle.turnRight() |
15 | - | else |
15 | + | else |
16 | - | turtle.turnLeft() |
16 | + | turtle.turnLeft() |
17 | - | turtle.forward() |
17 | + | turtle.forward() |
18 | - | turtle.turnLeft() |
18 | + | turtle.turnLeft() |
19 | - | end |
19 | + | end |
20 | end |