Introduction to Alice

Our First Alice Program
Chapter 1
Getting Started with Alice
A user story is a description of what your Alice program is supposed to accomplish. Use the
user story and algorithm to complete your Alice assignments. The user story provides
several important pieces of information, including:




A basic description of what happens when the user runs the program.
The nouns in the story correspond to the objects we need to place in the
Alice world.
The verbs in the story correspond to the actions we want the objects to
perform in the story.
The chronological flow of actions in the story tells us what has to happen
first, what happens next, what happens after that, and so on. The flow
describes the sequence of actions that take place in the story.
Let’s take a look at a user story that will define our first working program.
User Story
When the program begins, Marlin is next to a cave with Dori in the upper-left part of the
screen. Dori sees Marlin and turns toward him. Dori swims to Marlin while
simultaneously saying, “Excuse me sir, are you ok?” Marlin turns towards Dori and then
replies by saying, “He’s gone!” Dori answers by telling Marlin, “It’s alright.” Marlin states,
“No, no, they took him on a boat!” Dori tells Marlin, “A boat! I’ve seen a boat! I’ll take you
to it!” Then Dori swims off camera. Marlin turns to face Dori and then follows.
Computer Programming With Alice
Algorithm
Computer Programming With Alice