Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mopp/lifegame

Conway's Game of Life is written by C
https://github.com/mopp/lifegame

Last synced: 13 days ago
JSON representation

Conway's Game of Life is written by C

Awesome Lists containing this project

README

        

Conway's Game of Life
http://ja.wikipedia.org/wiki/%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0

誕生 -- 死んでいるセルに隣接する生きたセルがちょうど3つあれば、次の世代が誕生する.
生存 -- 生きているセルに隣接する生きたセルが2つか3つならば、次の世代でも生存する.
過疎 -- 生きているセルに隣接する生きたセルが1つ以下ならば、過疎により死滅する.
過密 -- 生きているセルに隣接する生きたセルが4つ以上ならば、過密により死滅する.

・縦横と角の接続
・全てのセルが死滅した場合の判定
・変化なしの場合の判定

by mopp.