while(rand() % 1000 < 990){ //Check if I have the balls to kill myself today
WakeUp();
Piss();
LieInBedTill5PM();
Eat();
SurfTheIntertubes();
fap();
Bed();
}
static struct _Entity{
int State, Location;
}Anonymous = {Sleep, Home};
int hour;
void Update_Entity(struct _Entity *enti, int hour)
{
switch(hour % 24){
case 0:
enti->State = Sleep;
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
break;
case 9:
enti->State = Eat;
break;
case 10:
enti->State = Travel;
break;
case 11:
enti->Location = Work;
enti->State = Work;
case 12:
case 13:
case 14:
case 15:
break;
case 16:
enti->State = Travel;
break;
case 17:
enti->Location = Home;
enti->State = Eat;
break;
case 18:
enti->State = Play;
case 19:
case 20:
break;
case 21:
enti->State = Code;
case 22:
case 23:
default:
break;
}
}
How productive /prog/ could be if you all cooperated on software projects.
Sharing headers/tips/code snippets, rewriting and optimizing each others code.