9

function myLife(time){
if(time.current() < time.alarm1)
sleep();
if(time.current() = time.alarm1){
wakeUp();
if(tired || hungover){
snooze();
sleep();
} else{
getReady(speed.Normal);
goTo(work, speed.Normal);
doMyJob(function(){
goTo(home);
});
}
}
if(time.current() = time.alarm2){
wakeUp();
if(tired || hungover){
snooze();
sleep();
} else{
getReady(speed.Fast);
goTo(work, speed.Normal);
doMyJob(function(){
goTo(home);
});
}
}
if(time.current() >= time.alarm3){
wakeUp();
if(tired || hungover){
workFromHome();
} else{
goTo(work, speed.Fast);
doMyJob(function(){
goTo(home);
});
}
}
}

Comments
Add Comment