by Andreea Ros - [andrcatros] (https://github.com/andrcatros)
A virtual pet Object for Javascript.
- Pet Objects have 7 properties:
name
andspecies
(these are constructor argument),age
,fitness
,hunger
andisAlive()
. - Currently (as of v 1.1) Pet Objects can be one of 4
species
:dog
,cat
,turtle
anddragon
. Each species behaves differently. - Pet Objects can
growUp()
,feed()
andwalk()
. - Pet Objects also have the array property
children
and parent Pet Objects can get children with the methodsadoptChild()
andhaveChild()
.
- Jest (https://jestjs.io/) - was used to write the tests for this project (see test folder).
This is version 1.1.