@idrawhorsechamp/

THE QUIZSHOW!!!

Python

Percy Jackson quiz show!

fork
loading
Files
  • main.py
  • holidaycard.py
  • typewriter.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
from random import randint
from time import sleep,monotonic
from threading import Timer
from replit import clear
from typewriter import typewrite
from holidaycard import makevd,ascii
from colored import fg,bg,attr

#Allowing for one absense, 7 groups of 3.

inst1 = "You have been split up into six teams. Each team has been assigned a randomly generated team name. Stay at your tables! Each team will get a chance to answer the questions together. You'll know when it's your turn! Some important information: If you answer correctly, you will get more points if you are fast. If you answer the question wrong, you lose 100 points. If you answer late, you won't get any points.\n\nBut it's pretty easy: the hardest part of the quiz is remembering your team name!"

teams = {0:"Unnamed",1:"Unnamed",2:"Unnamed",3:"Unnamed",4:"Unnamed",5:"Unnamed",}
points = {0:0,1:0,2:0,3:0,4:0,5:0,}

qts = {0:"What is the name of the god of the wild?",1:"Who was Gladiola?",2:"Why does Annabeth hate her dad?",3:"What did the Chimera look like?",4:"Who is the lady in the arch?",5:"What message did the underwater spirit deliver?",6:"How does Percy feel in Hades's presence?",7:"How does Percy feel in Ares's presence?",8:"Chimera is Echidna's...",9:"Why was Percy angry at Ares for sending him to Waterland?",10:"Why was Percy relieved once he got out of the Hudson River?",11:"What did Percy, Grover, and Annabeth do to contact Chiron?",12:"Who is on the other end of Percy, Annabeth, and Grover's message?",13:"What does Ares buy them?",14:"Where does Ares send Percy to get his shield?",15:"What news does Ares deliver about Percy’s mother?",16:"What animals were the three traveling with?",17:"What does Percy keep dreaming about?",18:"What animal can Percy hear and understand?",19:"What year does Darrin think it is?",20:"Which is a nickname for Hades?",21:"Where are Percy, Annabeth, and Grover trapped in a gamer's paradise?",22:"Ares calls America 'the best place since Sparta.' Why?",23:"Who does Percy meet at Crusty's Waterbeds?",24:"How do the trio get past Cerberus?",25:"Where did the flying shoes try to drag Grover?",26:"What did Ares look like?",27:"Which field in the Underworld was the field of happiness?",28:"Which is a clue to Aunty Em’s true identity?",29:"What happened to the police cars on the beach?",30:"Why did the trio fly to Mount Olympus when they didn’t fly to the underworld entrance?",31:"How did Percy get Annabeth out of the Casino?",32:"How does Percy know the address for the Underworld?",33:"Who is at the entrance to the Underworld?",34:"Why is the field of happiness so much smaller than the other two?",35:"How did Percy go back to the overworld with the lightning bolt?",36:"Who does Percy leave in the Underworld?",37:"How did Percy survive fighting Ares?",38:"How does Zeus thank Percy?",39:"Why does Grover leave Camp Half Blood again at the end?",40:"Why is Luke so mad?",41:"What happened to Smelly Gabe?",42:"Who betrays Percy?",43:"How are the thrones arranged in Olympus?",44:"Which of these heroes did NOT escape the underworld?",45:"Why does Annabeth carry her Father’s ring?",46:"Who is Crusty?",47:"What is the one word Percy can understand from his father and uncles' whisperd discussion?",48:"What is the phrase Percy hears and regrets on Olympus?",49:"What is the name Poseidon uses for Percy?",50:"Who was \"the god who has turned\"?"}

