Skip to content

An implementation of Conway's Game of Life with a colorful twist.

License

Notifications You must be signed in to change notification settings

chrisjagoda/GameOfLife-Colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

An implementation of Conway's Game of Life with a twist involving phenotypes in the form of color.

Color are randomly assigned to each living cell on game initialization and passed down to the next generation from two parents picked randomly from the living neighbors of each cell with an equal chance for the child cell to posess either parents' color.

Dark/Light modes and switching cell colors on and off are included in the example.

An optional parameter, evolve, is also supported which increases reproduction of the cells creating different patterns.

Directions to Run

Install Browserify

npm install -g browserify

Fetch dependencies

npm install

Compile .ts files

Either enter the following command

node node_modules/typescript/bin/tsc.js

or use the tsc script from our package.json with

npm run tsc

Run Browserify

Either enter the following command

browserify src/app.js -o bundle.js -s app

or use the browserify script from our package.json with

npm run browserify

Start http-server

Either enter the following command

node node_modules/http-server/bin/http-server -o

or use the listen script from our package.json with

npm run listen

By default http-server listens on port 8080. If this port is taken, use '-p ####' to specify a free port, where #### is the available port.

Shortcut for running all steps in a batch

npm run all

About

An implementation of Conway's Game of Life with a colorful twist.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published