Package-level declarations
Overview
Screen for creating a new game with player configuration options.
Components
NewGamePage— New game creation page composableNewGameViewModel— State management for game creation
Responsibilities
Configuring game parameters (player names, types, board size)
Validating game creation inputs
Initiating new game sessions
Types
UI state for the new game screen.
ViewModel that builds local or remote games based on user inputs. Validates piece selection, triggers game creation, and exposes UI state/errors.
Functions
New game page for creating a local game with piece selection. Allows the user to choose their piece color and start a new game.
Shared UI for new game page with piece selection and game initiation. Provides input fields for game name, player name, board size, and a dropdown menu for piece selection.