-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.py
More file actions
47 lines (31 loc) · 1.27 KB
/
game.py
File metadata and controls
47 lines (31 loc) · 1.27 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
import Class_TP
import random
import os
import importlib
from os import system
class Game:
a = "o"
#While user use "o" in inout, reload game
while a == "o" :
#Launch game
Class_TP.Launch
#Instancie nbVictory of each Personnage
nbVictoryCrs = Class_TP.Crs.nbVictory
nbVictoryManifestant = Class_TP.Manifestant.nbVictory
#Print number of victory (but doesn't work )
print("\t*.*Victoire CRS : " + str(Class_TP.Crs.nbVictory) + " | " + "Victoire Manifestant : " + str(Class_TP.Manifestant.nbVictory) + "*.*\n")
print("================================================================================\n")
a = input("\tRecommencer ? [o/n]")
print("================================================================================\n")
#Stock victory of each Personnage
nbVictoryCrs += nbVictoryCrs
nbVictoryManifestant += nbVictoryManifestant
system('cls')
#Know if reload or not
if a == "o" :
importlib.reload(Class_TP)
Class_TP.Launch
nbVictoryCrs += nbVictoryCrs
nbVictoryManifestant += nbVictoryManifestant
else :
a = "z"