void repairTheStreet(){ repeat(9){ turnRight(); if(frontIsClear()){ moveForward(); dropBeeper(); turnAround(); moveForward(); turnRight(); moveForward(); } else{ turnLeft(); moveForward(); } } turnRight(); if(frontIsClear()){ moveForward(); dropBeeper(); turnAround(); moveForward(); turnRight(); } 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