Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More robust and lively game of life... #64

Open
mtaalas opened this issue Sep 21, 2012 · 1 comment
Open

More robust and lively game of life... #64

mtaalas opened this issue Sep 21, 2012 · 1 comment

Comments

@mtaalas
Copy link
Member

mtaalas commented Sep 21, 2012

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.

@ghost ghost assigned bebraw Sep 21, 2012
@bebraw
Copy link
Contributor

bebraw commented Sep 23, 2012

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.

@bebraw bebraw removed their assignment Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants