-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
67 lines (59 loc) · 2.24 KB
/
Copy pathmain.py
File metadata and controls
67 lines (59 loc) · 2.24 KB
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
import questionary
import random
import webbrowser
import time
import os
def menu():
os.system("cls")
try:
choix = questionary.select(
"Que veux-tu faire ?",
choices=[
"Jouer",
"Options",
"Quitter"
]
).ask()
if choix == "Jouer":
main =int(input("""
██ ██████ ██ ██ ██ ██
██ ██▄▄ ██ ██ ████
████▀ ██▄▄▄▄ ▀████▀ ██ ██
Bienvenue Met l'argent que tu a : """))
try:
if main >= 1:
choix_pc = random.randint(1, 249249)
if choix_pc > main:
print("Le pc gagne il a fais", choix_pc, "Tu a fais", main)
else:
print("Le joueur gagne", "Le pc a fais", choix_pc, "Le joueur a fais", main)
else:
print("Tu doit au moin mètre 1")
except Exception as e:
print(f"Error {e}")
elif choix == "Options":
try:
opti = questionary.select(
"Voila les Option que tu as",
choices=[
"Mr.Robot",
"Tools",
"Virus"
]
).ask()
if opti == "Mr.Robot":
webbrowser.open("https://www.youtube.com/shorts/3xXdTHlPdwE")
elif opti == "Tools":
webbrowser.open("https://github.com/Python-loving/WHITEWOLF-TOOLS")
else:
while True:
webbrowser.open("https://github.com/Python-loving/WHITEWOLF-TOOLS/blob/main/covid.py")
except ValueError as e:
print(f"Error {e}")
elif choix == "Quitter":
print("BIP BOOP i am a robot i want to tell you please leave tools i just want one suggestion on GitHub")
time.sleep(2)
except Exception as e:
print(f"Error {e}")
if __name__ == "__main__":
menu()