Coraline — 119 of 122

Students of Herr Rau (and Herr Rau)

Release 1

Part of the Cat Showing You the Way

To let the cat show the way to (x - a thing):

if the location of the cat is not the location of x:

if the cat is not enclosed by the player:

if a random chance of 2 in 3 succeeds:

let next be the best route from the location of the cat to the location of x, using doors;

if next is a direction:

if the location of the player is the location of the cat:

say "The cat goes [next].";

let r be the room next from the location of the cat;

[say "(The cat is in [r]).";]

if r is the location of the player:

say "The cat comes in.";

move the cat to r;

otherwise:

if the location of the player is the location of the cat:

say "The cat just sits there, grooming itself."

Every turn during Searching the other world:

if the player is not enclosing the blue marble:

if the location of the blue marble is not nowhere:

let the cat show the way to the blue marble;

otherwise:

let the cat show the way to the toy box;

otherwise if the player is not enclosing the green marble:

if the location of the green marble is not nowhere:

let the cat show the way to the green marble;

otherwise:

let the cat show the way to Miss Spink and Miss Forcible;

[otherwise if the player is not enclosing the yellow marble:

if the location of the yellow marble is not nowhere:

if the trapdoor is locked:

let the cat show the way to the floorboards;

otherwise:

let the cat show the way to the yellow marble;

otherwise:

if the trapdoor is locked:

let the cat show the way to the floorboards;

otherwise:

let the cat show the way to the father;]

otherwise if the player is not enclosing the yellow marble:

if the location of the yellow marble is not nowhere:

let the cat show the way to the yellow marble;

otherwise:

let the cat show the way to Mister Bobo;

otherwise if the player is not enclosing the snow globe:

let the cat show the way to the yellow marble;

otherwise:

let the cat show the way to the mother.