written by
Wolfgang Christian and Francisco Esquembre
The EJS Game of Life Model simulates a popular 2D cellular automata of a lattice in a finite state which is updated in accordance with a set of nearby-neighbor rules. The universe of the Game of Life, developed by John Conway, is a two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead. Every cell interacts with its eight neighbors to determine if it will live or die (generally when there are too many live neighbors or not enough live neighbors) in the next time step. You can clear the lattice, design initial configurations (click on a cell to toggle between dead/live), and change the lattice size.
The Game of Life JS Model was developed using the Easy Java Simulations (EJS) version 5. It is distributed as a ready-to-run html page and requires only a browser with JavaScript support.
Game of Life JS Source Code
This source code zip archive contains an XML representation of the Game of Life JS Model. Unzip this archive in your Ejs workspace to compile and run this model using EJS 5. Although EJS is a Java program, EJS 5 creates a stand alone JavaScript program from this source code. download 35kb .zip
Last Modified: September 30, 2014
previous versions
<a href="https://www.compadre.org/OSP/items/detail.cfm?ID=12997">Christian, Wolfgang, and Francisco Esquembre. "Game of Life JS Model." Version 1.0.</a>
W. Christian and F. Esquembre, Computer Program GAME OF LIFE JS MODEL, Version 1.0 (2013), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12997&DocID=3577).
W. Christian and F. Esquembre, Computer Program GAME OF LIFE JS MODEL, Version 1.0 (2013), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12997&DocID=3577>.
Christian, W., & Esquembre, F. (2013). Game of Life JS Model (Version 1.0) [Computer software]. Retrieved December 7, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12997&DocID=3577
Christian, Wolfgang, and Francisco Esquembre. "Game of Life JS Model." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12997&DocID=3577 (accessed 7 December 2024).
Christian, Wolfgang, and Francisco Esquembre. Game of Life JS Model. Vers. 1.0. Computer software. 2013. 7 Dec. 2024 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12997&DocID=3577>.
%A Wolfgang Christian %A Francisco Esquembre %T Game of Life JS Model %D September 5, 2013 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12997&DocID=3577 %O 1.0 %O text/html
%0 Computer Program %A Christian, Wolfgang %A Esquembre, Francisco %D September 5, 2013 %T Game of Life JS Model %7 1.0 %8 September 5, 2013 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12997&DocID=3577
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.