Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function start(){
- for (var i = 0; i < 13; i++) {
- if (frontIsBlocked()) {
- jumpHurdle();
- } else {
- move();
- }
- }
- // Write your code here
- }
- function jumpHurdle(){
- turnLeft();
- move();
- turnRight();
- move();
- turnRight();
- move();
- turnLeft();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement