Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
2.4 kB
14
Indexable
Never
#map:forest.map
repeat(6)
{
repeat(5){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }           
}
right
repeat(8){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
right
repeat(4){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
left
repeatwhile(frontisclear)
{
repeat(1){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         }
repeatwhile(leftisbeacon)
{
    left
    pickup
    right
    left(2)
    repeat(1){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
    repeat(1){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         }
repeatwhile(rightisbeacon)
{
    right
    pickup
    left
    left(2)
    forward
    }
repeatwhile(frontisbeacon)
{
    pickup
    left(2)
    forward
    } 
repeatwhile(frontisclear)
{
repeat(1)
{ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
}
right
forward(4)
left
repeatwhile(frontisclear)
{
repeat(1){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
}
right
repeat(2){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
left
repeat(8){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
left
repeat(3){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
right 
repeatwhile(frontisclear)
{
repeat(1){ 
paintblack
forward
backward
stoppainting
    repeat(1){
    paintwhite
    stoppainting
    forward
    }  
}         
}
backward
putdown
left(2)
forward(2)
repeatwhile(leftisobstacle)
{
forward
}
left
forward(3)
right
repeatwhile(frontisclear){
    forward
    }
right
repeatwhile(frontisclear){
    forward
}
left(2)
}