Skip to content

KariNoir/virtual-pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

virtual-pet

I want my pet to eat, potty, sleep, and play; these are the strings

Play reduces sleep and eat and drink;

Eat increases Sleep (energy) by 1; Eat decrease Potty by 4; If Eat is less than 6 then Hungry; Eating ++3

Sleep decreases Potty by 2; Sleep increase Food by 2; If Sleep is less than 6 then tired; Sleeping ++2

Play decrease Sleep by 3; Play decrease Eat by 2; If Play is less than 6 then sad; Playing ++3

Potty increases Play by 2; Potty decrease Eat by 2; If Potty is less than 6 then need go; Pottying ++3

Max sleep 10; Max Eat 10; Max Potty 10; Max Play 10;

Every 20 seconds all instances decrease by 1; If Sleep is 0 then dead; If Eat is 0 for 20 seconds then dead;

No Methods should be higher than 10 or lower than 0;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages