NathanaelWhite/Jest-another-RPG

Create player Obj

Closed this issue · 0 comments

  • Player obj will used to to store methods and properties related to the user's character

Player properties are as follows:

  • name
  • health
  • strength
  • agility
    Player methods are as follows:
  • getStats()
  • getInventory()
  • getHealth()
  • getAttackValue()
  • isAlive()
  • addPotion()
  • usePotion()
  • reduceHealth()
  • Write tests for the Player() constructor and methods