|
5 | 5 | import sys
|
6 | 6 | from termcolor import colored, cprint
|
7 | 7 | from helpers import ask_any_key, ask_yes_no, clear
|
8 |
| -import create_quiz |
9 |
| -import play_quiz |
10 |
| -import create_form |
| 8 | +from create_form import create_google_form |
| 9 | +from create_quiz import * |
| 10 | +from play_quiz import * |
11 | 11 |
|
12 | 12 | now = datetime.now()
|
13 | 13 | current_hour = int(now.strftime("%H"))
|
@@ -95,31 +95,33 @@ def main():
|
95 | 95 |
|
96 | 96 | if response == 1:
|
97 | 97 | # Creates a quiz round of 8 easy general knowledge questions
|
98 |
| - quick_quiz = create_quiz.Game("Quick Quiz", 1, 8, [9], "easy") |
| 98 | + quick_quiz = Game("Quick Quiz", 1, 8, [9], "easy") |
99 | 99 | print(quick_quiz.__dict__)
|
100 | 100 |
|
101 | 101 | # Play the Quiz Game
|
102 |
| - play_quiz.play_terminal_quiz(quick_quiz) |
| 102 | + play_terminal_quiz(quick_quiz) |
103 | 103 |
|
104 | 104 | continue
|
105 | 105 |
|
106 | 106 | if response == 2:
|
107 | 107 | print("OK you want to make a custom Quiz!")
|
108 | 108 |
|
109 | 109 | # Prompts the user to set up their quiz
|
110 |
| - custom_quiz = create_quiz.setup_new_quiz() |
| 110 | + custom_quiz = setup_new_quiz() |
111 | 111 |
|
112 | 112 | # Play the Quiz the user just set up
|
113 |
| - play_quiz.play_terminal_quiz(custom_quiz) |
| 113 | + play_terminal_quiz(custom_quiz) |
114 | 114 |
|
115 | 115 | continue
|
116 | 116 | if response == 3:
|
117 | 117 | print("OK you want to make a Google For Quiz"
|
118 | 118 | " to share with friends")
|
119 | 119 |
|
120 |
| - google_quiz = create_quiz.setup_new_quiz() |
| 120 | + google_quiz = setup_new_quiz() |
121 | 121 |
|
122 |
| - create_form.create_form_body(google_quiz) |
| 122 | + print(google_quiz) |
| 123 | + |
| 124 | + create_google_form(google_quiz) |
123 | 125 |
|
124 | 126 | break
|
125 | 127 | if response == 4:
|
|
0 commit comments