Skip to content

ash-xyz/Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Implementation of Conway's Game of Life

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published