Foo, the Wonder Programmer

Fred behaves according to the finite-state machine theory. There are six possible emotional states. The state is updated once per second.

Click the button to help Fred when state is either "anxiety", "sad", or "discouraged". When "happy", "surprised", or "angry" the state changes randomly; clicking the button will have no effect in these states.

Foo says:

Action:

The programmer's state: Timer: Seconds