Puzzler is a small program which has somewhat unexpected behaviour and can help you learn about programming language idiosyncrasies.
These puzzlers were inspired by the Java Puzzlers book
and originally prepared for Kotlin London User Group meetup.
You can find slides for the presentation here on dropbox
(not part of the repository because Keynote file is too big) and an outline for the slides in
If you're interested, there is a larger collection of puzzlers in Anton Keks kotlin-puzzlers repo.
How to use this repo?
There are two options:
kotlin-puzzlers.keyslides in Keynote app and look at them sequentially;
- look at files in
puzzlersdirectory (preferably don't open them in IDE because it might highlight some of the issues with the code). Guess the correct answer, then copy and paste code into IDE and run it to find actual answer or look up answer in