|
@ -1,4 +1,5 @@ |
|
|
from random import randint |
|
|
from random import randint |
|
|
|
|
|
|
|
|
class Personnage: |
|
|
class Personnage: |
|
|
def __init__(self, nom, cat): |
|
|
def __init__(self, nom, cat): |
|
|
pdv = 20 |
|
|
pdv = 20 |
|
@ -54,4 +55,4 @@ class Personnage: |
|
|
def affiche_inventaire (self): |
|
|
def affiche_inventaire (self): |
|
|
print ("j'ai", self.inventaire) |
|
|
print ("j'ai", self.inventaire) |
|
|
|
|
|
|
|
|
p=Personnage("piero","guerrier") |
|
|
p = Personnage("pierrot","guerrier") |
|
|