Important
|
make sure to have kotlinc on your $PATH |
-
Without any command line arguments
$ kotlinc -script strategy.kts 200 java.lang.IllegalArgumentException: Invalid speed at Strategy.<init>(strategy.kts:9)
-
Slow pace town building
kotlinc -script strategy.kts slow Building at slow pace... Town built in 3000 milliseconds!
-
Medium pace town building
kotlinc -script strategy.kts medium Building at medium pace... Town built in 1500 milliseconds!
-
Fast pace town building
kotlinc -script strategy.kts fast Building at fast pace... Town built in 50 milliseconds!