View difference between Paste ID: kpt9YfSj and 1239uQvd
SHOW: | | - or go back to the newest paste.
1
--black1
2
--red2
3
--wite3
4
--empty4
5
6-
colors1={4,4,4,4,1,1,1,4,4}
6+
art={{4,4,4,4,1,1,1,4,4},
7-
colors2={4,4,4,1,2,2,2,1,4}
7+
{4,4,4,1,2,2,2,1,4},
8-
colors3={4,4,1,2,3,3,2,2,1}
8+
{4,4,1,2,3,3,2,2,1},
9-
colors4={4,1,2,2,2,2,2,2,1}
9+
{4,1,2,2,2,2,2,2,1},
10-
colors5={1,2,2,2,2,2,2,1,4}
10+
{1,2,2,2,2,2,2,1,4},
11-
colors6={4,1,2,2,2,2,2,2,1}
11+
{4,1,2,2,2,2,2,2,1},
12-
colors7={4,4,1,2,2,2,2,2,1}
12+
{4,4,1,2,2,2,2,2,1},
13-
colors8={4,4,4,1,2,2,2,1,4}
13+
{4,4,4,1,2,2,2,1,4},
14-
colors9={4,4,4,4,1,1,1,4,4}
14+
{4,4,4,4,1,1,1,4,4}
15
  }
16
17
function buildLine (colors)
18
	for i = 1,#colors do
19-
 		turtle.select(slot)
19+
20-
   	 	turtle.placeDown()
20+
        if slot~=0 then
21
 		  turtle.select(slot)
22
   	 	  turtle.placeDown()
23
        end
24
 		turtle.forward()
25
	end
26
	turtle.turnRight()
27
	turtle.forward()
28
	turtle.turnLeft()
29
	for e = 1,#colors do
30-
buildLine (colors1)
30+
31-
buildLine (colors2)
31+
32-
buildLine (colors3)
32+
33-
buildLine (colors4)
33+
34-
buildLine (colors5)
34+
for i=1,#art do
35-
buildLine (colors6)
35+
 d=art[i]
36-
buildLine (colors7)
36+
 buildLine(d)
37-
buildLine (colors8)
37+
38-
buildLine (colors9)
38+
39
40