Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
823 B
9
Indexable
Never
#map:forest.map
repeat(6)
{
forward(5)
right
forward(8)
right
forward(4)
left
repeatwhile(frontisclear)
{
forward}
repeatwhile(leftisbeacon)
{
    left
    pickup
    right
    left(2)
    forward}
repeatwhile(rightisbeacon)
{
    right
    pickup
    left
    left(2)
    forward
    }
repeatwhile(frontisbeacon)
{
    pickup
    left(2)
    forward
    } 
repeatwhile(frontisclear)
{
forward
}
right
forward(4)
left
repeatwhile(frontisclear)
{
forward
}
right
forward(2)
left
forward(8)
left
forward(3)
right 
repeatwhile(frontisclear)
{
forward
}
backward
putdown
left(2)
forward(2)
repeatwhile(leftisobstacle)
{
forward
}
left
forward(3)
right
repeatwhile(frontisclear){
    forward
    }
right
repeatwhile(frontisclear){
    forward
}
left(2)
}