opatry / wordle-kt

Wordle game clone made with Kotlin & Compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finalize Mosaic version

opatry opened this issue · comments

  • need to press enter twice to update screen
  • replace println game instructions with Text() Composable
  • determine if Mosaic provides the equivalent of EditText() to replace readLine()
  • #17

Check Robot sample app in Mosaic repo for better user interaction & refresh state management.

https://github.com/JakeWharton/mosaic/tree/trunk/samples/robot

Done in the mosaic branch.
Waiting for Mosaic update to Compose 1.1.0 stable to allow aligning Kotlin version & Compose compiler plugin before merge.

(see discussion in JakeWharton/mosaic/pull/49)

For now, we use jline3 directly in the Game loop (like in the Mosaic's Robot sample app)
It would be nice to achieve this through a Modifier.onKeyEvent like in Android/Desktop which seems to be considered in JakeWharton/mosaic/issues/10