def __init__(
      self,
      sequence: Sequence[str],
      pre_act_label: str = DEFAULT_NEXT_ACTING_PRE_ACT_LABEL,
  ):
    """Initializes the component.

    Args:
      sequence: Sequence of player names. The game master will select players
        to take turns in this order. The sequence will be cycled through.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.

    Raises:
      ValueError: If the component order is not None and contains duplicate
        components.
    """
    super().__init__()
    self._sequence = sequence

    self._pre_act_label = pre_act_label

    self._currently_active_player_idx = None
Initializes the component.

    Args:
      sequence: Sequence of player names. The game master will select players
        to take turns in this order. The sequence will be cycled through.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.

    Raises:
      ValueError: If the component order is not None and contains duplicate
        components.
    
concordia/components/game_master/next_acting.py