Skip to content

tdot124/virtual-pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Pet

This is a virtual pet made using Javascript.

You can give them a name

They can get older

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 too hungry or unfit, it will DIE

If your pet gets to 30 days old it will DIE

Usage

const Pet = require('../src/pet');

// create pet

const pet = new Pet('name');

// ages pet

pet.growUp();

// walk pet

pet.walk();

// feed pet

pet.feed();

// pet check up

pet.checkUp();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published