1.9.5: Marathon Karel, 1.9.6: Take 'em All, 1.9.7: Dizzy Karel, 1.9.8: For Loop Square, 1.9.9: Lots of Hurdles

Code for these lessons:

1.9.5: Marathon Karel

  1. public void run(){
  2.      for(int i = 0; i < 26; i++){
  3.           move();
  4.      }
  5. }

1.9.6: Take 'em All

  1. public void run(){  
  2.      move();
  3.      for(int i = 0; i < 100; i++){
  4.           takeBall();
  5.      }
  6.      move();
  7. }

1.9.7: Dizzy Karel

  1. public void run(){   
  2.      for(int i = 0; i < 32; i++){
  3.           turnLeft();
  4.      }
  5. }

1.9.8: For Loop Square

  1. public void run(){   
  2.      for(int i = 0; i < 4; i++){
  3.           putBall();
  4.           move();
  5.           turnLeft();
  6.      }
  7. }

1.9.9: Lots of Hurdles

  1. public void run(){
  2.      for(int i = 0; i < 5; i++){
  3.           move();
  4.           move();
  5.           turnLeft();
  6.           move();
  7.           turnRight();
  8.           move();
  9.           turnRight();
  10.           move();
  11.           turnLeft();
  12.      }
  13. }


Comments

  1. Anonymous12/9/18 15:15

    loop sqaure doesnt work for me ??

    ReplyDelete
    Replies
    1. No swearing on my Christensen mine craft sever

      Delete
    2. These do not work and it says that the public void is not right and it says unexpected token when I try to put it in another way

      Delete
    3. you dont know how to spell

      Delete
    4. this shiz dont work

      Delete
    5. this is so wrong babe

      Delete
    6. change it from public void to function start()

      Delete
  2. Replies
    1. why dose the dizzy karel not work? unexpected void, what the hell dose that mean.

      Delete
  3. the void run doesnt work

    ReplyDelete
    Replies
    1. Anonymous29/5/19 08:23

      beep

      Delete
    2. REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

      Delete
  4. Anonymous7/2/19 14:00

    that's wild:)

    ReplyDelete
  5. Anonymous7/2/19 14:01

    i like bacon on my fries drizzled in dry semen

    ReplyDelete
  6. for loop square

    function start(){

    putBall();

    turnLeft();

    move();

    putBall();

    turnRight();

    move();

    putBall();

    turnRight();

    move();

    putBall();

    turnRight();

    move();

    turnRight();

    turnRight();

    for(var i = 0; i < 4; i++){

    takeBall();

    putBall();

    }

    }

    ReplyDelete
  7. LOTS OF HURDLES

    function start(){

    for(var i = 0; i < 5; i++){

    move();

    move();

    jumpHurdle();

    }



    }





    function jumpHurdle(){

    turnLeft();

    move();

    turnRight();

    move();

    turnRight();

    move();

    turnLeft();

    }

    ReplyDelete
  8. TAKE EM ALL (thank me later)

    function start(){
    move();
    for(var i = 0; i < 200; i++){
    takeBall();
    }
    move();
    }

    ReplyDelete
  9. i need this do more pls

    ReplyDelete
  10. 1.9.9: Lots of Hurdles

    public class HurdlesKarel extends SuperKarel
    {
    private void start()
    {
    for(int i = 0; i < 5; i++)
    {
    move();
    move();
    jumpHurdle();
    }

    }
    private void jumpHurdle()
    {
    turnLeft();
    move();
    turnRight();
    move();
    turnRight();
    move();
    turnLeft();
    }
    }

    ReplyDelete
  11. Follow me on twitch Twitch.tv/Fugayse

    ReplyDelete

Post a Comment

Popular posts from this blog

1.4.4: Slide Karel, 1.4.5: Fireman Karel

1.5.4: Pancakes, 1.5.5: Mario Karel