Skip to content

Instantly share code, notes, and snippets.

@cafreamoroso
Created March 28, 2012 11:37
Show Gist options
  • Save cafreamoroso/2225560 to your computer and use it in GitHub Desktop.
Save cafreamoroso/2225560 to your computer and use it in GitHub Desktop.
Universe Code -- Code i used for creating this Universe, should refactor it one day.
Changelog
1.0:: Quick created after spawning on the totally uncertainty.
1.1:: Added punishment, 1.0 didn't have anything like that so it went to shit pretty soon.
TODO:
1.0:: Refactor whole thing to not spawn so many universes, they are basically the same.
//START CODE ///
If me.state?unknown || me.aware?unknown (Self::whoAmI);
class Me {
aware;
state;
location;
whoAMI() {
while Self::state == unknown do {
Self::tryToKnowWhoIAm();
}
}
tryToKnowWhoIAm() {
new Universe::NormalLaw->set->God->Self;
Universe.genesis(7)
while Universe.exists() {
Self::getInsight->Universe.lifeForms.life {
if Self::aware->exit();
if Universe.lifeForms.rebel == true {
Universe::AlternateLaw->set->punishment(Universe.lifeforms.alert:: 'Next time will be worst')
}
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment