A Tour of Kestrel
Three short programs that build up a feel for the language. Each is follow-along — you copy, run, and see output before moving on. Each adds one new idea per step. ~80-120 lines final.
Tours
- Text Adventure — rooms, exits, items. Covers structs, enums with payloads, dictionaries, Optional.
- Wizard Duel — two wizards trade spells. Covers enums with payloads, mutating methods, pattern matching.
- Turtle Graphics — drive a turtle around an ASCII grid. Covers enums as data, interpreters, protocols.
Read them in order. Each one's mental model carries forward, but every tour stands on its own.