Skip to content

C++(and ported JS/WebAssembly) Game of Life which can be used in the CLI.

Notifications You must be signed in to change notification settings

antonhibl/gameoflife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Written in C++ with either randomized start or a standard game start. compile for c++ using g++ life.cpp -o life or clang life.cpp -o life, or if you prefer to use JavaScript then run the life.js file using node life.js. The program itself can be run just using ./life or optionally you can include a --random flag to create an even more randomized start to the game. The game will either terminate and tell you how many generations have passed or it will run forever; it can be stopped whenever the user choose using Control+C if needed.

DISCLAIMER: This may not work as well on windows due to the fact I utilize ASCII escape patterns to colorize the text in this game, which consequently only works on *nix systems.

EXAMPLE:

Running the game with: ./life --random, the console looks like so:

Game of Life

About

C++(and ported JS/WebAssembly) Game of Life which can be used in the CLI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published