This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6616 - rocklife: Conway's Game of Life
Attached to Project:
Rockbox
Opened by Matthias Wientapper (mattzz) - Friday, 02 February 2007, 23:11 GMT+2
Last edited by Antoine Cellerier (dionoea) - Friday, 29 June 2007, 21:40 GMT+2
Opened by Matthias Wientapper (mattzz) - Friday, 02 February 2007, 23:11 GMT+2
Last edited by Antoine Cellerier (dionoea) - Friday, 29 June 2007, 21:40 GMT+2
|
DetailsThis is rocklife, Conway's Game of Life, a completely pointless plugin :-P
"The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is the best-known example of a cellular automaton. The "game" is actually a zero-player game, meaning that its evolution is determined by its initial state, needing no input from human players. One interacts with the Game of Life by creating an initial configuration and observing how it evolves." (Wikipedia) The initial configuration is a random pattern. The grid is computed modulo (i.e. exceeding a border means entering it on the opposite side). The age of a cell is shown by its colour. Usage: * Play/Select: Next generation * Up: Play/Pause * Down: re-initialize grid * Power: quit Screenshots: http://mattzz.dyndns.org/twiki/bin/view/Projects/RockboxGameOfLife |
This task depends upon
Closed by Antoine Cellerier (dionoea)
Friday, 29 June 2007, 21:40 GMT+2
Reason for closing: Accepted
Additional comments about closing: Applied. Thanks.
Friday, 29 June 2007, 21:40 GMT+2
Reason for closing: Accepted
Additional comments about closing: Applied. Thanks.
- fixed bug in mode/button management
- added status line, showin generation count and population (activate with button left)
- re-defined buttons:
pla_fire: run/pause
pla_right: step
pla_down: select start pattern
pla_left: toggle status line
Static things fade to white, I assume this is intentional.
Oscillating things fade to white, and then suddenly vanish. I'm assuming the vanishing is not supposed to be intentional, when the static things get to hang around, is it?
yes, this is intended.
> Oscillating things fade to white, and then suddenly vanish.
They should not. This is a bug, probably driven by an overflow of the "unsigned char age" value.
I will have a look into this - thanks for the feedback.
The attached patch changes this, it also uses greyscales on greyscale targets. This might make the result a bit "lighter" as there is no different background color. Haven't checked this though, the result looks ok from a first look. Also included the needed change to the SOURCES file (which was missing in your patch)
I did do my coloring by neighbor count though. Look forward to seeing the effect of using age.
- added "glider gun" start configuration
- fixed 2bpp handling
- checked on ipod video, nano, h120 simulators
- checked on ajr, sansa hardware
- backlight stays on now
Cursor down selects start pattern, cursor left toggles status display and cursor right does a single step (when stopped).
Pressing "A" quits the plugin.
At least that's what works fine in the simulator.
What exactly is it what you are missing?