repl.it
@aaku/

Hunger Games sim

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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import random as r
import time

dead_people = []

print('''
Welcome to the Hunger Games!
''')

death = ["got dysentery and died","got ebola and died","got shot with an arrow by bob","got pushed off a cliff by bob","got mauled by animals","got suffocated by bob","fell into a sandtrap","drowned","got stabbed with a glass shard by bob","ate poisonous berries","got raped by bob","got tortured by bob","got raped by bob","got raped by bob"]

survival = ["did nothing","slept peacefully","thought about home","talked to bob","trained","trained with bob","had nightmares about the hunger games","got a gift from an unknown sponser","danced with bob","had a nice day"]

name_1 = str(input("Enter first name  >>> "))
name_2 = str(input("Enter second name  >>> "))
name_3 = str(input("Enter third name  >>> "))
name_4 = str(input("Enter fourth name  >>> "))
name_5 = str(input("Enter fifth name  >>> "))
name_6 = str(input("Enter sixth name   >>> "))
name_7 = str(input("Enter seventh name  >>> "))
name_8 = str(input("Enter eigth name  >>> "))
name_9 = str(input("Enter ninth name  >>> "))
name_10 = str(input("Enter tenth name  >>> "))




names = [name_1,name_2,name_3,name_4,name_5,name_6,name_7,name_8,name_9,name_10]
print('''


''')

while len(names) > 1:
  deaths = 0
  print("")
  for i in names:
    kill = ["yes","no"]
    idea = r.choice(kill)
    


    if len(names) == 1:
      print("The last survivor is",names[0])
      break
      break

    if idea == "no":
      
      survived = r.choice(survival)
      person = r.choice(names)
      if survived == "got a gift from a unknown sponser":
        names.append(i)
      survived = survived.replace("bob",person)
      if person == i:
        survived = "did nothing"
      print(i,survived)
      print('''
      ''')
  
    
    
    
    
    
    if idea == "yes":
      
      cause = r.choice(death)
      
      killer = r.choice(names)
      
      how_did_character_die = cause

      how_did_character_die = how_did_character_die.replace("bob",killer)
      dead_people.append(i)
      deaths = deaths + 1
      
      if killer == i:
        how_did_character_die = "went mad and suicided"

      print(i,how_did_character_die)
      print('''
      ''')
      
      names.remove(i)
    
    time.sleep(1.759)
  
  print("People left:",len(names))
  
  if deaths > 1:
    print(deaths,"people died this day...")
  
  elif deaths == 1:
    print("1 person died...")
  
  else:
    print("Nobody died...")
  
  print("The people that have died so far are"," , ".join(dead_people),"...")
  print('''
  ''')
  if len(names) == 1:
    print('''
    
    
    ''')
    print("The winner is",names[0],"!")
    break
  
  time.sleep(2)
  print('''
  ''')
  print("Survivors:",", ".join(names),"!")
  print()
  
  time.sleep(4)

print('''






''')
Fetching token
?