Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benruns/game_of_life_python
https://github.com/benruns/game_of_life_python
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/benruns/game_of_life_python
- Owner: BenRuns
- Created: 2014-11-16T23:24:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T08:19:23.000Z (about 10 years ago)
- Last Synced: 2024-12-01T13:48:16.700Z (2 months ago)
- Language: Python
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
game_of_life_python
===================This was a result of a code retreat. I'm not sure if this is the best ways for the game of life. I wrote this after coming home at the
end of the day.
What I found is that a lot of people became somewhat obsessed with defining the grid. My solution focusing on defining the points.
Each tick of the code updates a python dictionary with the active inactive points.Each key is a tuple for the x and y coordinates on the grid
and the value is 0 for a dead cell and 1 for a living cell. It only stores the cells that are active or where active.
It does not attempt to store a value for all items in and empty grid.