void cleanTheRoom(){ repeat(5){ repeat(9){ if(onBeeper()){pickBeeper(); moveForward();} else{moveForward();} } if(onBeeper()){pickBeeper();} turnLeft(); if(frontIsClear()){moveForward(); turnLeft();} repeat(9){ if(onBeeper()){pickBeeper(); moveForward();} else{moveForward();} } if(onBeeper()){pickBeeper();} turnRight(); if(frontIsClear()){moveForward(); turnRight();} } if(frontIsClear()){}else{turnLeft();} }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter