Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main(){
- putBeeper();
- putBeeperLine();
- goBack();
- turnRight();
- putBeeperLine();
- turnRight();
- move();
- }
- function putBeeperLine(){
- while (frontIsClear()) {
- move();
- move();
- putBeeper();
- }
- }
- function goBack(){
- turnLeft();
- turnLeft();
- while (frontIsClear()){
- move();
- }
- }
- function turnRight(){
- turnLeft();
- turnLeft();
- turnLeft();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement