English 简体中文
Probably one of the most fantastic but pratical demo of Conway's Game of Life, based on Javascript, Canvas and dat.GUI.
Warning: This DEMO is only available out of Mainland China, if you are currently in Mainland China, please refer to Chinese README.
Conway's Game of Life is a computer game based on a kind of Cellular Automatons invented by the British mathematician John Horton Conway in 1970, and proved Turing complete. It originally appeared in Martin Gordon's "Math Game" column in Scientific American in October 1970. The principle is very simple, that is, there are several cells living on a two-dimensional plane, and its surviving or not at the next moment depends on the existence of cells in the surrounding 8 grids. The specific rules are as follows:
The plane is theoretically infinity, but due to the device restrictions, it can only be large as possible. This repo is a Web program of Conway's Game of Life, based on pure Canvas and dat.GUI.
script.js
.index.html
, adjust on the panel top-right.Collection is a collection of patterns, which can be loaded when starting this game and placed on the map.
You can follow the instructions in collection.js
to create your own Collection, and insert it in index.html
following its guide and modified parameter collection
in script.js
.
You can also follow the instructions in translator.py
, create your own Plaintext files(.cells) and use translator.py
to transfer it to Collection script.
Please don't try opening all.js
, it might be too large for your device to handle.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。