pub async fn start_next_round(
server_state: ServerState,
user_id: UserId,
game_id: GameId,
) -> Result<(), ServerError>Expand description
Acknowledges the crib score and goes on start the next deal / discarding round if both players have acknowledged.
§Parameters
server_state: The shared server state containing the game and database.user_id: The ID of the user starting the next round.game_id: The ID of the game to advance.
§Returns
Returns Ok(()) if the next round was successfully started.
Returns a ServerError if the action is forbidden, the game is not found,
or another internal error occurs.