-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (20 loc) · 765 Bytes
/
Copy pathmain.py
File metadata and controls
27 lines (20 loc) · 765 Bytes
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
import sys
import package.functions as func
import package.utility as utils
import time
#Creating a menu
while True:
print ("Welcome to Mathtrix")
print ("1 -> Quick Game \n\t 5 Simple ADD Questions")
print ("2 -> Custom Game")
print ("\t Easy \t\t->\t Addition Only\n\t Medium \t->\t Addition and Substraction\n\t Hard \t\t->\t Addition, Substraction and Multiplication")
#print ("\t How many questions") Not necessary
print ("3 -> View Highscores")
print ("x -> Exit")
option = input("Enter your option : ")
if option == 'x' or option == 'X':
sys.exit()
else:
func.game(option)
#time.sleep(5) uncomment this to make a 5 sec delay
utils.clear()