Index of commands

To enter a command, simp1y type it in from the keyboard and press enter. Some commands (like forward, right and repeat) require that other information be entered- after the command. There must be a space between the command-and the information, and, between two pieces of information.

Wrong: forward100 (no space)

Correct: forward 100

Back (bk)

Make the turtle wa1k backward so many steps.

bk 200 will make the turtle walk backward 200 steps

clean

Clear all of the lines from the window, but leave the turtle in the same place

clearscreen (cs)

Clear all the lines from the window and move the turtle to the home position

forward (fw)

Make the turtle walk forward so many steps.

fw 200 will make the turtle walk forward 200 steps

hideturtle (ht)

Make the turtle disappear.

Commands 1ike forward and backward will still draw lines.

home

Move the turtle to the home position. Note: if the pen is down, the turtle will draw a home to the home position when this command is given

left (lt)

Turn the turtle to the left by so many degrees.

A quarter turn is 90’, turn around is 180 degrees. left 45 will make the turtle turn 45’ to the left

pendown (pd)

Tell the turtle to start drawing.
When the pen is down the turtle will leave a line behind wherever it goes. The turtle will keep-drawing until it is given a penup command. The pen is down when you start.

penup (pu)

Tell the turtle to stop drawing.

When the pen is up, the turtle can move without leaving a line behind. The pen will stay up unti1 a pendown command is given.

repeat

See Repeat on next page

right (rt)

Turn the turtle to the right by so many degrees. right 45 will make the turtle turn 45’ to the right

right 45 will make the turtle turn 45’ to the right

setheading (seth)

Make the turtle turn to face a certain direction. 0’ is due ’east’, 90’ is due ’north’, etc. Setheading 135 will make the turtle turn so that it is facing ’north west’

0’ is due ’east’, 90’ is due ’north’, etc. Setheading 135 will make the turtle turn so that it is facing ’north west’

showturtle (st)

makes the turtle re-appear, if it was hidden with hideturtle.