6

function day() {

do {
if(baby.sleeps()) {
try {
sleep(getAlarmTime() - getTime());
} catch (e) {
wakeUp();
}
}
} while (getTime() < getAlarmTime());

eat(breakfast);

commute(work);

work();

eat(lunch);

work();

commute(home);

cook(dinner);

eat(dinner);

switch (babyStatus) {
case 'awake':
entertainBaby();
break;

case 'asleep':
if(getRandom(1, 100) === 100) {
doSideProject();
} else {
playOverwatch();
}
}

return;

}

Comments
Add Comment