The storyboard for SnoopyBot.
Click on pictures to see full size image.
Snoopy (white circle in the large pictures -some small pictures make it a
black square) ALWAYS starts several spaces to the RIGHT of the doghouse.
ALWAYS starts on the same STREET as the bottom of the doghouse.
The roof is ALWAYS the same length as the ceiling, BUT shifted over one avenue
to the left.
Snoopy goes over to doghouse.
Snoopy moves over into the doghouse.
Snoopy goes to the ceiling of the doghouse and counts how many decorations
are needed for the first wall.
Hint: Snoopy will need
an attribute to keep track of this number.
Goes back out the opening.
Goes over to the box of decorations.
Hint: Snoopy will need an attribute to keep track of
how far over it must move.
Goes into the box and picks up the required number of decorations.
Goes back to doghouse and drops ONE light on each street as moves up to
the ceiling.
Now count number of decorations needed across the ceiling.
Hint: Attribute needed.
Go back out the same opening, over to the box, and picks up the required
number of decorations.
Go back the same way and drop all of the lights, one per avenue.
Go back out the same opening and pick up the
decorations for the other vertical wall (you already know how many you
need.)
Go back in through the same opening, place the
remaining lights and then exit out the OTHER opening.
Go back to the box and pick up FLASHERS for the
ROOF. (You already know how many you need since the roof is the same length
as the ceiling, just shifted over one avenue.)
Go straight across to one space past the other side of the
wall. (Do not go inside the doghouse.)