-
Notifications
You must be signed in to change notification settings - Fork 8
/
AnatomyTrivia.py
495 lines (424 loc) · 20.5 KB
/
AnatomyTrivia.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
### HUMAN ANATOMY QUIZ GAME ###
## QUESTIONS (this is the list of questions separated by category (i.e. body systems)
# questions = [question1, question2, question3, question4, question5, question6, question7, question8]
questions = [
## 1 - CIRCULATORY SYSTEM QUESTIONS ##
[ "What makes up the cardiovascular component of the circulatory system?\n" ,
"True or False: the aorta carries oxygenated blood from the heart to the organs and tissues.\n" ,
"In addition to blood, what else does the circulatory system move throughout the body?\n" ,
"True or False: an average adult has 7-8 quarts of blood.\n" ,
"Which specialists are certified to diagnose, treat, and prevent diseases of the heart, arteries, and veins?\n" ,
"True or False: oxygen-deprived blood enters into the left ventricle of the heart.\n" ,
"What carries oxygen-rich blood from the heart throughout the body?\n" ,
"True or False: the superior vena cava, the aorta, and the pulmonary artery are all a part of the heart.\n" ,
"Blood is made up of plasma, red blood cells, white blood cells, and what else?\n" ,
"True or False: hypertension is one of the most common diseases of the circulatory system.\n"],
## 2 - DIGESTIVE SYSTEM QUESTIONS ##
["Where does the digestive system begin?\n" ,
"True or False: peristalsis is a series of muscle contractions that transports food from the esophagus through to the rest of the digestive system.\n" ,
"Where does the digestive system end?\n" ,
"True or False: the stomach's gastric juice consists of hydrochloric acid and pepcid.\n" ,
"What does the liver create, from sugars and carbohydrates?\n" ,
"True or False: the oropharynx and the hypopharynx are responsible for breaking down unwanted chemicals such as alcohol.\n" ,
"What procedure helps in early detection of colon cancer?\n" ,
"True or False: chyme, secreted by the salivary gland, is an enzyme that breaks down starch.\n" ,
"What is responsible for the storage and fermentation of indigestible matter?\n" ,
"True or False: the parts of the colon are the ascending colon, the transverse colon, the rising colon, the descending colon, and the sigmoid colon.\n"],
## 3 - ENDOCRINE SYSTEM QUESTIONS ##
["What is the biggest/largest part of the pituitary gland?\n",
"True or False: the endocrine system is made up of the pituitary gland, the thyroid gland, the parathyroid gland, adrenal glands, pancreas, and the ovaries (for females) or the testes (for males).\n",
"Where is the pituitary gland located?\n" ,
"True or False: the human body has three adrenal glands.\n" ,
"Which hormones are secreted by the thyroid gland?\n" ,
"True or False: the pancreas is responsible for the human fight-or-flight response.\n" ,
"Which mineral does the parathyroid hormone regulate?\n" ,
"True or False: the endocrine system only affects the brain.\n" ,
"Which hormones are produced by the pancreas?\n" ,
"True or False: the most common endocrine disease in the United States is diabetes.\n"],
## 4 - IMMUNE SYSTEM QUESTIONS ##
["Which part of the immune system produce and store cells that fight infection and disease?\n",
"True or False: leukocytes are red blood cells that identify and eliminate pathogens.\n",
"What is the best way to diagnose immune deficiencies?\n",
"True or False: disorders of the immune system are called anti-immune diseases.\n",
"What kind of medication is used to reduce immune responses in overactive/autoimmune conditions?\n",
"True or False: fever and fatigue are common signs that the immune system is not functioning properly.\n",
"What type of antibody is currently used to treat cancer?\n",
"True or False: a high white blood cell count is called leukocytosis.\n",
"Which system is also a part of the immune system?\n",
"True or False: adaptive immunity forgets threats to the body (such as viruses, bacteria, and parasites) to make future responses more efficient.\n"],
## 5 - INTEGUMENTARY SYSTEM QUESTIONS ##
["Skin accounts for what percentage of total body weight?\n",
"True or False: Skin is the body's largest organ.\n",
"What are the three main layers of skin tissue?\n",
"What cells within the epidermis produce melanin giving skin its color?\n",
"What is the protein found in the epidermis that gives skin its toughness and strength?\n",
"Hair follicles can be found on Which layer of the skin?\n",
"Which layer of the skin is mostly fatty tissue?\n",
"True or False: The epidermis is constantly being renewed by shedding dead skin cells on a daily basis.\n",
"True or False: The lymphatic vessels, which drain fluid from the tissues, are housed in the hypodermis.\n",
"Physicians who specialize in treating disesases, disorders, and injuries of the skin, hair, and nails are called?\n"],
## 6 - LYMPHATIC SYSTEM QUESTIONS ##
["True or False: The lymphatic system is a network of tissues and organs that help rid the body of toxins, waste, and other unwanted materials. \n",
"What is the name of the clear, colorless fluid transported by the lymphatic system that contains infection-fighting white blood cells?\n",
"Located on the left side of the body just above the kidney, what organ acts as a blood filter?\n",
"Which white blood cell produced by the spleen acts as defenders against germs?\n",
"What part of the lymphatic system,found in the back of the throat, is one of the immune system's first lines of defense against outside invaders?\n",
"What small organ located in the chest just above the heart stores immature lymphocytes and prepares them to become active T cells?\n",
"Which of the following organs is NOT part of the lymphatic system: spleen, thymus, bone marrow, gallbladder?\n",
"True or False: Like blood, lymph flows throughout the body in a continue loop.\n",
"Which medical specialists typically treat disesase and disorders of the lymphatic system?\n",
"How many drainage areas does the lymphatic system have in which to clear different parts of the body?\n"],
## 7 - MUSCULAR SYSTEM QUESTIONS ##
["How many muscles are there in the adult human muscular system?\n",
"What are the 3 types of muscles?\n",
"Which of the 3 muscle types consist of the only voluntary muscle tissue, controlling every action that a person consciously performs?\n",
"Known as involuntary muscle, which muscle type is controlled by the unconscious part of the brain?\n",
"Which muscle type is found only in the heart and reponsible for pumping blood throughout the body?\n",
"Where in your body is the deltoid muscle situated?\n",
"Where is the smallest skeletal muscle, the stapedius, found in the body?\n",
"What is the largest muscle in the human body?\n",
"What is the hardest working muscle, pumping at least 2,500 gallons of blood per day?\n",
"True or False: There is no single type of doctor that treats muscular disesases and disorders.\n"],
## 8 - NERVOUS SYSTEM QUESTIONS ##
["What are the specialists who study the nervous system are called?\n",
"True or False: the nervous system consists of the primary nervous system and the peripheral nervous system.\n",
"The central nervous system consists of the nerves, the brain, and what else?\n",
"True or False: the peripheral nervous system has sensory neurons, ganglia, and nerves that connect to the central nervous system.\n",
"What type of neurons transmit signals to activate the muscles or glands?\n",
"True or False: the somatic component and the automotive component are the two main subdivisions of the nervous system.\n",
"What is the name of specialized cells that support, protect, or nourish nerve cells?\n",
"True or False: the average human brain as about 100 neural connections.\n",
"Neurons send signals to other cells through thin fibers called what?\n",
"True or False: sensory neurons react to emotional stimuli.\n"],
## 9 - REPRODUCTIVE SYSTEM QUESTIONS ##
["When fertilization occurs, sperm must enter through what part of the female reproductive system, in order to burrow into the egg?\n",
"True or False: Bartholin's gland is a part of the female reproductive structure.\n",
"Which part of the male reproductive system is responsible for sperm production?\n",
"True or False: the fetus begins to take shape during a process called embryogenesis.\n",
"In male infertility, what is it called when no sperm cells are produced?\n",
"True or False: cystic fibrosis can cause male infertility.\n",
"What is the term for people with both male and female reproductive parts?\n",
"True or False: the vagina is attached to the uterus through the fallopian tubes.\n",
"Which specialists typically oversee disorders in the male reproductive system?\n",
"True or False: the only way to screen for cervical cancer is through Pap tests/smears.\n"],
## 10 - RESPIRATORY SYSTEM QUESTIONS ##
["What are the primary organs of the respiratory system, responsible for carrying out the exchange of gases as we breathe?\n",
"The human respiratory system is a series of organs responsible for taking in oxygen and expelling what other gas?\n",
"True or False: Brain cells being dying after about 4 minutes without oxygen.\n",
"What is a newborn's normal breathing rate per minute?\n",
"Also known as the windpipe, what filters the air that is inhaled?\n",
"True or False: The left lung has 3 lobes, while the right lung has 2.\n", ### The left lung has 2 to accommodate the heart ###
"Where does the exhange of oxygen and carbon dioxide occur?\n",
"What is the name of the dome-shaped muscle at the bottom of the lungs that controls breathing?\n",
"What condition causes coughing, wheezing, and shortness of breath due to inflammation of the lung airways?\n",
"What medical specialists treat conditions of the respiratory system?\n"],
## 11 - SKELETAL SYSTEM QUESTIONS ##
["How many bones are there in the adult human skeletal system?\n",
"True or False: Human infants are born with about 400 bones.\n",
"What are considered part of the skeletal system, although not counted as bones?\n",
"True or False: The male pelvis is proportionately larger than the female pelvis.\n",
"What can be found in the middle of some bones where new cells are constantly being produced for blood?\n",
"What are the two distinctive parts of the skeletal system?\n",
"What prevalent disease, particularly among the elderly, results in the loss of bone tissue?\n",
"True or False: It takes about 10-16 pounds of pressure to break an average bone.\n",
"What is the longest and strongest bone with the most powerful muscles attached to it?\n",
"What are the medical specialists responsible for treating the entire skeletal system?\n"],
## 12 - URINARY SYSTEM QUESTIONS ###
["What are the primary organ(s) of the urinary system?\n",
"True or False: The urinary system is also known as the renal system.\n",
"The kidneys remove urea from the blook through small filtering units called?\n",
"True or False: A normal, healthy bladder can hold up to 1 liter of urine comfortably for 2-5 hours.\n",
"Which of the following are part of the renal system?\n(a) The urethra\n(b) The bladder\n(c) The kidneys\n(d) All of the above\n",
"True or False: Small amounts of urine are emptied into the bladder from the ureters about every 10-15 seconds.\n",
"What organ stores urine until the brain signals that it is ready to empty it?\n",
"True or False: Circular muscles called sphincters close tightly around the opening of the bladder to prevent leakage into the urethra.\n",
"Which of the following is NOT a disease of the urinary system?\n(a) Interstitial cystitis\n(b) Arteriosclerosis\n(c)Kidney Stones\n(d) Urinary tract infections\n",
"True or False: Nephrologists treat problems of the urinary tract.\n"],
]
## ANSWERS ##
# VIP: if you make changes in the question zone, don't forget to synchronise this zone (the variable and the list)!
answers = [
## 1 - CIRCULATORY SYSTEM ANSWERS ##
["heart, blood, blood vessels",
"true",
"lymph",
"false", # 5-6 quarts #
"cardiologists",
"false", # it enters into the right ventricle #
"arteries",
"true",
"platelets",
"true"],
## 2 - DIGESTIVE SYSTEM ANSWERS ##
["mouth",
"true",
"anus",
"false", # hydrochloric acid and pepsin ##
"glycogen",
"false", # liver #
"colonoscopy",
"false", # salivary amylase #
"large intestine",
"false"], # there is no rising colon #
## 3 - ENDOCRINE SYSTEM ANSWERS ##
["frontal lobe",
"true",
"brain",
"false", # two #
"calcitonin, T4, and T3",
"false", # adrenal gland ##
"calcium",
"false", # every organ and cell in the body #
"insulin and glucagon",
"true"],
## 4 - IMMUNE SYSTEM ANSWERS ##
["lymph nodes",
"false", # white blood cells #
"blood tests",
"false", # autoimmune diseases #
"corticosteroids",
"true",
"monoclonal",
"true",
"lymphatic",
"false"], # it remembers threats #
## 5 - INTEGUMENTARY SYSTEM ANSWERS ##
["16",
"true",
"epidermis, dermis, and hypodermis",
"melanocytes",
"keratin",
"dermis",
"hypodermis",
"true",
"false", # dermis #
"dermatologists"],
## 6 - LYMPHATIC SYSTEM ANSWERS ##
["true",
"lymph",
"spleen",
"lymphocytes",
"tonsils",
"thymus",
"gallbladder",
"false", # lymph flows in only one direction-upward toward the neck #
"immunologists",
"2"],
## 7 - MUSCULAR SYSTEM ANSWERS ##
["650",
"skeletal, smooth, and cardiac",
"skeletal",
"smooth",
"cardiac",
"arm",
"ear",
"gluteus maximus",
"heart",
"true"],
## 8 - NERVOUS SYSTEM ANSWERS ##
["neurologists",
"false", # central nervous system and peripheral nervous system #
"spinal cord",
"true",
"motor neurons",
"false", # somatic and autonomic #
"glial cells",
"false", # 100 trillion #
"axons",
"false"], # physical stimuli #
## 9 - REPRODUCTIVE SYSTEM ANSWERS ##
["fallopian tube",
"true",
"testes",
"false", # morphogenesis #
"azoospermia",
"true",
"intersex",
"false", # cervix #
"urologists",
"false"], # pap tests/smears and HPV tests #
## 10 - RESPIRATORY SYSTEM ANSWERS ##
["lungs",
"carbon dioxide",
"true",
"40",
"trachea",
"false",
"alveoli",
"diaphragm",
"asthma",
"pulmonologists"],
## 11 - SKELETAL SYSTEM ANSWERS ##
["206",
"false", # 300 bones #
"teeth",
"false",
"bone marrow",
"axial, skeleton, and appendicular skeleton",
"osteoporosis",
"true",
"femur",
"orthopedics"],
## 12 - URINARY SYSTEM ANSWERS ##
["kidneys",
"true",
"nephrons",
"false", # 1/2 liter #
"d",
"true",
"b",
"true",
"b",
"false"] # answer = urologists...nephrologists treat diseases of the kidney #
]
### CATEGORIES ######
categories =["circulatory" , "digestive" , "endocrine" , "immune" , "integumentary" , "lymphatic" , "muscular" , "nervous" , "reproductive" , "respiratory" , "skeletal" , "urinary"]
greetings = [
"Let's get to the heart of the matter...the circulatory system!" ,
"All about the gut...on to the digestive system!",
"This gland is your gland....on to the endocrine system!" ,
"Our hidden heroes...the immune system." ,
"The body's shield...the integumentary system!",
"The invisible system...the lymphatic system!" ,
"You think you're tough eh?...let's try the muscular system." ,
"Okay, brainiac...on to the nervous system." ,
"Let's give the reproductive system a try." ,
"Take a deep breath, as we proceed to the respiratory system." ,
"You won't find these humerus...but on to the skeletal system." ,
"Gotta go right now...to the urinary system."
]
## GLOBAL GAME SETTINGS ##
points = 0
name = None
yes = ['Yes', 'yes', 'YES']
no = ['No', 'no', 'NO']
category = 0
## RESET ZONE ##
def game_reset():
'''
Reset all variables of the whole game for a new play
'''
global points
global name
points = 0
name = None
# end-function #
## GAME INTRO ZONE ##
def game_intro():
'''
Welcome the player and ask him for his name as long as he thinks is correct.
'''
print("\n ------ !! Welcome to the Human Anatomy Trivia Game !! ------\n")
global name
global category
while name == None:
name = input("What's your name? ")
print("Welcome, "+name+", to the Human Anatomy Trivia Game!")
correct = input("Did we get your name right? ")
if yes.count(correct) == True: ##"Yes" or ok == "yes" or ok == "YES":
print("Perfect, let's move on!\n")
else:
print("Eh?? Try again and confirm with Yes!")
name = None
list_categories()
start_system()
# end-function #
## GAME PLAY ZONE ##
def print_play_status(x):
'''
just print out the current score and the current challenge number.
'''
global points
print("At the moment your total points are", points)
print("Challenge", x+1, "\n")
# end-function #
def start_system() :
system = int(input("Pick a category by typing a number (0 to exit) : 1-12\n"))
if system == 0 :
game_end()
else :
print(greetings[system - 1])
start_category(system)
def start_category(cat) :
global category
category = cat
game_play()
def list_categories() :
# loop through categories array and print categories #
for c in categories :
print(categories.index(c) + 1 , " : " , c)
def play_quest(x):
'''int -> int
this functions asks the player question X, checks if player's answer is right and eventually changes the variable points.
no examples needed
'''
global points
global questions
global answers
answerPlayer = input(questions[category - 1][x])
if answerPlayer.lower() == answers[category - 1][x]:
print("Well done,", name + ", 10 points gained! Let's move to the next question.\n")
points +=10
else:
print("Wrong! 0 points gained, the correct answer was:", answers[category - 1][x], ". Next question...\n")
last_cat = len(questions[category - 1])
if x == last_cat -1 :
global categories
global greetings
categories.pop(category - 1)
greetings.pop(category - 1)
questions.pop(category - 1)
answers.pop(category - 1)
if len(categories) == 0 :
game_end()
else:
list_categories()
start_system()
# end-function #
def game_play():
'''
first : tell the player his current score and the current challenge number
second: tell the play_quest-function how many and which questions it must asks the player.
'''
for x in range(len(questions[category - 1])):
print_play_status(x)
play_quest(x)
# end-function #
## GAME END ZONE ##
def game_end():
'''
first : tell the player his finish score.
second: ask the player if wants to play again and fullfil his wish.
'''
print("\nYou finished the game with a total of", points, "points! \n")
again = None
while again == None:
again = input("Play again? ")
if yes.count(again) == True:
print("\nEnjoy :)\n")
game_control()
elif no.count(again) == True:
print(" Congratulations! You've completed the game." )
print(" https://github.com/ksu-hmi/Anatomy-Game" )
print(" Questions generated from information gathered from livescience.com ")
print(" at the following address: https://www.livescience.com/health ")
print(" ")
print(" Thanks for playing!" )
print(" ------ !! B Y E !! ------ ")
else:
print("oh, just yes or no!")
again = None
# end-function #
## GAME CONTROL ZONE ##
def game_control():
'''
Control the whole game with these single steps.
'''
game_reset()
game_intro()
#start_system()
#game_play()
#game_end()
# end-function #
## FIRST GAME START ZONE ##
game_control()