KariNoir / virtual-pet-shelter

project for the care and feeding of multiple virtual pets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

virtual-pet-shelter

project for the care and feeding of multiple virtual pets

I want to copy the VirtualPet class from homework: 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;

10 is good, 0 is bad

virtual-pet-shelter2

About

project for the care and feeding of multiple virtual pets


Languages

Language:Java 100.0%