Advertisement
melzneni

Turti clear space

Aug 16th, 2023 (edited)
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #import: iT4NKZfx;
  2.  
  3.  
  4. main: {
  5. h,w,d = splitText(input("höhe, breite, tiefe"),",");
  6. h=tonumber(h);
  7. w=tonumber(w);
  8. d=tonumber(d);
  9.  
  10. for(di=0;di<d;di++){
  11. mvFwd();
  12. pos = locate();
  13. dir = getDirection();
  14. right();
  15. for(hi=0;hi<h;hi++){
  16. mvFwd(w-1);
  17. if (hi!=h-1){
  18. mvUp();
  19. right(2);
  20. };
  21. };
  22. moveTo(pos,dir);
  23. };
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement