Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bendoerr/conway-s-groovy-game-of-life
A quick little go at Conway's Game of Life in Groovy
https://github.com/bendoerr/conway-s-groovy-game-of-life
Last synced: 1 day ago
JSON representation
A quick little go at Conway's Game of Life in Groovy
- Host: GitHub
- URL: https://github.com/bendoerr/conway-s-groovy-game-of-life
- Owner: bendoerr
- Created: 2011-10-29T16:34:06.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-19T21:19:44.000Z (over 12 years ago)
- Last Synced: 2024-11-02T22:42:20.460Z (about 2 months ago)
- Language: Groovy
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Conway's Game of Life
====[Wikipedia](http://en.wikipedia.org/wiki/Conway's_Game_of_Life)
Written in Groovy
----I was feeling board one day and I always liked the emergent behavior that comes from the simple rules. This is an implementation in groovy with a super basic swing gui on top of it.
**Rules**
* Any live cell with fewer than two live neighbors dies, as if caused by under-population.
* Any live cell with two or three live neighbors lives on to the next generation.
* Any live cell with more than three live neighbors dies, as if by overcrowding.
* Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.**Running**
groovy GroovyLifeGUI.groovy
Place the initial cells, then click cycle and continue to click cycle to see the result of the rules being applied to the current state.