NewGamePage

@Composable
fun ReversiScope.NewGamePage(viewModel: NewGameViewModel, playerNameChange: (String) -> Unit, onLeave: () -> Unit)

New game page for creating a local game with piece selection. Allows the user to choose their piece color and start a new game.

Parameters

viewModel

The view model for managing game creation state and logic.

playerNameChange

Callback to update the player name.

onLeave

Callback invoked when the user navigates back.