Examples

Below is a gallery of StateMachine examples.

Looping state machine

Looping state machine

Async without external loop

Async without external loop

Weighted idle animation machine

Weighted idle animation machine

Traffic light machine

Traffic light machine

Enum campaign machine

Enum campaign machine

Order control machine

Order control machine

Reusing transitions

Reusing transitions

Air Conditioner machine

Air Conditioner machine

Compound states – Quest through Middle-earth

Compound states -- Quest through Middle-earth

Eventless (automatic) transitions – The One Ring’s Corruption

Eventless (automatic) transitions -- The One Ring's Corruption

Error handling – Quest Recovery

Error handling -- Quest Recovery

Cleanup / finalize pattern

Cleanup / finalize pattern

Parallel states – War of the Ring

Parallel states -- War of the Ring

Persistent domain model

Persistent domain model

Order control machine (rich model)

Order control machine (rich model)

Guess the number machine

Guess the number machine

In() guard condition – Fellowship Coordination

In() guard condition -- Fellowship Coordination

History states – Gollum’s dual personality

History states -- Gollum's dual personality

User workflow machine

User workflow machine

Lord of the Rings Quest - Boolean algebra

Lord of the Rings Quest - Boolean algebra

Supervised task – Beacons of Gondor

Supervised task -- Beacons of Gondor

Async guess the number machine

Async guess the number machine

All actions machine

All actions machine

AI Shell – coding assistant

AI Shell -- coding assistant