SHOW:
|
|
- or go back to the newest paste.
1 | - | --Min is 3 for H-- |
1 | + | |
2 | - | lengthMax = 50 |
2 | + | |
3 | - | widthMax = 3 |
3 | + | |
4 | - | heightMax = 3 |
4 | + | |
5 | - | orientation = 4 |
5 | + | |
6 | - | --N=4, E=3, S=2, W=1-- |
6 | + | |
7 | - | orientations = {"north", "east", "south", "west"} |
7 | + | |
8 | - | startDirection = orientation |
8 | + | |
9 | hasFuel = true | |
10 | - | xCurrent = 0 |
10 | + | |
11 | - | zCurrent = 0 |
11 | + | |
12 | - | yCurrent = 0 |
12 | + | |
13 | end | |
14 | - | xHome = 0 |
14 | + | |
15 | - | zHome = 0 |
15 | + | |
16 | - | yHome = 0 |
16 | + | |
17 | fuelGoCheck = read() | |
18 | - | xBlackcurrant = 0 |
18 | + | |
19 | - | zBlackcurrant = 0 |
19 | + | |
20 | - | yBlackcurrant = 0 |
20 | + | |
21 | - | orientationLast = orientation |
21 | + | |
22 | fuelSaid = false | |
23 | - | zDiff = {-1, 0, 1, 0} |
23 | + | |
24 | - | xDiff = {0, 1, 0 ,-1} |
24 | + | |
25 | function fuelGo() | |
26 | - | turn = 1 |
26 | + | |
27 | - | turnLast = turn |
27 | + | |
28 | - | lengthCurrent = lengthMax |
28 | + | |
29 | - | placeTorch = 10 |
29 | + | |
30 | - | width = widthMax |
30 | + | |
31 | - | finishWalk = widthMax |
31 | + | |
32 | - | heightCheck = heightMax |
32 | + | |
33 | - | heightMax = heightMax - 3 |
33 | + | |
34 | - | height = heightMax |
34 | + | |
35 | - | ending = false |
35 | + | |
36 | - | kill = false |
36 | + | |
37 | - | said = false |
37 | + | |
38 | print("Once I have Fuel, Type: 'Y'") | |
39 | - | selectedSlot = 16 |
39 | + | |
40 | - | answer = "F" |
40 | + | |
41 | - | facingAnswer = 0 |
41 | + | |
42 | - | torchesGoCheck = "Pickles" |
42 | + | |
43 | - | startUpComplete = false |
43 | + | |
44 | - | saidYes = "Rainbows" |
44 | + | |
45 | print("I need Fuel, Master.") | |
46 | - | hasTorch = false |
46 | + | |
47 | - | lengthSet = 0 |
47 | + | |
48 | - | widthSet = 0 |
48 | + | |
49 | - | heightSet = 0 |
49 | + | |
50 | - | fuelLevel = turtle.getFuelLevel() |
50 | + | |
51 | while true do | |
52 | - | function fillFacing() |
52 | + | fuelCheck() |
53 | - | print("Fill in which way I'm facing: ") |
53 | + | |
54 | - | print("North=4, East=3, South=2, West=1") |
54 | + |