Skip to content

chopikus/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game-of-life

The explanation blog can be found here: https://chopikus.github.io/game-of-life-explanation/

demo.mp4

Usage

  1. Download any pattern in .rle format. A few examples are here.
  2. Open https://chopikus.github.io/game-of-life/, choose any .rle pattern.
  3. Enjoy your pattern simulation!

Steps to build and run locally

  1. Install emsdk.
  2. Before cloning the respository make sure git lfs is installed to properly pull the examples.
  3. Clone a repository.
  4. mkdir build; cd build -- create build folder and go to it.
  5. emcmake cmake ..;
  6. make -- builds C++ backend;
  7. make test -- tests C++ backend;
  8. cd ../front.
  9. Run local server from the current folder. Example: basic-http-server .

Helpful projects

This implementation is largely inspired from this amazing explanation made by johnhw!

cpp-lru-cache is used in this implementation (Copyright (c) 2014, lamerman)