Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Donate
Search
| Go
Wiki
>
Main
>
PluginIndex
>
PluginRocklife
---+!! Rocklife A port of Conway's Game of Life to rockbox from http://en.wikipedia.org/wiki/Conway's_Game_of_Life: Rules The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead. Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur: 1. Any live cell with fewer than two live neighbours dies, as if by loneliness. 2. Any live cell with more than three live neighbours dies, as if by overcrowding. 3. Any live cell with two or three live neighbours lives, unchanged, to the next generation. 4. Any dead cell with exactly three live neighbours comes to life. The initial pattern constitutes the first generation of the system. The second generation is created by applying the above rules simultaneously to every cell in the first generation -- births and deaths happen simultaneously, and the discrete moment at which this happens is sometimes called a tick. (In other words, each generation is based entirely on the one before.) The rules continue to be applied repeatedly to create further generations. --- Rocklife can now open starting configurations saved in the .cells format. See: http://www.bitstorm.org/gameoflife/lexicon/ -- Main.JustinHannigan - 31 Mar 2009 Descriptions of several commonly used file formats can be found <a href="http://psoup.math.wisc.edu/mcell/ca_files_formats.html">here</a>. Some nice collections of starting configurations can be found at the following locations: * David Bell's DBLife collection: <a target="_blank" href="ftp://sunsite.unc.edu/pub/Linux/games/amusements/life/dblifelib-2.tgz">ftp://sunsite.unc.edu/pub/Linux/games/amusements/life/dblifelib-2.tgz</a> * Alan Hensel's collection in Life 1.05 format: http://www.mindspring.com/~alanh/lifep.zip * Mark Niemec's site with many patterns saved in RLE format: http://home.interserv.com/~mniemiec/ I have submitted a <a href="http://www.rockbox.org/tracker/task/11522">patch</a> that adds support for both varieties of .l files as well as .lif/.life and .rle files. I have tested that patterns from the first two work well with the patch. For some reason, the files I have saved from Mark Niemec's site don't seem to produce the desired configuration, but as far as I can tell this is a problem with the files themselves, not with how they are handled. A sample glider saved in RLE format from the psoup.math.wisc.edu site does open properly and generate the expected configuration. -- Main.JustinHannigan - 2010-08-30 --- | *Todo* | *Status* | *Description* | | Colours | %RED%0%%ENDCOLOR% | nicer colours for pixels with respect to age | | Editor | %RED%0%%ENDCOLOR% | editor for start patterns | | Speed-ups | %RED%0%%ENDCOLOR% | probably tons of speed-up opportunities | --- --- CategoryPlugin: Rocklife [Player%Y%, Recorder%Y%, Ondio%Y%, H100%Y%, H300%Y%, H10%Y%, iPod 1G2G%Y%, iPod 4G%Y%, iPod Color%Y%, iPod Mini%Y%, iPod Nano%Y%, iPod Video%Y%, iAudio M5%Y%, iAudio X5%Y%, Gigabeat%Y%, Sansa e200%Y%, Sansa c200%Y%, Sansa Fuze%Y%, MR-100%Y%]
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r14
<
r13
<
r12
<
r11
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
r14 - 16 Nov 2010 - 19:22:19 -
JustinHannigan
Parents:
PluginIndex
Copyright © by the contributing authors.