repl.it
Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import random
characters = ["Jake Peralta", "Charles Boyle", "Amy Santiago", "Rosa Diaz", "Terry Jeffords"]
cases = ["Illegal possession of cocaine", "50g of recreational marijuana", "Break & enter", "Car theft", "$4 000 000 stolen from jewelry store", "Hostages held in a Goodwill", "All customers held hostage in Shaw’s Bar", "Special Case: The Pontiac Bandit Strikes Again"]
for i in range(int(input("How many times would you like to run the code? "))):
  characterchoice = random.choice(characters)
  caseschoice =  random.choice(cases)
  if characterchoice == "Jake Peralta":
    spawnpoint = ["Jake Peralta's Desk", "Interrogation Room", "Elevator"]
    clothes = ["Wearing a tie", "Not wearing a tie", "Wearing his badge", "Not wearing his badge"]
    print(characterchoice)
    print(caseschoice)
    print(random.choice(spawnpoint))
    print(random.choice(clothes))
    print()
  elif characterchoice == "Charles Boyle":
    spawnpoint = ["Charles Boyle's Desk", "Kitchen", "Break room"]
    clothes = ["Wearing a belt", "Not wearing a belt", "Wearing brown shoes", "Wearing black shoes" ]
    print(characterchoice)
    print(caseschoice)
    print(random.choice(spawnpoint))
    print(random.choice(clothes))
    print()
  elif characterchoice == "Amy Santiago":
    spawnpoint = ["Amy Santiago's Desk", "Captain Holt's Office", "Briefing Room"]
    clothes = ["Wearing a black suit", "Wearing a gray suit", "Wearing a blue suit", "Wearing a pink suit"]
    print(characterchoice)
    print(caseschoice)
    print(random.choice(spawnpoint))
    print(random.choice(clothes))
    print()
  elif characterchoice == "Rosa Diaz":
    spawnpoint = ["Rosa Diaz's Desk", "Bullpen", "Briefing Room"]
    clothes = ["Wearing a black leather jacket", "Wearing a brown leather jacket", "Wearing a black bloody leather jacket", "Not wearing a jacket"]
    print(characterchoice)
    print(caseschoice)
    print(random.choice(spawnpoint))
    print(random.choice(clothes))
    print()
  elif characterchoice == "Terry Jeffords":
    spawnpoint = ["Terry Jefford's Desk", "Kitchen", "Balcony"]
    clothes = ["Wearing brown suspenders", "Wearing black suspenders", "Wearing a brown shoulder holster", "Not wearing a shoulder holster"]
    print(characterchoice)
    print(caseschoice)
    print(random.choice(spawnpoint))
    print(random.choice(clothes))
    print()
  elif characterchoice == "Jake Peralta & Charles Boyle":
    spawnpoint = ["Terry Jefford's Desk", "Kitchen", "Balcony"]
    clothes = ["Wearing brown suspenders", "Wearing black suspenders", "Wearing a brown shoulder holster", "Not wearing a shoulder holster"]
    print(characterchoice)
    print(caseschoice)
    print(random.choice(spawnpoint))
    print(random.choice(clothes))
    print()
  
  cont = input("Do you want to continue? Y/N") 
  if cont == "N": 
    print("Cya loser!")
    exit()
  if cont == "Y": 
    continue
Fetching token
?