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 100
Move 100 steps in the current heading.
back 50bk 50
Move backward 50 steps.
left 90lt 90
Turn left by 90 degrees.
right 45rt 45
Turn right by 45 degrees.
home
Return to the origin and face north.
setpos 100 200?
Jump directly to x=100, y=200.
setx 150sety 100
Change only one coordinate.
setheading 90seth 90?
Face an exact compass direction.

Pen Control

penuppu
Move without drawing a line.
pendownpd
Start drawing again.
pensize 3
Set 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 100
Store 100 in variable :x.
to square :sizesquare 50
Define and call your own command.
to square :size
  repeat 4 [forward :size right 90]
end

Queries

xcorycor
Current turtle coordinates.
heading
Current direction in degrees.
distance x y
Distance from the turtle to a point.
towards x y
Heading needed to face a point.

Output