Skip to content

Instantly share code, notes, and snippets.

@ferrata
Last active August 5, 2024 14:25
Show Gist options
  • Save ferrata/abe0650bf67c3bdf104ed647f823606b to your computer and use it in GitHub Desktop.
Save ferrata/abe0650bf67c3bdf104ed647f823606b to your computer and use it in GitHub Desktop.
stateDiagram-v2
    state "wake up" as wakeUp 
    state "make ☕" as make
    state "drink ☕" as drink
    state outOfCoffee <<choice>>

    [*] --> wakeUp
    wakeUp --> check
    check --> outOfCoffee: out of coffee?
    outOfCoffee --> buy: yep
    outOfCoffee --> make: still have some
    buy --> make
    make --> drink
    drink --> work
    work --> sleep
    work --> check
    sleep --> [*]
Loading
@joshuawootonn
Copy link

@fikrikarim
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment