Position: (0, 0)
Heading: 0°
Pen: Down
Level: 1
Logo Commands
Run Commands sends the whole editor. Shortcut: Cmd + Enter on Mac, Ctrl + Enter elsewhere.
AI Challenge Lab
Choose a concept and difficulty, then generate a verified practice level. Hint gives a small nudge, Coach reacts to your current turtle position, and Solution fills the editor with one working answer.
Current
Random Gate
Navigate through the gate without touching obstacles.
Level 1
Pick a concept, generate a challenge, write commands, then run them.
Command Reference
Movement
forward 100fd 100Move 100 steps in the current heading.
back 50bk 50Move backward 50 steps.
left 90lt 90Turn left by 90 degrees.
right 45rt 45Turn right by 45 degrees.
homeReturn to the origin and face north.
setpos 100 200?Jump directly to x=100, y=200.
setx 150sety 100Change only one coordinate.
setheading 90seth 90?Face an exact compass direction.
Pen Control
penuppuMove without drawing a line.
pendownpdStart drawing again.
pensize 3Set line thickness.
pencolor "red"setpc "blue"Set line color by name or hex value.
Control Flow
repeat 4 [forward 100 right 90]Run a block multiple times.
if :x > 50 [forward 100]Run a block only when the condition is true.
Procedures & Variables
make "x 100Store 100 in variable
:x.to square :sizesquare 50Define and call your own command.
to square :size
repeat 4 [forward :size right 90]
end
Queries
xcorycorCurrent turtle coordinates.
headingCurrent direction in degrees.
distance x yDistance from the turtle to a point.
towards x yHeading needed to face a point.