.
This commit is contained in:
parent
45e32306a1
commit
c37fb479da
@ -11,7 +11,7 @@ write("r (S=0,W=1,N=2,E=3):")
|
||||
r = read()
|
||||
|
||||
print("start x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||
for i=1,20 do
|
||||
for i=1,10 do
|
||||
rand = math.random(1,4)
|
||||
|
||||
if rand == 1 then
|
||||
@ -36,7 +36,7 @@ for i=1,20 do
|
||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||
elseif rand == 6 then
|
||||
write("down ")
|
||||
y = tutel.right(y)
|
||||
y = tutel.right(r)
|
||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user