-
Easy rule modification
-
Portable for many TFT displays such as ILI9341
-
Randomly generated maps so you are only changing rules
- Game of life : R1/B3/S2-3
- Blob life: R4/B24-33/S10-33
- Coral: R1/B3/S45678
- Larger than life: R5/B34-45/S33-57
* neighbors_min 33 - minimal neighbors cout to survive
* neighbors_max 57 - maximal neighbors cout to survive
* neighbors_to_spawn_min 34 - count of neighbors to spawn new pixel
* neighbors_to_spawn_max 45 - count of neighbors to spawn new pixel
* Spawn_probability 40 - probability in[%] to spawn in first iterration
* neighbors_range 5 - range of neighbors around
N - neighbor N N N N N
C - cell N N N N N
N N N N N C N N
N C N N N N N N
N N N <- range = 1 N N N N N <- range = 2
If you want to display "Game of life" on other display or use diffrent uC you have to change those functions for yours
And change those defines to fit your hardware
examples below--->
Here put your display function to draw a pixel .In display_pixel_Dead color should be color of your background
For creating random map you need to define your uC RNG function .Function have to return random number form 0 to 99
- Adafruit GFX library for fonts -https://github.com/adafruit/Adafruit-GFX-Library
- Bodmer's TFT_espi library for ST7789 display -https://github.com/Bodmer/TFT_eSPI