robyng / jest-rpg

0 stars 0 forks source link

enemy object #3

Open robyng opened 2 years ago

robyng commented 2 years ago

An Enemy object has the following properties:

name weapon health strength agility potion An Enemy object has the following methods:

getDescription() getHealth() getAttackValue() isAlive() reduceHealth() Write appropriate tests for the Enemy() constructor and methods.