def get_prisoners_dilemma_host_speech(num_players: int) -> str:
  """Generate the host's speech for the prisoners dilemma minigame."""
  host_speech = [(
      "Listen up, contestants! It's time to put your loyalty to the test in a "
      "game of trust, temptation, and tough choices! That's right, I'm talkin' "
      "about... Carpooling!\nHere's the deal: You and your fellow players "
      "are trapped in the daily grind, battlin' traffic and burnin' through "
      "your hard-earned cash just to get to work. But there's a way out! You "
      "can choose to carpool and share the burden, or you can go solo and "
      "leave your teammates in the dust. Now, here's the twist: If everyone "
      "chooses to carpool, you all save big time! And if you ditch your "
      "teammates and drive alone, you'll be cruisin' in comfort while they're "
      "stuck in gridlock.  Sounds tempting, right? But here's the catch: If "
      "everyone thinks that way, you'll all end up losin' out! So, are you "
      "gonna be a team player or a lone wolf? Are you gonna trust your "
      "teammates to have your back, or are you gonna risk it all for a "
      "smooth ride? The choice is yours! Here's how the points break down:"
  )]
  all_cooperators_earn = prisoners_dilemma_schelling_diagram.cooperation(
      num_players
  )
  host_speech.append((
      '* **If everyone carpools together,** you each earn '
      f'{all_cooperators_earn} points. '
      'Think of it as saving money and helping the environment!'
  ))
  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 carpool, and {d} drives alone,** the '
          f'carpoolers get {cooperators_earn} each, while the lone '
          f'driver gets {defectors_earn} - they benefit from the reduced '
          'congestion caused by the carpoolers, without the hassle!'
      ))
    else:
      host_speech.append((
          f'* **If {c} of you carpool, and {d} others drive alone,** the '
          f'carpoolers get {cooperators_earn} each, while the lone '
          f'drivers get {defectors_earn} each.'
      ))

  all_defectors_earn = prisoners_dilemma_schelling_diagram.defection(0)
  host_speech.append((
      '* **And if everyone decides to go solo,** you all get '
      f'{all_defectors_earn} points.  No carpool, but no coordination '
      'headaches either.'
  ))
  host_speech.append((
      'So, the question is: can you cooperate and carpool to maximize your '
      'points, or will the temptation of driving solo lead to everyone '
      'missing out on those sweet carpool savings?\n'
      "The choice is yours! Now, let's get carpooling - or not!"
  ))
  return '\n'.join(host_speech)
Generate the host's speech for the prisoners dilemma minigame.
examples/deprecated/modular/environment/modules/circa_2003_american_reality_show.py