saveEndGame

suspend fun saveEndGame()

Saves the current game state to storage. Saves the player in storage if not already present (makes available this player for future loads). It is recommended to use this method only to save the game at the end. Only applicable for not local games (players size must be 1).

Throws

if the game is local or not started yet.

if the current game name is null.