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.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарии ( 0 )