Posts: 865
Threads: 35
Joined: Dec 2010
In my class we had to make a simple version of
Conway's Game of Life in Python using simple ASCII characters to represent the cells. I was inspired and created a very nice looking (at least IMO) applet version.
http://lantry.us.to/gameOfLife
Right now it just randomly generates a starting board whenever you load the page (so you can refresh to restart) but I might add more control later.
The colors are on a sort of gradient depending on how many neighbors the cell has.
Posts: 295
Threads: 9
Joined: Jun 2011
hmmm......Interesting....
Posts: 855
Threads: 68
Joined: Jun 2010
When I saw Conway I immediately thought Mighty Ducks
Posts: 865
Threads: 35
Joined: Dec 2010
I added some more controls: you can now pause/unpause, move one step at a time (while paused), and control cell size.
Yeah, I'm bumping my thread. Sue me. :P
Posts: 560
Threads: 10
Joined: Jan 2011
Source?
I'd be interested to see how your implementation differs from mine.
Posts: 865
Threads: 35
Joined: Dec 2010
Posts: 560
Threads: 10
Joined: Jan 2011
'salright, the comments which are there are truly masterful ;)
Pleasant code, makes me realise how unnecessarily complicated I made my version.
Posts: 3,462
Threads: 72
Joined: Jun 2010
Gravedig, but what was your coloring scheme? Upon rereading about the game of life, I realized that there is nothing that would serve as a good color making thing. Is it the number of neighbors?
Posts: 560
Threads: 10
Joined: Jan 2011
14 Apr 12, 11:13AM
(This post was last modified: 14 Apr 12, 11:13AM by Frogulis.)
Oui.
public Color getCellColor(int nAmt){ //controls cell color based on neighbor amount
:)
Posts: 3,462
Threads: 72
Joined: Jun 2010
Ahh, forgot I could look at the code. Thanks