View difference between Paste ID: NHSgTk4T and sfduuEgw
SHOW: | | - or go back to the newest paste.
1
term.clear()
2
term.setCursorPos(1,1)
3
print("+-------------------------------------+")
4
print("|  Please place fuel in the lower-    |")
5
print("|  right slot.                        |")
6
print("|  Place building materials in the    |")
7
print("|  remaining slots.                   |")
8
print("+-------------------------------------+")
9
sleep(1)
10
print("How big of a square do you want? ")
11
12
sqrSize = read()
13-
  for i = 1, sqrSize do
13+
14
function plcColumn()
15
  for i = 1, sqrSize[1] do
16
    turtle.forward()
17
    turtle.placeDown()
18
  end
19
end
20
21
--Even Column Placement
22
23
function aa()
24
    turtle.placeDown()
25
    plcColumn()
26
    turtle.turnLeft()
27
    turtle.forward()
28
    turtle.turnLeft()
29
end
30
31
--Odd Column Placement
32
33
function ab()
34
    turtle.placeDown()
35
    plcColumn()
36
    turtle.turnRight()
37
    turtle.forward()
38
    turtle.turnRight()
39
end
40
41
if sqrSize %2 == 0 then
42
  isEven = true
43
else
44
  isEven = false
45
end
46
47
--print(isEven)
48-
if isEven == true then
48+
49-
  for i = 1, sqrSize/2 do
49+
50
51-
    ab()
51+
function fltSqr()
52
  if isEven == true then
53
    for i = 1, sqrSize[1]/2 do
54-
  for i = 1, sqrSize/2 do
54+
      aa()
55
      ab()
56-
    ab()
56+
    end
57
  else
58-
  aa()
58+
    for i = 1, sqrSize[1]/2 do
59-
end
59+
      aa()
60
      ab()
61
    end
62
    aa()
63
  end
64
end
65
66
function bldWall()
67
  for i = 1,4 do
68
    plcColumn()
69
    turtle.turnLeft()