NAME
walk — move a creature one square, or squish it at a wall
SYNOPSIS
walk(c, to, bumped)
DESCRIPTION
When bumped is true the creature stays where it is, says ぷに! and squashes against the wall. Otherwise it glides to the new square in 0.38 s, looking as if it runs, and leaves a paw print there.
PARAMETERS
c: the creature. to: the square it moves to. bumped: true when the move would leave the square.
RETURN VALUE
A promise that settles when it arrives.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
