Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.22 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.22 KB

Life

Glider

Conway's Game of Life

This is an optimized version of Conway's Game of Life

Using an inspired approach from The Graphics Programming Black Book, we can store the cell state and neighbor count in one char byte.

Cell

This along with other minor optimizations gives us an almost 30x compute improvement over naive approaches.

Dependencies

CMake was used to create create build files, you can install it using the instructions on their website https://cmake.org/download/

This application also uses SFML, you can also install it using the instructions on their websites: https://www.sfml-dev.org/tutorials/2.5/#getting-started

On linux it's as easy:

sudo apt-get install libsfml-dev

Build Steps

git clone https://github.com/ash-xyz/life # Clone repository
cd Life
mkdir build # Create build folder
cd build
cmake .. # Create cmake build files
cmake --build . # Automatically runs build tools, can also be opened in IDE

And finally, run ./Life in the build folder.

TODO

  • Finish writing Tests
  • Write Catch2 Benchmarks