SHOW:
|
|
- or go back to the newest paste.
| 1 | function iff (x,y) | |
| 2 | if a[x][y]==1 then | |
| 3 | turtle.select(1) | |
| 4 | if a[x][y]==2 then | |
| 5 | turtle.select(2) | |
| 6 | if a[x][y]==3 then | |
| 7 | turtle.select(3) | |
| 8 | if a[x][y]==4 then | |
| 9 | turtle.select(4) | |
| 10 | if a[x][y]==5 then | |
| 11 | turtle.select(5) | |
| 12 | if a[x][y]==6 then | |
| 13 | turtle.select(6) | |
| 14 | end | |
| 15 | end | |
| 16 | a={ {1,1,1,2,2,2,2,2,1,1,1}
| |
| 17 | {2,2,2,2,2,2,2,2,2,2,2}
| |
| 18 | {1,1,2,1,2,2,2,2,1,1,1}
| |
| 19 | {1,1,1,2,2,2,2,2,1,1,1}
| |
| 20 | {1,2,4,4,5,5,5,4,4,2,2}
| |
| 21 | {1,2,4,4,5,5,5,4,4,2,1}
| |
| 22 | {1,1,1,4,4,5,4,4,1,6,1}
| |
| 23 | {1,1,1,4,4,4,4,4,1,6,1}
| |
| 24 | {1,1,1,2,2,1,2,2,1,6,1}
| |
| 25 | ||
| 26 | ||
| 27 | turtle.up() | |
| 28 | for x=1,2 do | |
| 29 | for y = 1,11 do | |
| 30 | ||
| 31 | iff(x,y) | |
| 32 | turtle.placeDown() | |
| 33 | turtle.forward() | |
| 34 | end | |
| 35 | turtle.turnRight() | |
| 36 | turtle.forward() | |
| 37 | turtle.turnRight() | |
| 38 | turtle.forward() | |
| 39 | for y = 1,11 do | |
| 40 | ||
| 41 | iff(x,y) | |
| 42 | turtle.placeDown() | |
| 43 | turtle.forward() | |
| 44 | end | |
| 45 | turtle.turnLeft() | |
| 46 | turtle.forward() | |
| 47 | turtle.turnLeft() | |
| 48 | turtle.forward() | |
| 49 | end |