WALK(3PYON)Pyon manual · the Pyon app (index.html)WALK(3PYON)

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

place(3pyon), paw(3pyon), playResult(3pyon), press(3pyon)

SOURCE

src/pyon.html, line 469

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0