-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.py
35 lines (28 loc) · 864 Bytes
/
index.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
#-*-coding:utf-8 *-
#!/usr/bin/env python
try:
from func.functions import *
except NameError:
print("Error accessing folders")
except TypeError:
print("Packages Access Error")
#============================================================================
b = recupMot()
monJeux = Jeux()
choix = -1
point = 0
while choix != str(0):
r = monJeux.choixMot(b)
s = monJeux.melerMot(r)
print("\t"+s.upper())
reponse = str(input("Please enter the correct word: "))
resultat = monJeux.verifierReponse(reponse, r)
choix = resultat[0]
point = resultat[1]
print("Final score: ", point)
pseudo = str(input("Enter your name: "))
try:
insertJoeurs(pseudo,jour,point)
except Exception as e:
print("===>{}".format(e))
#============================================================================