The Control Center window
The Control Center window lets you communicate with the turtle
to tell it to do things and teach it how to do things. The window
has two page tabs, Turtle and Observer, but we
will only be using the Turtle page in this project. (In fact, your
project file might stop working properly if you make changes on
the Observer page, so make sure to stay on the Turtle page.)
The Turtle page is split into two sections, the Turtle Command
Center in the upper section and Turtle Procedures in the lower
section. You use the Command Center to issue commands to the
turtle; this is where you tell the turtle what to do. In
contrast, the Turtle Procedures section is for teaching the
turtle how to do things. This means that typing in the
Turtle Procedures section does not directly result in turtle
actions; instead, it enables the turtle to understand how to
respond to new commands for running later.
Turtle Command Center (upper section)
You issue a command to the turtle by typing the command in this
section of the window and pressing Enter. Some commands result
in the turtle moving, changing direction, or saying something in
its "turtle message" box. If the turtle has trouble understanding
a command you type, an error message will appear immediately below
the command here in the Turtle Command Center.
The Command Center doesn't erase the commands you type as they
are sent to the turtle. If you want to issue a command multiple
times, rather than typing it over and over, you can use the arrow
keys to move the cursor up to a previously issued command and
press Enter to issue it again. (In fact, you can even edit a past
command by using Backspace or Delete before issuing it. This will
not "undo" the action of the command at is was originally
issued.)
Turtle Procedures (lower section)
This is the section where you'll be typing in your program, in
the form of new procedures for your turtle to run. You'll
discover how to use this section to teach your turtle new commands
in the activities for Units 1 and 2. When you write your
procedure code in this section, make sure to add it at the top, as
the comments say, and do not change the code that's already there.
This code makes things like the turtle direction, step count,
turtle message, and speed slider work properly.
|