Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import: iT4NKZfx;
- main: {
- h,w,d = splitText(input("höhe, breite, tiefe"),",");
- h=tonumber(h);
- w=tonumber(w);
- d=tonumber(d);
- for(di=0;di<d;di++){
- mvFwd();
- pos = locate();
- dir = getDirection();
- right();
- for(hi=0;hi<h;hi++){
- mvFwd(w-1);
- if (hi!=h-1){
- mvUp();
- right(2);
- };
- };
- moveTo(pos,dir);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement