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