Skip to content

Commit 5c90511

Browse files
committed
feat: 🔖 Working Version & cleanup
1 parent 9b896f9 commit 5c90511

File tree

11 files changed

+12
-246
lines changed

11 files changed

+12
-246
lines changed

BLOCKS.md

Lines changed: 0 additions & 108 deletions
This file was deleted.

INVENTORY.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

PERIPHERALS.md

Lines changed: 0 additions & 83 deletions
This file was deleted.

cc/pretty.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
local pretty = {
2+
pretty_print = function (t)
3+
for k, v in pairs(t) do
4+
print(k, v)
5+
end
6+
end
7+
}
8+
return pretty

ccPackage.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ local spath =
44
-- add the path to the package path
55
package.path = spath.."?.lua;"
66
..spath.."inventory/?.lua;"
7+
..spath.."peripherals/?.lua;"
8+
..spath.."defaultBehaviour/?.lua;"
79
..package.path
810
-- require the package of the test suite
911
require(spath.."TestSuite-lib/ccPackage")
File renamed without changes.
File renamed without changes.

geoScanner.lua renamed to peripherals/geoScanner.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function geoScanner:scan(radius)
2121
return self.scanResult
2222
end
2323
local result = {}
24+
assert(self.turtle, "No turtle found, needs to be provided in the constructor via playPeripheralProxy as the third parameter")
2425
local e = self.turtle.emulator
2526
assert(e, "No emulator found")
2627
for positionString, block in pairs(e.blocks) do
File renamed without changes.

0 commit comments

Comments
 (0)