article banner (priority)

Flow Guessing Game!

Are you using Flow? In Kotlin Coroutines, it is the most basic abstraction for representing a stream of data. It is a powerful tool, extremely popular on Android, but also used on the backend to represent streams of data like SSE.
I created a game you can use to test your understanding of Flow. You can find it here.
It is a simple game where you need to predict what will be the result of a short snippet of code that uses Flow. But be careful, you need to be precise, and predict not only what will be printed but also how much time will you need to wait between those prints and before the program ends.
With new levels, you will encounter more and more processing steps. You might have to deal with complex synchronization, cancellation, and exception handling. Definitely, it is not an easy game, but I hope you will enjoy it. Make sure to try Adventure mode, where more complex structures are introduced over time, and where you can meet a friendly wizard to guide you.
This game was made in Compose Multiplatform, and it is released as a website using Wasm. It looks good both on desktop and on mobile. Every level is generated randomly, so you can play it multiple times and still have a different experience.