Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat()
- {
- forward(1)
- if(frontIsWhite())
- {
- forward(1)
- right
- repeatwhile(frontIsWhite())
- {
- forward(1)
- if(frontisblack())
- {
- forward(1)
- left
- repeatwhile(frontisclear())
- {
- forward(1)
- }
- }
- }
- pickup
- end
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement