Another approach could be to run an image convolution kernel in GIMP (or some other image manipulation program). Something like
[
1, 1, 1
1, 0, 1
1, 1, 1
]
and then filter pixels based on ≥4 or <4
An unofficial home for the advent of code community on programming.dev! Other challenges are also welcome!
Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
Everybody Codes is another collection of programming puzzles with seasonal events.
Solution Threads
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 |
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
console.log('Hello World')
Another approach could be to run an image convolution kernel in GIMP (or some other image manipulation program). Something like
[
1, 1, 1
1, 0, 1
1, 1, 1
]
and then filter pixels based on ≥4 or <4
I build a program that runs various species of automata in raylib and c++. I can send you a link if you like. While running, the species can be interchanged (meaning the rule set). I also added different random densities and a gradient option. Plus I colour coded each cell based on the age (dead alive transition) which is very interesting to see.