-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
54 lines (45 loc) · 2.04 KB
/
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
from os import system
import sys
from inquirer import prompt , List as Listy
on = True
while on :
system("clear || cls")
print("""
\t █████╗ ██████╗ ██████╗ █████╗ ██████╗ ██╗██╗ ██╗███╗ ███╗
\t██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██║██║ ██║████╗ ████║
\t███████║██████╔╝██║ ███████║██║ ██║██║██║ ██║██╔████╔██║
\t██╔══██║██╔══██╗██║ ██╔══██║██║ ██║██║██║ ██║██║╚██╔╝██║
\t██║ ██║██║ ██║╚██████╗██║ ██║██████╔╝██║╚██████╔╝██║ ╚═╝ ██║
\t╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
""")
questions = [
Listy('Games',
message="Games ",
choices=['Snake','Rock-Paper-Scissor','High-Low','Hangman','Quiz Game','Exit'],
),
]
answers = prompt(questions)
match answers['Games'] :
case 'Snake':
import Games.Snake.main
del sys.modules['Games.Snake.main']
del Games.Snake.main
case 'Rock-Paper-Scissor':
import Games.RPS.RPS
del sys.modules['Games.RPS.RPS']
del Games.RPS.RPS
case 'High-Low':
import Games.HighLow.HiLo
del sys.modules['Games.HighLow.HiLo']
del Games.HighLow.HiLo
case 'Hangman':
import Games.Hangman.Main
del sys.modules['Games.Hangman.Main']
del Games.Hangman.Main
case 'Quiz Game':
import Games.QuizGame.main
del sys.modules['Games.QuizGame.main']
del Games.QuizGame.main
case "Exit":
on = False
print("ಥ_ಥ Sad to see you go. Bye.")