|
|
@ -1,4 +1,7 @@ |
|
|
class personnage ( self, nom , cat): |
|
|
import random |
|
|
|
|
|
|
|
|
|
|
|
class Personnage : |
|
|
|
|
|
def __init__ ( self, nom , cat ): |
|
|
self.nom = nom |
|
|
self.nom = nom |
|
|
self.pdv = 20 |
|
|
self.pdv = 20 |
|
|
self.exp = 1 |
|
|
self.exp = 1 |
|
|
@ -6,4 +9,9 @@ class personnage ( self, nom , cat): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# def jet_attaque (self): |
|
|
|
|
|
# print (random.randint(1,20)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print ("je m'appelle" ,nom, "j'ai" , pdv) |