Use this template to create an interactive, JavaScript-based widget of Conway's Game of Life.

Usage edit

Calling this template with no parameters inserts an empty instance of the game. To make it more interesting, specify some initial conditions. For example:

{{Game of Life
| cells = 0,0; 0,1; 0,-1; -1,0; 1,1
}}

Template data edit

Use this template to create an interactive widget of Conwat's Game of Life.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Autoplayautoplay

Start the game as soon as it loads

Example
yes
Booleanoptional
Widthwidth

Width of the widget, in pixels

Default
400px
Example
600px
Stringoptional
Heightheight

Height of the widget, in pixels

Default
300px
Example
400px
Stringoptional
Zoomzoom

Initial zoom of the widget

Default
1
Example
4
Numberoptional
Gridgrid

Enable the grid by default

Example
yes
Booleanoptional
Cellscells

Coordinates of the live cells in the starting position

Example
0,0; 0,1; 0,-1; -1,0; 1,1
Stringoptional