Computer Science Canada

my game of life

Author:  RobinK [ Wed Feb 02, 2005 6:47 pm ]
Post subject:  my game of life

I wrote the game of life for my com sci final project.
Got perfect -2 marks for no comments +2 bonus marks.

Right now it runs pretty slow in large grids, but I am working on another linked list implementation that will be faster. For now I disable the "Survive/Birth Rules" since it was EXTREMELY slow using the arrays (required the use of string.indexOf() constantly in an infinite loop). I will reenable it latter with the linked list.

Some sizes/grids do not work correctly. They will be drawn fine, but only function for a certain portion of the grid (this is due to the way I calculated the gird, try 300/800 grid for an example of what I mean).

You can try my online applet here: http://www3.sympatico.ca/roy.kissore/Life.html

Author:  poly [ Wed Feb 09, 2005 8:08 pm ]
Post subject: 

hmm I put in a grid of 10 x 10 and hit NEW GAME but nothing...can you give us a quick run through of what to do to start the game

Author:  RobinK [ Sat Feb 26, 2005 6:52 pm ]
Post subject: 

I forgot to mention that the first box needs to be less than or equal to half of the second.


FIRST BOX = GRID SIZE
SECOND BOX = SIZE OF GRID IN PIXELS

Author:  ayotise [ Sat May 21, 2005 7:14 am ]
Post subject:  Help me run your program successfully...

i have seen and ran your program on "Game of Life". I don't really know how to operate it. Can you give me an hint on how to do it...

Author:  Hikaru79 [ Sat May 21, 2005 11:19 am ]
Post subject: 

If you guys are unfamiliar with conway's Game of Life, then just read this primer: http://www.bitstorm.org/gameoflife/

Author:  alikhan [ Mon May 23, 2005 1:42 pm ]
Post subject: 

thats pretty neat, but is there a way that you could make the individual boxes larger?

Author:  alikhan [ Mon May 23, 2005 1:49 pm ]
Post subject: 

nvm i just learned. this is pretty good

Author:  RobinK [ Sun Jul 10, 2005 10:41 pm ]
Post subject: 

Ok, it has been a long time...

Let's just say I was bored and decided, out of the random, to update my program. Well that is pretty much the turth. I want to dedicate some summer time to imporving my programmnig skills. Which includes my java skills and a start on learning C/C++.

Although identical in appearence, I rewrote a ton of code. I did a lot of clean up. It is over 200 lines shorter now thanks to inheritance and has three working grids to play with. I also fix quite a few bugs and made some optimzations to the threads.

Enjoy!

http://www3.sympatico.ca/roy.kissore/Life.html

PS: The Survive/Birth IS STILL DISABLED. I plan to implenment this later then I chanage the 2d arrays to linked list. I can enable now, but it is EXETREMELY slow on an array even on high-end processors.

Author:  didsbub [ Fri Dec 09, 2005 6:30 pm ]
Post subject: 

Fun Game. Good time waster


: