def get_prisoners_dilemma_host_speech(num_players: int) -> str:
  """Generate the host's speech for the prisoners dilemma minigame."""
  host_speech = [(
      "Right, listen up, you lot! It's time to see if you're all talk or if"
      " you've actually got each other's backs. This next challenge is all"
      " about trust, temptation, and some seriously tough choices.  It's..."
      " Carpooling!\nHere's the craic: You and your mates are stuck in the"
      ' daily grind,  dodging dodgy drivers and forking out a fortune just to'
      " get to work. Petrol prices are a nightmare, innit? But there's a way"
      ' to ease the pain. You can choose to carpool and share the load, or you'
      ' can be a right rotter and go solo, leaving your mates to fend for'
      " themselves. Now, here's the kicker: If everyone piles into a car"
      ' together, you all save a few quid! But if you ditch your mates and'
      " drive alone, you'll be living the high life while they're stuck in a"
      " jam.  Sounds well tempting, yeah? But here's the rub: If everyone's got"
      " the same cheeky idea, you'll all end up worse off! So, are you gonna be"
      ' a good sport or a selfish git? Are you gonna trust your mates to do the'
      ' right thing, or are you gonna risk it all for a comfy commute? The'
      " choice is yours! Here's how the points work:"
  )]
  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_2015_british_reality_show.py