viernes, noviembre 10, 2006

C Life


/****************************************
Program designed for entertainment usage only!
Do not Compile!!!
*******************************************/


#include stdio.h
#include time.h
#include math.h

struct freak
{
int geek_level;
struct life vida;
int alcohol_in_veins;
int randomability;
};



void main()
{

int i,j,k;
int rands_around;

struct freak guille;

guille.randomability = 0.9;
guille.geek_level = 1000;


init guille.vida('Paris')
{
rands_around=1;
guille_alcohol_in_veins=100;

if (rand() > 0.01)
i=fork();

else if(i>0)
{
for(k=0;k< guille.geek_level^(randomability)*rands_around;k++)
{
rand();
printf("Shit happens... often!\n");
}
exit(0);
}

if(i==0)
{
wait();
init guille.vida('Brussels');
{
rands_around=0;
alcohol_in_veins=20;

j=fork(j);

if(j>0)
{
for(k=0;k< guille.geel_level^(randomability)*rands_around;k++)
{
rand();
printf("Shit happens... again!\n");
}
exit(0);
}

else if(j==0)
{
wait();
printf("Puto SAR... :S\n");
guille.vida(default);
}


kill(guille.vida('Brussels');
kill(guille.vida('Paris');
}



/******************************************
For those who can understand this:
This was pretty much last week for me :)
*******************************************/


Escuchando: Blues Brothers - I'm a Soul Man