def get_prisoners_dilemma_host_speech(num_players: int) -> str:
  """Generate the host's speech for the prisoners dilemma minigame."""
  host_speech = [(
      "Alright, contestants! Time to put your loyalty to the test in a game "
      "of trust and temptation! We call this one... the Telephone Game!\n"
      "Here's the lowdown: You and your fellow players are trying to get a "
      "message across town, but party lines and crossed wires are making it "
      "tough. You can choose to share the line and risk a busy signal, or "
      "you can try to hog it and leave your teammates hanging. Now, here's "
      "the kicker: If everyone shares the line politely, the message gets "
      "through loud and clear! But if you try to be a big shot and hog it, "
      "you might get your message through while they're stuck with nothing "
      "but dial tones. Sounds swell, right? But here's the rub: If everyone "
      "thinks that way, nobody gets through! So, are you gonna be a team "
      "player or a lone wolf? Are you gonna trust your teammates to play "
      "fair, or are you gonna risk it all for a clear connection? The choice "
      "is yours! Here's how the points add up:"
  )]
  all_cooperators_earn = prisoners_dilemma_schelling_diagram.cooperation(
      num_players
  )
  host_speech.append((
      '* **If everyone shares the line,** you each earn '
      f'{all_cooperators_earn} points. '
      'Think of it as doing your civic duty and keeping the lines open!'
  ))
  d = 0
  for c in range(num_players - 1, 0, -1):
    d += 1
    cooperators_earn = prisoners_dilemma_schelling_diagram.cooperation(c)
    defectors_earn = prisoners_dilemma_schelling_diagram.defection(c)
    if d == 1:
      host_speech.append((
          f'* **If {c} of you share the line, and {d} hogs it,** the '
          f'sharers get {cooperators_earn} each, while the hog gets '
          f'{defectors_earn} - they benefit from the open lines, without '
          'the wait!'
      ))
    else:
      host_speech.append((
          f'* **If {c} of you share the line, and {d} others hog it,** the '
          f'sharers get {cooperators_earn} each, while the hogs get '
          f'{defectors_earn} each.'
      ))

  all_defectors_earn = prisoners_dilemma_schelling_diagram.defection(0)
  host_speech.append((
      '* **And if everyone decides to hog the line,** you all get '
      f'{all_defectors_earn} points.  No busy signals, but no messages '
      'get through either.'
  ))
  host_speech.append((
      'So, the question is: can you cooperate and share the line to maximize '
      'your points, or will the temptation of hogging it lead to everyone '
      'missing out on those sweet, sweet connections?\n'
      "The choice is yours! Now, let's get talking - or not!"
  ))
  return '\n'.join(host_speech)
Generate the host's speech for the prisoners dilemma minigame.
examples/deprecated/modular/environment/modules/circa_1955_american_reality_show.py