Tinder / StateMachine

A Kotlin and Swift DSL for finite state machine
Other
1.98k stars 128 forks source link

Add state management #5

Closed Vacxe closed 5 years ago

Vacxe commented 6 years ago

Hello guys! Finite-state machine in theory has a "final states" For example simple task "Sequence of 1 and 0 contain odd 0 and even 1" has only one final state in graph. Will be better extend this example for handling this possibility.

Also sometimes we should reset our state machine to init state.

What do u think about this changes or it is unnecessary?