pxt-calliope/docs/examples/turtle-square.md
2017-12-08 14:56:39 -08:00

18 lines
274 B
Markdown

# Turtle Square
A turtle program that runs in a square.
```blocks
turtle.setPosition(0, 0)
turtle.turnRight()
turtle.setSpeed(29)
basic.forever(() => {
turtle.forward(4)
turtle.turnRight()
})
```
```package
microturtle=github:Microsoft/pxt-microturtle#master
```