You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the game of life doesn't know if it has died completely. I suggest adding a check from time to time if the buffer is empty, if it is, the game has died and we need to initiate a new one.
It also misses the "mutation parameter". Meaning that sometimes (derived from sensor data maybe?) there's a change that instead of dying the cell lives or even multiplies against the rules. This should be randomized so that the effect is more uneven.
The current way of instantly changing the led's brightness to 0xFFF or 0x000 is not very nice, maybe it should calculate where the new offspring are and after that start to increase their brightness (or decrease it) to the full brightness. This way the change is more observable and neat. This could be achieved so that you set the LED's like before on or off, but you set them additively by reading the current value and adding (or subtracting) to it until it's on full brightness (or dead). It may be slow, but there's no need to hurry.
The text was updated successfully, but these errors were encountered:
Implemented the first two. I didn't look into adjusting brightness, though. I've got some crude idea (basically just a "mutate" flag + some get_led thingy) but didn't get that working yet.
Currently the game of life doesn't know if it has died completely. I suggest adding a check from time to time if the buffer is empty, if it is, the game has died and we need to initiate a new one.
It also misses the "mutation parameter". Meaning that sometimes (derived from sensor data maybe?) there's a change that instead of dying the cell lives or even multiplies against the rules. This should be randomized so that the effect is more uneven.
The current way of instantly changing the led's brightness to 0xFFF or 0x000 is not very nice, maybe it should calculate where the new offspring are and after that start to increase their brightness (or decrease it) to the full brightness. This way the change is more observable and neat. This could be achieved so that you set the LED's like before on or off, but you set them additively by reading the current value and adding (or subtracting) to it until it's on full brightness (or dead). It may be slow, but there's no need to hurry.
The text was updated successfully, but these errors were encountered: