https://github.com/benjaminaaron/gameoflife
A simple implementation of the famous Game of Life. More seeds to come and more UI functionality.
https://github.com/benjaminaaron/gameoflife
Last synced: 29 days ago
JSON representation
A simple implementation of the famous Game of Life. More seeds to come and more UI functionality.
- Host: GitHub
- URL: https://github.com/benjaminaaron/gameoflife
- Owner: benjaminaaron
- Created: 2015-07-10T18:39:57.000Z (almost 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-07-12T15:45:03.000Z (almost 10 years ago)
- Last Synced: 2023-08-06T03:59:30.013Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://benjaminaaron.github.io/GameOfLife
- Size: 154 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GameOfLife
A simple implementation of the famous Game of Life.**TODOs**: More seeds, easy seed-maker mode, maybe user-submitting of seeds (requires db). More UI functionality.
Bruteforce run through tons of possible seeds in a stats view? Halts automatically at repetition (detect also same pattern but translated). Optional coloring of new alive cells for one generation. Make grid infinite, automatically zoom to see all or manually zoom.Possible approach for endless field and better performance: store alive cells as x/y-key in a hashmap (just keys are enough though), put 0/0 at the centre. Upon dead the entry gets deleted from the hashmap. Track top-leftest and bottom-rightest alive cell to auto-zoom the view.