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