Tuesday, June 23, 2009

Partial source code of the Matrix

Some sections of the source code of the Matrix was clandestinely revealed to me yesterday by a mole amongst the gods. Here it is. I am revealing it at great personal risk. So, please make good use of it.


// Partial but crucial sections of the program for life of person X


void main()
{

X.body = new body;
X.enlightened = X.awakened = FALSE;
X.ego = random (1, MAX_EGO);

while (X.ego)
{

while (X.body)
{
update_ego (&X.ego, X.enlightened, X.awakened);
X.body -= random(1, X.body.life_remaining());
is_enlightened (&X.enlightened);
is_awakened (&X.awakened);
}

delete X.body;
X.body = new body;
X.enlightened = X.awakened = FALSE;

}

print "X is back amongst the gods";
return 0;

}


update_ego(ego, enlightened, awakened)
{

if (enlightened)
ego = 0
else if (awakened)
ego--
else
ego += random(-1, 1);

}

No comments: