Playing a bit with developing little language learning games in #Racket. It turns out refreshingly easy to do these simple GUIs, and the bundled smiley faces in pict/face make it even simpler:)
I don't yet understand though how to manage state in GUIs without imperatively mutating variables. Ideally I would use something like a Python generator or #SuperCollider Task to store and advance the current challenge, but I'm too new to Racket to figure out how to do it. Any hints?
Okay, moved the state to a closure, that resembles a generator, but can also return its last state multiple times until asked to move to the next element explicitly.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!