Support and General Use > Plugins/Viewers
Game of Life
man:
Hi,
today I played around a little bit with the game of life:
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Then I thought, that it would be cool, to have this game implemented on my iPod.
What do you think about that?
man.
Llorean:
The game needs 0 buttons. It is a 0-player game.
Assuming you wanted to be able to manually enter a pattern, it needs two buttons, "toggle square" and "go", plus 4 more to move up/down and left/right within the grid (this can be lessened to 1 if you want really slow grid traversal).
piquadrat:
We just had cellular automatons and the Game of Life in a CS class, and as I'm trying to learn C and just installed Rockbox on my iAudio, this is the ideal little task for me :)
But don't expect anything fancy soon. I hacked up a console version of the game this afternoon and will port it to the X5 today or tomorrow, with a randomly filled world to begin with (editing and the like will come much later ;) ).
BTW: how big do you think a cell should be? With the limited resolution of our players, 2x2 pixels is IMHO the most we can get without making the world to small...
Llorean:
I think 2x2 pixels ought to be fine, with no borders between cells (for editing, later, the selected cell can simply blink).
linuxstb:
--- Quote from: piquadrat on December 19, 2006, 08:19:10 AM ---We just had cellular automatons and the Game of Life in a CS class, and as I'm trying to learn C and just installed Rockbox on my iAudio, this is the ideal little task for me :)
But don't expect anything fancy soon. I hacked up a console version of the game this afternoon and will port it to the X5 today or tomorrow, with a randomly filled world to begin with (editing and the like will come much later ;) ).
BTW: how big do you think a cell should be? With the limited resolution of our players, 2x2 pixels is IMHO the most we can get without making the world to small...
--- End quote ---
Remember that Rockbox works on many different LCDs - from 112x64 mono up to 320x240 full-colour.
So it's a good idea not to hard-code anything related to the display, but use #defines which can then be set based on the LCD of the target.
Navigation
[0] Message Index
[#] Next page
Go to full version