<gh_stars>1-10
import random


class Pj(object):
    "Définit le personnage jouable"

    def __init__(self):
        self.Pv = 30
        self.Xp = 1

    def dammage(self):
        # maxrange = 12
        # pt_attack = random.randrange(maxrange)
        # Xp = 1  # we will work on that later
        # print(pt_attack)
        # return random.randint(0,5)
        return 10
        

    def health(self):
        dammage =  self.dammage()
        new_health = self.Pv - self.dammage()
        print(new_health)
        return self.Pv - self.dammage()

    # def pprint(self):
    #     print(self.dammage())



p1 = Pj()
print(p1.dammage() ) 
# print(p1.health())


if p1.dammage() >=10:
    print("Critical hit")

if p1.health() <= 20:
    print(" Pj is seriously wounded")

# p1.pprint()

#     else:
#         p1.dammage
#         p1.health = p1.health() - 1


import random


class Pj(object):
    "Définit le personnage jouable"

    def __init__(self):
        self.Pv = 30
        self.Xp = 1

    def dammage(self):
        # maxrange = 12
        # pt_attack = random.randrange(maxrange)
        # Xp = 1  # we will work on that later
        # print(pt_attack)
        # return random.randint(0,5)
        return 10
        

    def health(self):
        dammage =  self.dammage()
        new_health = self.Pv - self.dammage()
        print(new_health)
        return self.Pv - self.dammage()

    # def pprint(self):
    #     print(self.dammage())



p1 = Pj()
print(p1.dammage() ) 
# print(p1.health())


if p1.dammage() >=10:
    print("Critical hit")

if p1.health() <= 20:
    print(" Pj is seriously wounded")

# p1.pprint()

#     else:
#         p1.dammage
#         p1.health = p1.health() - 1
# maxrange = 12 # pt_attack = random.randrange(maxrange) # Xp = 1  # we will work on that later # print(pt_attack) # return random.randint(0,5) # def pprint(self): #     print(self.dammage()) # print(p1.health()) # p1.pprint() #     else: #         p1.dammage #         p1.health = p1.health() - 1