Last active
December 17, 2015 18:39
-
-
Save practicingruby/5654499 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| An ecosystem with ten members each of ten unique species(***) play a simple game... | |
| On each round, each creature rolls a 100 sided dice: | |
| - If it rolls a 1, it dies. | |
| - If it rolls a 2, it creates an exact clone of itself which joins | |
| the game on the next round | |
| - Otherwise, nothing happens and the creature simply moves on to the next round | |
| Then all the creatures repeat the process again, and again, and again. | |
| What patterns do you think will emerge in the ecosystem as a whole as | |
| the game goes on? | |
| Think about the problem and answer it based on your intuition first, before | |
| attempting to program it or analyze it formally. Did you guess right? | |
| ---------------------------------------------------------------------------- | |
| (***) The only distinguishing factor between species is that | |
| they are a member of that species (i.e. the only thing that separates a Foo | |
| creature from a Bar creature is that one is labeled Foo and the other | |
| is labeled Bar). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@chastell: Yeah, I find the results of this riddle unsettling too. :-/
Thanks for sharing your code, it's a neat visualization.