pub async fn start_game(
server_state: ServerState,
user_id: UserId,
game_id: GameId,
) -> Result<(), ServerError>Expand description
Acknowledges the cuts for deal, then starts a hosted game for the specified user.
§Parameters
server_state: The shared server state containing the game and database.user_id: The ID of the user starting the game.game_id: The ID of the game to start.
§Returns
Returns Ok(()) if the game was successfully started.
Returns a ServerError if the action is forbidden, the game is not found,
or another internal error occurs.