"American chicken oligopoly" just doesn't have the same ring to it, lol
417 karma · joined April 13, 2015
This algorithm can get much, much slower than O(n)
Talk about reinventing the wheel!
I was leafing through the source code and stumbled upon "random.c"
I found it amusing to see how they generated random integers; basically, they have a hardcoded array of "random" values, and whenever the game requires a new random int, it will return the element at the array index and increment the index by 1.
That's not an easy thing to do.
It's exactly like apt-get update vs apt-get upgrade, if you're familiar with those.