/rainbow_life

Colorful Game of Life written in C++ using SDL

Primary LanguageC++

Rainbow Life, a Game of Life with colorful cells

(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.

Requirements

  • C++ compiler
  • SDL2 development libraries

Building

make

TODO

(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?)

License

MIT.