Skip to content

rennyjaff/virtual-pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

virtual-pet

virtual pet allows you to care for a pet throughout it's life cycle using Javascript

Description

virtual-pet has the following features:

You can name your pet ๐Ÿˆ ๐Ÿถ ๐Ÿ 

Your pet will age, as they get older, they get hungrier and less fit ๐Ÿ˜ฎโ€๐Ÿ’จ

You can walk your pet to increase it's fitness ๐Ÿพ

You can feed your pet to decrease it's hunger ๐Ÿฅฉ

You can talk to your pet to see if it needs feeding or walking ๐Ÿ—ฃ๏ธ

If your pet gets gets to 30 years old, or gets too hungry or unfit, it will die ๐Ÿ’€

It can have a baby and start the cycle of life all over again ๐Ÿ‘ถ

Install

Fork the repository to your GitHub profile.

Clone down your fork to your machine.

Change directory into your cloned folder and run npm install.

Instructions

Make a new pet using the Pet constructor e.g const pet = new Pet("Ted")

Increase their age by 1, their hunger by 5 and decrease their fitness by 3 using the growUp function

Walk your pet using the walk function

Feed your pet using the feed function

Check on your pet's health using the checkUp function

Check that your pet is alive using the isAlive function

Grow your pet family using the haveBaby function

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published