Skip to content

sidhantpanda/conway-game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life CLI

Command line version of the zero player game. Wiki page here: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

Some context about this here: https://medium.com/@sidhantpanda/conways-game-of-life-explained-with-some-programming-a2970b468580

Terminal preview

Setup

  1. Clone this repo
  2. Install dependencies: npm install or yarn install.
  3. Run npm start or npm start [rows] [columns].

Samples

I've included 3 samples for fun These are:

  • Blinker

    Blinker configuration

    node samples/blinker.js

  • Beacon

    Beacon configuration

    node samples/beacon.js

  • Glider

    Glider configuration

    node samples/glider.js

Options

This is currently still under development for options. Currently user can only configure number of rows and columns:

npm start 20 16

will start the game with 20 rows and 16 columns

About

Conway's game of life in the terminal using NodeJS

Resources

Stars

Watchers

Forks

Packages

No packages published