Ahmed25526/jest-another-RPG

Create a Player object that will be used to store methods and properties related to the user's character.

Opened this issue · 0 comments

A Player object has the following properties:

name

health

strength

agility

A Player object has the following methods:

getStats()

getInventory()

getHealth()

getAttackValue()

isAlive()

addPotion()

usePotion()

reduceHealth()

Write appropriate tests for the Player() constructor and methods.