exercism / kotlin

Exercism exercises in Kotlin.
https://exercism.org/tracks/kotlin
MIT License
214 stars 188 forks source link

Kotlin / Bob / DigDeeper: Add a pattern matching approach using when-expression #629

Closed micha-b closed 3 months ago

micha-b commented 3 months ago

Hey there,

as proposed in the forum here I added a new approach to the Bob exercise on the Kotlin track using a when-expression.

I hope I provided all the files and changes needed for a correctly working version.

I am not quite sure if the entry in the config.json file needs to be done manually (as I did) or if this entry is somehow generated automatically. (I used a randomly generated uuid for the entry.)

Please have a look at the proposed changes and give feedback on the writing and configuration.

Have a nice day! 👋🏼

micha-b commented 3 months ago

I updated the code using your suggestions. You can take a look at the updated code. :)

Sorry for the rather long delay.