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