.
This commit is contained in:
parent
a60b4dffd9
commit
fcc88df8d1
@ -10,9 +10,9 @@ z = read()
|
|||||||
write("r (S=0,W=1,N=2,E=3):")
|
write("r (S=0,W=1,N=2,E=3):")
|
||||||
r = read()
|
r = read()
|
||||||
|
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("start x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
for i=1,8 do
|
for i=1,8 do
|
||||||
rand = math.random(3,4)
|
rand = math.random(1,4)
|
||||||
|
|
||||||
if rand == 1 then
|
if rand == 1 then
|
||||||
write("forward ")
|
write("forward ")
|
||||||
@ -31,4 +31,10 @@ for i=1,8 do
|
|||||||
r = tutel.right(r)
|
r = tutel.right(r)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
--print("start x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
|
--write("forward ")
|
||||||
|
--x,y,z,r = tutel.forward(x,y,z,r)
|
||||||
|
--print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
Loading…
Reference in New Issue
Block a user