SHARE
TWEET

Untitled

a guest Nov 12th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function start() {
  2.     //makes karel do memes
  3.     makeTowerIfBlocked();
  4. }
  5. function makeTowerIfBlocked(){
  6.     //Yeet
  7.     makeTower();
  8.     if(frontIsClear()){
  9.         move();
  10.         move();
  11.         makeTower();
  12.     }
  13.     while(frontIsClear()){
  14.         move();
  15.         if(frontIsClear()){
  16.             move();
  17.             makeTower();
  18.         }
  19.     }
  20. }
  21. function makeTower(){
  22.     turnLeft();
  23.     putBall();
  24.     move();
  25.     putBall();
  26.     move();
  27.     putBall();
  28.     turnAround();
  29.     move();
  30.     move();
  31.     turnLeft();
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top