Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including blessed-life with all npm packages installed. Try it out:

var blessedLife = require("blessed-life")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

blessed-life v1.1.2

A simple game of life simulation using the blessed node module.

blessed-life

This is a simple simulation of Conway's game of life. It's written in javascript for nodejs and targets the command line. It utilizes the following nodejs modules:

Getting Started

Installation

Make sure you have node.js properly installed. Then use npm to install:

$ npm install -g blessed-life

You will probably have to run this command as root like so:

$ sudo npm install -g blessed-life

Configuration

You can write configurations for blessed-life in json. Some examples are given in the example directory in this repo.

Running

You can start the program by opening a terminal and entering:

$ blessed-life

There are many command line switches that can be used (use -h or --help for more information). You can specify a certain configuration file to use by using the -c or --config switch:

$ blessed-life -c example/glider.json

Make sure the value for this switch is a valid path. An asciicast can be found here.

Further Reading

If you want to know a bit more about blessed-life, visit the wiki. Also, feel free to read more about Conway's game of life if you're interested in the theory.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free