Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- function start(){
- findHole();
- }
- function findHole(){
- while (rightIsBlocked()){
- move();
- move();
- move();
- move();
- turnLeft();
- }
- if (rightIsClear()){
- turnRight();
- move();
- }
- }
RAW Paste Data