robot debug 2
This commit is contained in:
parent
d15b1cbc51
commit
aa75bd313e
@ -15,8 +15,8 @@ return function(gate, argv)
|
||||
for a in rest:gmatch("[^ ]+") do table.insert(vec, tonumber(a) or error("invalid number "..a)) end
|
||||
if first=="P" then -- set position
|
||||
assert(#vec==4, "invalid position given to robot: "..word)
|
||||
brick.robotpos = {vec[1], vec[2], vec[3]}
|
||||
brick.robotdir = vec[4]
|
||||
gate.robotpos = {vec[1], vec[2], vec[3]}
|
||||
gate.robotdir = vec[4]
|
||||
elseif first=="B" then -- detected brick info
|
||||
assert(#vec==7, "invalid brick info given to robot: "..word)
|
||||
gate.brickexists = vec[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user