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("+-------------------------------------+")
| |
| 7 | - | sleep(1) |
| 7 | + | sleep(0.5) |
| 8 | print("How big of a square do you want? ")
| |
| 9 | ||
| 10 | sqrSize = read() | |
| 11 | ||
| 12 | - | function plcColumn |
| 12 | + | function plcColumn() |
| 13 | for i = 1, sqrSize do | |
| 14 | turtle.forward() | |
| 15 | turtle.placeDown() | |
| 16 | end | |
| 17 | end | |
| 18 | ||
| 19 | --Even Column Placement | |
| 20 | ||
| 21 | - | function aa |
| 21 | + | function aa() |
| 22 | turtle.placeDown() | |
| 23 | plcColumn() | |
| 24 | turtle.turnLeft() | |
| 25 | turtle.forward() | |
| 26 | turtle.turnLeft() | |
| 27 | end | |
| 28 | ||
| 29 | --Odd Column Placement | |
| 30 | ||
| 31 | - | function ab |
| 31 | + | function ab() |
| 32 | turtle.placeDown() | |
| 33 | plcColumn() | |
| 34 | turtle.turnRight() | |
| 35 | turtle.forward() | |
| 36 | turtle.turnRight() | |
| 37 | end | |
| 38 | ||
| 39 | if sqrSize / 2 == true | |
| 40 | isOdd = false | |
| 41 | else | |
| 42 | isOdd = true | |
| 43 | end | |
| 44 | ||
| 45 | - | print("isOdd") |
| 45 | + | print(isOdd) |