GithubHelp home page GithubHelp logo

psfblair / conwaylife3d Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 0.0 712 KB

A version of John Horton Conway's Game of Life extended to three dimensions, using the Unity game engine with scripts written in F#.

F# 100.00%

conwaylife3d's Introduction

Conway's Game of Life - 3D

A Unity Game with code in F#

This simulation is an extension of Conway's Game of Life from 2D to 3D.

From A. K. Dewdney's "Computer Recreations" column in Scientific American around 1987, which proposes a notation for rules of life-like simulations:

Life wxyz is the rule set in which an alive cell will stay alive in the next generation if it has n live neighbors and w ≤ n ≤ x and a dead cell will become alive in the next generation if y ≤ n ≤ z.

For example, Rule 4555 means that a living cell dies if it has less than four or more than five living neighbors and a dead cell becomes alive if it has exactly five living neighbors.

For three dimensions, people seem to like 4555. See for instance, the comments in [life3d.c] (http://web.mit.edu/ghudson/dev/nokrb/third/afs-krb5/xlockmore/life3d.c):

/* 4555 life is probably the best */
/* 5766 life has gliders like 2d 2333 life */
/* There are no known gliders for 5655 or 6767 so the others may be better */

The current version of the game uses 4555. In the future I may make the rule configurable.

conwaylife3d's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.