ans = {0:["Pan","Spatula","Artemis","Hestia",0],1:["A yellow goat","A blue statue","A pink poodle","An albino lion",2],2:["He didn't get her a poodle","He neglected her","He was from New Jersey","He was an airplane pilot",1],3:["Head of a lion, body and head of a goat, snake tail","Head of a snake, body of a lion, tail and head of a goat","Head and shoulders of an eagle, body and hind legs of a horse","Tail of a snake, head of a goat, body of an eagle",0],4:["The terrible Echidna","A harmless old lady fleeing carnage","The person who owned the dog","The elevator lady",0],5:["Your dad thinks you're not that bad","Go to the ocean, trust the gifs","Go to Santa Monica, do not trust the gifts","You shall go west, and face the god who has turned.",2],6:["Angry and impulsive","Powerless and dependent","Hungry","Impish",1],7:["Angry and impulsive","Powerless and dependent","Wooed and in LURVE","Excited and cooperative",0],8:["Son","Cousin","Mother","Language Arts teacher",0],9:["Ares sent spiders to scare Annabeth","Ares knew it was a trap","Ares sent him to look for the wrong item","That's what Ares does",1],10:["He was dry","There were no confirmed fatalities","There was a MacDonalds nearby","He knew Echidna was gone",1],11:["Iris messaging","Instant messaging","Using a pay phone","Yelling REALLY loudly",0],12:["Luke","Chiron","Dionysus","Argus",0],13:["Cheeseburgurs, fries, onion rings, and chocolate shakes","Two scoops of ice cream each","A backpack, Oreos, fresh clothes, and some money","A Nintendo Switch each",0],14:["Waterland","Santa Monica","The Lotus Casino","Aunty Em's Garden Gnome Emporium",0],15:["She's not dead","She is dead","She's MOSTLY dead","She's back at home",0],16:["A pink poodle, a zebra, and an albino lion","A zebra, a pink poodle, and and antelope","An albino lion, an antelope, and a pink poodle","An antelope, an albino lion, and a zebra",3],17:["A bottomless put","Luke","Thalia's tree","The perfect, gooey ouble cheesburger",0],18:["Poodle","Antelope","Minotaur","Zebra",3],19:["1977","1653","1983","1968",0],20:["The Silent One","Dat Dude","You know... Poseidon's brother","The big third",0],21:["The Lotus Casino","Crusty's Waterbeds","Lotus Inn and Suites","Cub Foods",0],22:["There be lots of war","Everyone loves each other","Gas is cheap","'There's no place like home'",0],23:["Procrustes","Crispius","Charon","Chiron",0],24:["Annabeth distracts him with a rubber ball","Annabeth calls the local dog trainer","Percy distracts him with a rubber ball","Grover pelts him with tin cans",0],25:["To Hades’ palace","To Persephone’s Garden","To Mount Olympus","To the pit of Tartarus",3],26:["A cool dude","A man in a motorcycle jacket and sunglasses","A man in old-fashioned greek battle armor","A man wearing a civil war uniform for the Confederate Army",1],27:["The fields of Punishment","The fields of Asphodel","The fields of Elysium","The fields of football",2],28:["The statues","The horrible food","The accent","The reflective garden ornaments",0],29:["*BOOM*","*ZOOM*","*p☁☁f*","*FFFTHH*",0],30:["They needed to get to Mount Olympus fast","They knew that Zeus liked them now","They couldn’t find plane tickets before","Hades would protect them",0],31:["\"Spiders. Large, hairy spiders.\"","\"You can’t be an architect when you’re inside!\"","\"Hey you know that quest you were waiting seven years for?\"","He just dragged her out",0],32:["It was at Aunty Em’s shop","Chiron had given it to them","Psychic","The address was on a paper in Crusty’s Waterbeds",0],33:["Charon","Hades","Crusty","Chiron",0],34:["Not many people are \"good\"","Too many people don’t want to be judged","Hades is mean","The judges want the field to themselves",0],35:["Someone tricked him","Persephone was there","Hades was having a good day","He bribed Charon to steal it for him",0],36:["His mom","Grover","Annabeth","Himself",0],37:["The ocean water behind him","He’s boss","His father was there","He was riding the zebra",0],38:["He doesn’t kill him","He offers to make him a god","He guarantees safe travel to Camp Half Blood","He gives Percy a magic eagle feather",0],39:["To search for the god of nature","To find more halfbloods","He ran out of tin cans","To search for someone to replace Mr. D",0],40:["He is just another pawn of the gods","His dad didn’t refund him for the sneakers","Percy broke his sword","He was stung by a scorpion",0],41:["Sally petrified him","There was a divorce","He replaced Mr. D","Percy petrified him",0],42:["Luke","Grover","Annabeth","Clarisse",0],43:["Like the cabins","In a straight line","In a circle","Stacked on top of one another",0],44:["George Washington","Orpheus","Hercules","Harry Houdini",0],45:["It was her father’s main keepsake from Athena","She liked it","Athena gave it to her","She killed a spider with it",0],46:["Procrustes","Mr. Stretchy","Aquasleepmachinery- the God of waterbeds","Medusa",0],47:["Father","Ares","Brother","Child",0],48:["Wrongdoing","Mistake","Unwanted","Product of carelessness",0],49:["Perseus","Child","Son","Hero",0],50:["Ares","Poseidon","Hades","Hermes",0]}

# qkeys = [0,1,2,3,4,5]
qkeys = list(range(0,len(qts)))

