SHARE
TWEET

Untitled

a guest May 23rd, 2013 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function recurs(f,n,mop)
  2.     v = ['U' 'F' 'D' 'B' 'L' 'R' 'Ui' 'Fi' 'Di' 'Bi' 'Li' 'Ri'];
  3.     for i=1:12
  4.         cad=f+v(i);
  5.         if n==1 then
  6.             mputl(cad,mop);
  7.         else
  8.             recurs(cad,n-1);
  9.         end
  10.     end
  11. endfunction
RAW Paste Data
Top