■ ASCII State Machine

What it does

A small ASCII creature lives here. It has moods. It responds to what you do — press keys, tap, leave it alone. It remembers how you left things last time you visited, using localStorage.

What it demonstrates

State machines — the fundamental computing idea that a system can be in one of several defined states, with transitions triggered by input. This one just happens to have a face.

How to interact

  • Keyboard: Press arrow keys to poke it, spacebar to pet it, f to feed it, s to scare it
  • Touch: Tap the character to poke, swipe right to pet, swipe left to scare, swipe up to feed
  • Wait: Leave it alone and watch what happens
experiment ascii interaction