adj1 = ["Shocking","Proper","Blue","Bungleing","Bitlifeesque","Plaid","Stripey","Frozen","Fuzzy","Snowy","Blockish","Rotating","Imageless","Hatless","Guiltripping","Confusing","Tinted","Stained","Fast","Ignorant","Notetaking","Wooden","Anime","Videogaming","Faultless","Impossible","Unknown","Zippered","Blank","Numbered","Underrepresented","Teaming","Tonka","Paid","Frowning","Sassy","Vindictive","Undermining","Forceful","PG","UnderRated","Vivacious","Practiced","Perfect","LessThanPerfect","Plastic","Glass","Descriptive","Reserve","Unloving","Website"]
noun = ["Musics","Plants","Pencils","Cacti","Debugging","Units","Attributes","Pipelines","UlfactorySensors","Ears","Codes","Tables","Shoes","Particles","Answers","Team","Toys","Chimeras","Flowers","Reindeers","Octopi","DescriptiveAdjectives","PersonalComputers","Hippogriffs","Adjectives","Nouns","Inserts","Perfects","Cameras","PlasticForks","Horses","Cookies","BrainHeads"]

def generate():
  for i in teams:
    gena1 = randint(0,len(adj1)-1)
    gena2 = randint(0,len(adj1)-1)
    genno = randint(0,len(noun)-1)
    gena1 = adj1[gena1]
    gena2 = adj1[gena2]
    genno = noun[genno]
    teams[i] = gena1 + gena2 + genno
  for i in teams:
    if i == 0:
      typewrite("Team " + teams[i] + ":",max_time=0.5,end=" ")
      typewrite("Lily, Derrick, Lauren",max_time=0.5,end="\n\n")
    elif i == 1:
      typewrite("Team " + teams[i] + ":",max_time=0.5,end=" ")
      typewrite("River, August, Natalia",max_time=0.5,end="\n\n")
    elif i == 2:
      typewrite("Team " + teams[i] + ":",max_time=0.5,end=" ")
      typewrite("Sigrid, Holden, AJ",max_time=0.5,end="\n\n")
    elif i == 3:
      typewrite("Team " + teams[i] + ":",max_time=0.5,end=" ")
      typewrite("Marion, Jillian, Isaac",max_time=0.5,end="\n\n")
    elif i == 4:
      typewrite("Team " + teams[i] + ":",max_time=0.5,end=" ")
      typewrite("Joe, Dakota, Annabel",max_time=0.5,end="\n\n")
    elif i == 5:
      typewrite("Team " + teams[i] + ":",max_time=0.5,end=" ")
      typewrite("Nate, Anthony, Cody",max_time=0.5,end="\n\n")
  input(fg(45)+"Press enter"+attr(0))
  return teams

def score():
  clear()
  lp = 0
  lt = 7
  for i in teams:
    if points[i] > lp:
      lt = i
      lp = points[i]
    print(str(teams[i]) + ":",end=" ")
    print(str(points[i]) + " points.")
  try:
    typewrite("\nTeam "+teams[lt]+" is in the lead.")
  except KeyError:
    typewrite("\nNo one is in the lead.")
  sleep(5)

def countdown(sec,msg=""):
  count = sec
  for i in range(0,sec):
    clear()
    print(msg,end='\n\n\t\t')
    if count >= 4:
      print(fg(82)+str(count)+attr(0))
    elif count < 4 and count > 1:
      print(fg(11)+str(count)+attr(0))
    elif count <= 1:
      print(fg(196)+str(count)+attr(0))
    sleep(1)
    count -= 1
  clear()

### MAIN PROGRAM ###

clear()
print(inst1)
input(fg(45)+"Press enter"+attr(0))
generate()
while qkeys != []:
  score()
  for i in teams:
    if qkeys == []:
      break
    countdown(3,teams[i]+"'s turn.\n"+fg(202)+"GET READY"+attr(0))
    q = randint(0,len(qkeys)-1)
    countdown(5,qts[qkeys[q]]+"\n")
    start = monotonic()
    print(qts[qkeys[q]],"\n")
    rlist = [0,1,2,3]
    for x in range(1,5):
      a = randint(0,len(rlist)-1)
      if ans[qkeys[q]][rlist[a]] == ans[qkeys[q]][ans[qkeys[q]][-1]]:
        correct = x
      print(str(x)+")",ans[qkeys[q]][rlist[a]])
      rlist.remove(rlist[a])
    while True:
      try:
        answer = int(input("\nWhat is your choice/answer? "))
        break
      except:
        continue
    stop = monotonic()
    if stop - start >= 30:
      print(fg(242)+"Too late!"+attr(0))
      sleep(1)
    elif answer == correct:
      print(fg(82)+"YAY! You got it right."+attr(0))
      points[i] += int((30-round(stop-start,2))*100)
      sleep(1)
      del qts[qkeys[q]]
      del ans[qkeys[q]]
      del qkeys[q]
    else:
      print(fg(196)+"AWW! Maybe next time."+attr(0))
      points[i] -= 100
      if points[i] < 0:
        points[i] = 0
      sleep(1)
  clear()
  print("End of the round.")
  input(fg(45)+"Press enter"+attr(0))
print("That's all the questions we've got!")
input(fg(45)+"Press enter"+attr(0))
score()
sleep(5)
ascii("THANK YOU!")