Life


Java Life 2D, Life 3D, Life 4D, Ant 2D, Ant 3D, and Loop

Java Life2D

Here is a simple 2D Life viewer (much borrowed from xlock C code). It not only supports square life, but hexagonal, triangular, and even pentagonal life. The square stuff you probably have seen before... The hexagonal includes life forms discovered by Callahan, Andreen, and Bays. The triangular life with 12 neighbors includes many life forms discovered by Carter Bays including 2 gunships. Newly added is the pentagonal life (Cairo or basket weave tiling) including a glider discovered by Carter Bays and one found by me. Ideas on improving and bug fixes will be kindly received. :) Neighbors value of 3 or 4 are also possible but does not seem to produce gliders without the rule causing random patterns to expand without bounds. See notes for more info.

Neighbors Tiling Configuration Applet
5 Pentagonal (Cairo Tiling) Life2D5
6 Hexagonal Life2D6
7 Pentagonal (Cairo Tiling) Life2D7
8 Square Life2D
9 Triangular (no far corners) Life2D9
12 Triangular Life2D12

You can download the jar file (preserve the .jar extension), and then it can be run as an application like "java -jar Life2DApp.jar".

Java Life3D

Here is a simple 3D Life viewer (much borrowed from xlock C code). It not only supports cubical life, but rhombic dodecahedral life and truncated octahedral life as well. See notes for more info. I did not want to complicate it with Java3D, since it is a very simple 3D display, and wanted speed. Though it may be nice... Neighbors value of 6 and 8 also possible.

Neighbors Tiling Configuration Applet
12 Rhombic Dodecahedral (Hexagonal Close Packing) Life3D12
14 Truncated Octahedral (Cubic Close Packing) Life3D14
18 Cubical (Edges and Corners) Life3D18
-18 (alt 18) Rhombic Dodecahedral (Moore Neighborhood) Life3D-18
20 Cubical (Faces and Edges) Life3D20
26 Cubical Life3D

You can download the jar file (preserve the .jar extension), and then it can be run as an application like "java -jar Life3DApp.jar".

Java Life4D

Here is a simple 4D Life viewer (much borrowed from Life3D). It not only supports tesseractic life, but New icositetrachoric life as well. See notes for more info. Other neighbors value of 8, ..., 56, 72 are also possible, but not explored. Do not expect to magically "see" 4D objects... currently only give one 3D view (a zone) at a time.

Neighbors Tiling Configuration Applet
24 Icositetrachoric Life4D24
80 Tesseractic Life4D

You can download the jar file (preserve the .jar extension), and then it can be run as an application like "java -jar Life4DApp.jar".

See project notes for todo list and history. Please let me know if I left out anything.

Java Ant2D

Here is a simple New Langton's Ant viewer (much borrowed from xlock's loop). Much of it not tested. This one even has one on a Cairo Tiling.

Neighbors Tiling Configuration Applet
3 Triangular Ant2D
4 Square Ant2D
5 Pentagonal (Cairo Tiling) Ant2D
6 Hexagonal Ant2D

You can download the jar file (preserve the .jar extension), and then it can be run as an application like "java -jar Ant2DApp.jar".

Java Ant3D

Here is a simple New Langton's Ant viewer (much borrowed from xlock's ant3d). Much of it not tested. This one has a rhombic dodecahedral one in addition.

Neighbors Tiling Configuration Applet
6 Cubical Ant3D
12 Rhombic Dodecahedral Ant3D

You can download the jar file (preserve the .jar extension), and then it can be run as an application like "java -jar Ant3DApp.jar".

Java Loop

Here is a simple New Langton's Loop viewer (much borrowed from xlock's loop). Much of it not tested. This one has a hexagonal one in addition. Make the field bigger and it will produce a 2 armed mutant. Also when these loops die they seem to erase themselves (both features were serendipitous).

Neighbors Tiling Configuration Applet
4 Square Loop
6 Hexagonal Loop

You can download the jar file (preserve the .jar extension), and then it can be run as an application like "java -jar LoopApp.jar".

Source and Jar Files

Source Code Jar File Xml File
life2d.zip Life2DApp.jar life2d.xml
life3d.zip Life3DApp.jar life3d.xml
life4d.zip Life4DApp.jar life4d.xml
ant2d.zip Ant2DApp.jar
ant3d.zip Ant3DApp.jar
loop.zip LoopApp.jar

See project notes for todo list and history. Please let me know if I left out anything.

More 3D Life and 4D Life stuff

John Conway's Life was initially explored in 3D by Carter Bays.

A very useful tool by Lee Meeker for finding life forms (particularly 3D and 4D) can be found at xl4d. You will need X to run it (Windows users download Cygwin and also the programming tools and X found there).


Send comments/suggestions to:
Life maintainer

Maintainer's Home Page
Last Revised: 1 August 2011