Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function start(){
- for(var i = 0; i < 4; i++){
- move();
- putBall();
- turnLeft();
- }
- }
- function start(){
- for(var i = 0; i < 5; i++){
- runToHurdle();
- jumpHurdle();
- }
- }
- function runToHurdle(){
- move();
- move();
- }
- function jumpHurdle(){
- turnLeft();
- move();
- turnRight();
- move();
- turnRight();
- move();
- turnLeft();
- }
- function start(){
- if (noBallsPresent()){
- putBall();
- }
- move();
- }
- function start(){
- if (facingSouth()){
- turnLeft();
- }
- if (facingWest()){
- turnAround();
- }
- }
- function start() {
- while (ballsPresent()){
- move();
- }
- }
- function start(){
- while (noBallsPresent()){
- putBall();
- if (frontIsClear()){
- move();
- }
- }
- }
- function start(){
- if (facingSouth()){
- up();
- }
- if (facingWest()){
- up2();
- }
- if (facingEast()){
- turnLeft();
- }
- while (noBallsPresent()){
- putBall();
- if (frontIsClear()){
- move();
- }
- }
- }
- function up(){
- turnRight();
- turnRight();
- }
- function up2(){
- turnRight();
- }
- function start(){
- for (var i=0; i< 13; i++){
- jumpHurdle();
- }
- }
- function jumpHurdle(){
- turnLeft();
- move();
- turnRight();
- move();
- turnRight();
- move();
- turnLeft();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement