How to handle updating elements of (nested) lists in UiState
I am trying to build an over-the-board Go app to help myself learn Jetpack Compose. I have my game logic in a custom class, separate from the the UI, with a 2D array to represent the board:
@Stable
@Immutable
data class GameState (
val boardSize: Int = 19,
val moveStack: ArrayDeque = ArrayDeque(),
val board: List = buildList {
for (row in 0 until boardSize) {
add(buildList {
for (col in 0 until...