(a screenshot here, soon)
This is just a simple Game of Life implementation in C++ using SDL - with a small twist: cells are colored, they inherit the average color of their neighbourhood upon birth with a slight change to mimic evolution.
- C++ compiler
- SDL2 development libraries
make
(for my own notes)
- render board in pattern if wrap is enabled
- usage screen (which button does what), status display (speed, size, etc)
- cell and board "rework" (cells shouldnt next tick state, there should be 2 boards instead, switching active and next on tick) (a basic test version of this did not perform better, should figure out more ways to optimize, for example with a precomputed color map)
- board constructor rework (2 ways to initialize board: give surface, cell size and cell padding -> fill with as many as possible || or give surface, table dimensions and cell padding -> compute biggest cell size)
- multithread support for simulation (and rendering?)
MIT.