Skip to content

Instantly share code, notes, and snippets.

@k2052
Created July 11, 2011 16:23
Show Gist options
  • Save k2052/1076207 to your computer and use it in GitHub Desktop.
Save k2052/1076207 to your computer and use it in GitHub Desktop.
If God Was A Programmer

The Universe.

Worked on this last week. Not quite complete, very early alpha. Use at your own risk!

Getting started

  1. $ gem source --add http://god.org
  2. $ gem install strings
  3. $ gem install atoms

Run it: $ universe --daemonize

TODO

  1. Add support for time travel.
  2. Write tests.
  3. Other cool shit

Known Issues

There is some problem with collisions that I haven't quite worked out yet. Every 700 billion years the universe hits another one and lets just say the bang is something to see.

I'd stop it running before they collide and make sure you keep backups of any species.

Last go around I had this really cool species that was highly intelligent, looked a bit like me and lived in complete peace with each-other and the rest of the species. They grew to occupy the whole of the universe, but alas I didn't backup them. Haven't had another good batch like that one yet, sucks oh well.

#platypus.duck.beaver

TODOS:

  • Number two isn't very DRY. I'm thinking its adequately covered by the first one. Probably take it out later.

Commandments

  1. You shall have no other gods before me.

  2. You shall not make for yourself any carved image, or any likeness of anything that is in heaven above, or that is in the earth beneath, or that is in the water under the earth; you shall not bow down to them nor serve them. For I, the Lord your God, am a jealous God, visiting the iniquity of the fathers on the children to the third and fourth generations of those who hate me, but showing mercy to thousands, to those who love Me and keep My commandments.

  3. You shall not take the name of the Lord your God in vain, for the Lord will not hold him guiltless who takes His name in vain.

  4. Remember the Sabbath day, to keep it holy.

  5. Honor your father and your mother, that your days may be long upon the land which the Lord your God is giving you.

  6. You shall not murder.

  7. You shall not commit adultery.

  8. You shall not steal.

  9. You shall not bear false witness against your neighbor.

  10. You shall not covet your neighbor’s house.

Revisions:

  1. After some issues with respect I decided to move murder to number 6. Those little douchebags are testing my patience.
<?php if(Humans::areHavingAnal())
{
$doomsday = new doomsday();
$righteous = $doomsday->findRighteous();
$doomsday->flood($save = $righteous);
}
git commit -m "added singularity" -a
git push origin master
git commit -m "added a nice little solar system to milkyway, hope to find a good use for it" -a
git revert -n 34034 -m "removed the dark matter, shit kept blowing other shit up" -a
git commit -m "added the stuff from Lucifers pull request for new Earth features. Earth now has these things we're calling 'snakes' weird little guys, but they talk which is cool." -a
$('#tree-of-life .apple').pick(function() {
$('.human').addClass('knowledge').addClass('naked');
$('#god').alert();
});
#earth { display: orbit-sun; border-radius: 6371km; color: blue; -star-transition-duration: 365d; orbit-radius: 1AU; }
#mars { display: orbit-sun; border-radius: 3389km; color: red; -star-transition-duration: 686d; orbit-radius: 1.52AU; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment