# Neurotoads Python RPG — занятие 35
# Тестирование версии 1.0

def use_potion(hp,inventory):
    if "зелье" in inventory and hp<10:
        hp=min(10,hp+5)
        inventory.remove("зелье")
    return hp

inv=["зелье"]
assert use_potion(6,inv)==10 and inv==[]
assert use_potion(10,inv)==10 and inv==[]

def damage(hp,value):
    return max(0,hp-value)
assert damage(2,5)==0
print("Проверки функций пройдены")
print("Игровые сценарии A, B и C нужно отдельно пройти в своей игре.")
