-
Notifications
You must be signed in to change notification settings - Fork 0
/
trivia.py
36 lines (27 loc) · 893 Bytes
/
trivia.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
# Country Trivia Game by Rajiv Wallace
from modules.country_data import country_capital_data as ccd
from modules.player_data import *
from modules.game_functions import *
intro()
exit_trivia()
while True:
choice = category()
while True:
new_game_pack = shuffle_pack(ccd)
used_game_cards = []
if choice == "1":
capital_answer = capital_prompt(new_game_pack)
if go_back(capital_answer):
break
else:
check_answer_for_capital(capital_answer, new_game_pack)
exit_trivia()
elif choice == "2":
country_answer = country_prompt(new_game_pack)
if go_back(country_answer):
break
else:
check_answer_for_country(country_answer, new_game_pack)
exit_trivia()
else:
break