Skip to content

Instantly share code, notes, and snippets.

@nicopaez
Created August 7, 2016 00:50
Show Gist options
  • Save nicopaez/b6d2dd39e99012d0d807e634311aa4b9 to your computer and use it in GitHub Desktop.
Save nicopaez/b6d2dd39e99012d0d807e634311aa4b9 to your computer and use it in GitHub Desktop.
state-machine-kata.md

State Machine Kata

A machine can take different 3 different states: off, on and working. The transitions between states are restricted in a sequencial way:

  • state-off > when-turn-on > state-on
  • state-on > when-start > state-working
  • state-working > when-work-done > state-on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment