A simple implementation of a State Machine
Execute the script run.sh
You should have Kotlin CLI installed and added in your path
You can install Kotlin CLI using Homebrew.
Just execute the following command: brew install kotlin
A easy way to install Kotlin CLI on UNIX based systems is using SDKMAN
Execute the following commands in your terminal:
curl -s get.sdkman.io | bash
- Reload your terminal
- Install Kotlin with:
sdk install kotlin
On Windows don't exist a easy way. You should make installation manually.
Perfom the following steps to install Kotlin CLI:
- Download the Kotlin compiler zip
- Unzip the standalone compiler into a directory and optionally add the
bin
directory to the system path - Reload your CMD and then be happy 😄