Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Latest commit

 

History

History

life

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
layout title permalink redirect_from machines styles
page
"Game of Life" Demo
/devices/leds/life/
/devices/life/demo/
id type name config
lifeDemo
leds
Game of Life Demo
life.json
.pcjsContainer .pcjsTitle .pcjsControls .pcjsControl .pcjsDiagnostics .pcjsConsole _lifeDemo _displayLife
background-color border border-radius overflow padding
slategray;
1px solid black;
15px;
auto;
8px;
font-weight
bold;
display
table;
display padding-right vertical-align
table-cell;
8px;
middle;
clear
both;
font-family width
Monaco,"Lucida Console",monospace;
100%;
position display float margin-right margin-bottom
relative;
inline-block;
left;
32px;
16px;
position
relative;

"Game of Life" Demo

Using PCjs Devices, here's a simple demo of John Conway's "Game of Life", using a grid of simulated LEDs. Red, Blue, or any other LED color can be specified in the URL.

There is also a "Game of Life" Color Demo that allows you to change LED colors.

{% include machine.html id="lifeDemo" %}

Game of Life
Run
Step
Reset
Stopped
None
Save to URL
Diagnostics
<textarea id="printLife" class="pcjsConsole" cols="128" rows="20"></textarea>
Clear