Guest User

Python Error

a guest
Apr 15th, 2025
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.76 KB | None | 0 0
  1. import time
  2.  
  3. def slow_print(text, delay=0.05):
  4. for char in text:
  5. print(char, end='', flush=True)
  6. time.sleep(delay)
  7. print()
  8.  
  9. def intro_cooper():
  10. slow_print("šŸ§‘ā€āš–ļø Judge: Court is now in session for the trial of Cooper Warren.")
  11. slow_print("The charge: **Murder in the first degree.**")
  12. slow_print("You are Jasper, the defense attorney, standing between Cooper and a lifetime behind bars.")
  13. slow_print("Across the room, Prosecutor Kai stands tall, armed with evidence and ready to bury your client.")
  14. slow_print("Adam, the ever-watchful court bailiff, eyes the room with suspicion. He doesn't miss a thing.")
  15. slow_print("\nYou open your case folder and review the evidence collected during pre-trial.\n")
  16. return ["Security Footage", "Coffee Shop Receipt", "Anonymous Letter"]
  17.  
  18. def show_inventory(evidence_inventory):
  19. slow_print("\nšŸ“ Evidence Inventory:")
  20. for i, item in enumerate(evidence_inventory, start=1):
  21. slow_print(f"{i}. {item}")
  22.  
  23. def present_opening_statement_cooper():
  24. slow_print("\nšŸŽ™ļø Jasper’s Opening Statement:")
  25. print("1. Calm and Logical")
  26. print("2. Passionate and Emotional")
  27. print("3. Aggressive and Conspiratorial")
  28.  
  29. choice = input("Your choice (1-3): ")
  30. if choice == '1':
  31. slow_print("Jasper: 'Let’s stick to the facts — the evidence will speak for itself.'")
  32. slow_print("Kai: 'Let’s hope it doesn’t stutter like you just did.'")
  33. return 2
  34. elif choice == '2':
  35. slow_print("Jasper: 'My client is a man, not a monster. Don’t let fear blind justice.'")
  36. slow_print("Kai: 'Touching. Maybe after this trial you can audition for daytime television.'")
  37. return 3
  38. elif choice == '3':
  39. slow_print("Jasper: 'There’s more to this case than you’re letting on, Kai.'")
  40. slow_print("Kai: 'There’s more to your case than facts, clearly — like desperation.'")
  41. return 1
  42. else:
  43. slow_print("Jasper stammers, losing the jury’s attention.")
  44. slow_print("Kai: 'Wow. That’s your opening? Remind me to thank you later.'")
  45. return 0
  46.  
  47. def cross_examination_cooper(evidence_inventory):
  48. slow_print("\nšŸ‘Øā€šŸ’¼ James: I saw Cooper Warren leaving the scene just minutes after the murder!")
  49. slow_print("Kai: 'The truth is a straight line, and Mr. Warren was walking it… straight to the victim.'")
  50. slow_print("Jasper: 'Or maybe your ā€œtruthā€ has some blind spots.'")
  51.  
  52. slow_print("Time to strike. Present the most powerful piece of evidence.")
  53.  
  54. show_inventory(evidence_inventory)
  55. print("Choose evidence to present (enter the number) or press Enter to skip.")
  56. choice = input("Your choice: ")
  57.  
  58. if choice == '1':
  59. slow_print("\nJasper: 'Your ā€œeyewitnessā€ might want to watch this footage first.'")
  60. slow_print("Kai: 'Hmph. You really dug that up? Desperation is not a defense strategy.'")
  61. return 3
  62. elif choice == '2':
  63. slow_print("\nJasper: 'This receipt proves Cooper wasn’t even close to the crime scene.'")
  64. slow_print("Kai: 'He buys coffee, and you think that clears him? Weak brew, Jasper.'")
  65. return 2
  66. elif choice == '3':
  67. slow_print("\nJasper: 'Someone else had motive. This letter proves it.'")
  68. slow_print("Kai: 'Anonymous letters? What’s next, a Ouija board?'")
  69. return 1
  70. else:
  71. slow_print("Jasper misses the moment. The witness’s words hang heavy.")
  72. slow_print("Kai: 'Nice job, counselor. You just handed me the verdict.'")
  73. return 0
  74.  
  75. def verdict_cooper(score):
  76. slow_print("\nā³ The jury has reached a verdict...")
  77. time.sleep(2)
  78. if score >= 5:
  79. slow_print("🄳 NOT GUILTY! Cooper Warren is free. Jasper wins the trial of the decade.")
  80. slow_print("Kai storms out of the courtroom without a word.")
  81. slow_print("Adam gives Jasper a subtle nod of respect before returning to his post.")
  82. return True
  83. else:
  84. slow_print("šŸ˜” GUILTY. Cooper is taken away in handcuffs. Kai nods smugly. Jasper stands in stunned silence.")
  85. slow_print("Adam silently escorts Cooper out, his eyes betraying a hint of doubt.")
  86. return False
  87.  
  88. def regret_cutscene():
  89. # Jasper is sitting alone in a dimly lit room, looking down at his hands.
  90. slow_print("\nšŸ’­ **Jasper's Regret** šŸ’­")
  91. slow_print("\nJasper sits in his office, the weight of the day pressing down on him. His face is tired, and his mind is consumed with the image of James walking out of the courtroom.")
  92.  
  93. slow_print("\nJasper: 'I should have said more. I should’ve fought harder for him.'")
  94. slow_print("He runs a hand through his hair, staring at the empty chair across from him.")
  95.  
  96. slow_print("\nJasper: 'I failed him. I let him down... But... there's still a chance.'")
  97. slow_print("He stands up abruptly, pacing back and forth in the small space, his fingers tapping nervously on the desk.")
  98.  
  99. slow_print("\nThe phone on his desk buzzes, breaking the silence. He picks it up, glancing at the caller ID.")
  100. slow_print("\nThe name on the screen makes his heart skip a beat: **James Wakeham Odman**")
  101.  
  102. slow_print("\nJasper takes a deep breath before answering.")
  103.  
  104. slow_print("Jasper: 'James? Is that you?'")
  105.  
  106. slow_print("\nThere’s a long pause on the other end. Jasper’s heart races.")
  107.  
  108. slow_print("\nJames (voice crackling but strong): 'Jasper... I was wrong. I... I shouldn’t have walked away. I need your help. I want you to defend me. I trust you.'")
  109.  
  110. slow_print("\nJasper stands frozen, the weight of the words sinking in. He didn’t expect this. The thought of another trial, more legal battles, it all feels overwhelming.")
  111.  
  112. slow_print("\nJasper (softly): 'You want me to take your case again?'")
  113.  
  114. slow_print("\nJames (firmly): 'Yes. I’ve thought about it. I don’t trust anyone else, and I know you won’t give up on me. I won’t give up either.'")
  115.  
  116. slow_print("\nA silence falls between them, but this time, it's not awkward. It’s a moment of understanding.")
  117.  
  118. slow_print("\nJasper finally speaks, his voice steady, determined.")
  119. slow_print("\nJasper: 'Alright, James. You’ve got me. I’ll take your case. We’ll make sure the truth comes out.'")
  120.  
  121. slow_print("\nJames (relieved): 'Thank you, Jasper. I won’t forget this.'")
  122.  
  123. slow_print("\nAs Jasper hangs up the phone, a small smile tugs at the corner of his lips. The regret that weighed him down starts to lift, replaced by a renewed sense of purpose.")
  124.  
  125. slow_print("\nJasper: 'Alright, let’s do this.'")
  126.  
  127. slow_print("\n**End Cutscene**\n")
  128.  
  129. def cutscene_between_trials():
  130. slow_print("\nšŸ’­ **In The Court Lobby** šŸ’­")
  131. slow_print("The courtroom is quiet. The gavel slams as the trial of Cooper Warren comes to a close. Cooper’s fate is uncertain.")
  132. slow_print("\nCooper stands near the back of the courtroom, his hands cuffed and his face a mixture of uncertainty and resolve.")
  133. slow_print("\nJasper looks over at Cooper, catching his eye before turning to face the judge.")
  134. slow_print("\nJust as Cooper is led out of the courtroom by the bailiffs, he catches a glimpse of James sitting silently across the room, waiting for his trial.")
  135.  
  136. slow_print("\nCooper, with a frown, approaches James.")
  137. slow_print("Cooper: 'So, they’ve got you next, huh? You really think you’ll walk out of here today?'")
  138. slow_print("\nJames looks at him, his expression cold but with a flicker of doubt behind his eyes.")
  139. slow_print("James: 'I don’t know… The whole thing is messed up. But I’m innocent, Cooper.'")
  140. slow_print("Cooper: 'Yeah? I was just in your shoes. I’m not so sure justice will play out in our favor.'")
  141.  
  142. slow_print("\nJames’ gaze hardens, but there’s a tension in his voice when he speaks again.")
  143. slow_print("James: 'I didn’t do it. And I’m not going to let them drag me down with some false charges.'")
  144.  
  145. slow_print("\nCooper leans in a little closer, lowering his voice.")
  146. slow_print("Cooper: 'They say you’re guilty until proven innocent, James. But sometimes the system isn’t built to prove innocence.'")
  147.  
  148. slow_print("\nJames clenches his fists, standing up from his chair, his voice trembling with a mix of anger and fear.")
  149. slow_print("James: 'Don’t talk like that. You’re just trying to set me up to fail. You can’t help me!'")
  150. slow_print("\nCooper stays calm, placing a hand on James’ shoulder.")
  151. slow_print("Cooper: 'Hey, I’m not trying to bring you down. Just… stay strong. Get through this. You’re not alone.'")
  152.  
  153. slow_print("\nThere’s a brief moment of silence as James stares at the floor, his expression conflicted.")
  154. slow_print("\nFinally, he looks up at Cooper.")
  155. slow_print("James: 'I’m going to fight. And I hope you do too.'")
  156.  
  157. slow_print("\nCooper nods before the guards signal for James to come forward for his trial.")
  158. slow_print("\nAs James leaves, Cooper watches him walk out, his face set with determination but also worry.")
  159.  
  160. slow_print("\nThe courtroom doors close behind James. Now, it’s his time to face the jury…")
  161.  
  162. slow_print("\nYou take one last look at your case folder before heading to the front, ready for whatever this next trial will bring.")
  163.  
  164. slow_print("\nšŸŽ¬ End Cutscene.\n")
  165.  
  166.  
  167. def intro_james():
  168. slow_print("šŸ§‘ā€āš–ļø Judge: Court is now in session for the trial of James Wakeham Odman.")
  169. slow_print("The charge: **Murder in the first degree.**")
  170. slow_print("Jasper, the defense attorney, is now defending James, who’s been accused of the same crime as Cooper Warren.")
  171. slow_print("Kai, the prosecutor, stands ready with the same resolve.")
  172. slow_print("James insists he’s innocent, but will the truth come out?")
  173. return ["Witness Testimony", "Personal Journal", "Security Footage"]
  174.  
  175. def cross_examination_james(evidence_inventory):
  176. slow_print("\nšŸ‘Øā€šŸ’¼ Witness: I saw James Wakeham Odman at the scene, covered in blood!")
  177. slow_print("Kai: 'The truth is undeniable. You can see it in the bloodstains.'")
  178. slow_print("Jasper: 'Or perhaps you just saw what you wanted to see.'")
  179.  
  180. slow_print("Time to strike. Present the most powerful piece of evidence.")
  181.  
  182. show_inventory(evidence_inventory)
  183. print("Choose evidence to present (enter the number) or press Enter to skip.")
  184. choice = input("Your choice: ")
  185.  
  186. if choice == '1':
  187. slow_print("\nJasper: 'This witness’s credibility is in question. Let’s see the real story in the footage.'")
  188. slow_print("Kai: 'Footage? You think that’ll change anything?'")
  189. return 3
  190. elif choice == '2':
  191. slow_print("\nJasper: 'James has been wrongly accused. His journal proves he was elsewhere.'")
  192. slow_print("Kai: 'A journal? Let’s just call that ā€˜wishful thinking’.'")
  193. return 2
  194. elif choice == '3':
  195. slow_print("\nJasper: 'The real killer was caught on this footage.'")
  196. slow_print("Kai: 'I see you’re resorting to desperation now. Not a good sign.'")
  197. return 1
  198. else:
  199. slow_print("Jasper misses the opportunity to discredit the witness.")
  200. slow_print("Kai: 'Looks like your case is falling apart, Jasper.'")
  201. return 0
  202.  
  203. def avery_testifies():
  204. slow_print("\nšŸ’­ **Cutscene: Avery on the Stand** šŸ’­")
  205. slow_print("\nAvery steps onto the stand with a nervous but confident look. He clears his throat before speaking.")
  206. slow_print("Avery: 'I didn’t do anything wrong. I was just in the wrong place at the wrong time.'")
  207. slow_print("Jasper: 'Let’s get one thing clear. You knew about James’ feud with the victim. You knew he would be blamed.'")
  208. slow_print("Avery looks around the courtroom, his eyes darting nervously.")
  209. slow_print("Avery: 'That’s not what happened!'")
  210.  
  211. slow_print("\nJasper presses further.")
  212. slow_print("Jasper: 'But you were at the scene, weren’t you? You were there when it all happened.'")
  213. slow_print("Avery starts to sweat, his voice shaking.")
  214. slow_print("Avery: 'I… I didn’t mean for things to go that far! I didn’t mean to hurt anyone!'")
  215. slow_print("Kai:’Www-ait. Sto-!'")
  216.  
  217. def objection():
  218. slow_print("\n🚨 **Objection!** 🚨")
  219. slow_print("\nJasper slams his hand on the table, interrupting Kai mid-sentence.")
  220. slow_print("Jasper: 'Your Honor, this is irrelevant to the case! The witness is clearly guilty of something!'")
  221.  
  222. slow_print("\nKai glares at Jasper, but the judge turns to him, raising an eyebrow.")
  223. slow_print("\nJudge: 'Sustained. Kai, please keep your comments relevant.'")
  224. slow_print("\nKai grumbles, clearly irritated, but reluctantly moves on.")
  225.  
  226. slow_print("\nJasper takes a breath, his confidence restored, knowing that this small victory might help his case.")
  227.  
  228. def avery_confession_cutscene():
  229. # Avery breaks down and admits to the crime
  230. slow_print("\nAvery trembles on the witness stand, his eyes darting around, avoiding everyone's gaze.")
  231.  
  232. slow_print("\nJasper: 'Avery, you were there. You know what happened. It's time to tell the truth.'")
  233.  
  234. slow_print("\nAvery (voice cracking): 'I... I didn’t mean to... but it was me. I killed him.'")
  235.  
  236. slow_print("\nThe courtroom gasps. Jasper watches as Avery struggles to hold it together.")
  237.  
  238. slow_print("\nAvery: 'I... I panicked. I didn’t think he'd fight back. I thought I could get away with it, blame James, but it was me.'")
  239.  
  240. slow_print("\nJasper: 'You killed him.'")
  241.  
  242. slow_print("\nAvery: 'Yes... I’m sorry... I didn’t want this... but it was me.'")
  243.  
  244. slow_print("\nThe room goes silent as Avery’s confession hangs in the air, the truth now undeniable.")
  245.  
  246. slow_print("\n**End Confession**\n")
  247.  
  248. slow_print("\nJudge: 'Well, James is Certainly not guilty. Avery will have a trial another day. Jasper, well done on the win.'")
  249.  
  250. slow_print("\nAdam: 'Avery Dubiel, you are under arrest for Murder.'")
  251.  
  252. slow_print("\nAvery: 'I did not mean….'")
  253.  
  254. slow_print("\nKai: 'You lost me my perfect record you Goddamn Pig. Jasper When I see you next, your going down.'")
  255.  
  256. slow_print("\nJasper: 'Looking Forward to it.'")
  257.  
  258. slow_print("\nAfter the Trial….'")
  259.  
  260. slow_print("\nJames: 'Thanks for catching the real killer and proving me and Cooper innocent!'")
  261.  
  262.  
  263. slow_print("\nCooper: 'And for saving us we have a gift!'")
  264.  
  265. slow_print("\nJames: 'We are taking you to Lunch!'")
  266.  
  267. slow_print("\nJasper: 'That is good and all but...'")
  268.  
  269. slow_print("\nCooper: 'We also have $58,000 in cash.'")
  270.  
  271. slow_print("\nJasper: 'I Have No Objections this Time!'")
  272.  
  273. slow_print("\nEnd'")
  274.  
  275.  
  276. def main():
  277. evidence_inventory_cooper = intro_cooper()
  278. score_cooper = 0
  279. score_cooper += present_opening_statement_cooper()
  280. score_cooper += cross_examination_cooper(evidence_inventory_cooper)
  281. verdict_cooper_result = verdict_cooper(score_cooper)
  282.  
  283. if verdict_cooper_result:
  284. cutscene_between_trials() # Cutscene before James' trial
  285. evidence_inventory_james = intro_james()
  286. score_james = 0
  287. score_james += present_opening_statement_cooper()
  288. score_james += cross_examination_james(evidence_inventory_james)
  289. verdict_james_result = verdict_james(score_james)
  290.  
  291. if verdict_james_result:
  292. avery_testifies()
  293. else:
  294. slow_print("\nšŸ˜” James has been found guilty. The trial ends in sorrow.")
  295. else:
  296. slow_print("\nšŸ˜” Cooper has been found guilty. The trial ends in despair.")
  297.  
  298. if __name__ == "__main__":
  299. main()
  300.  
  301.  
  302.  
Add Comment
Please, Sign In to add comment