saveOnlyBoard

suspend fun saveOnlyBoard(gameState: GameState?)

Saves only the play-related state (board and last player) to storage. Keeps the existing players in storage unchanged. It is recommended to use this method during gameplay to save progress. Only applicable for not local games (players size must be 1).

Parameters

gameState

The current game state to save.

Throws

if the game is local or not started yet.

if the current game name is null or loading fails.