For extra credit, use those shiny new HTML5 graphics capabilities & take advantage of the GPU's to make it really fast! I could imagine getting someone from AMD/ATI or nVidia to do this over this long weekend. At 05:18 PM 8/29/2013, Tom Rokicki wrote:
I suspect you'll do best putting what simple key functionality you want in a few dozen lines of your own JavaScript.
For the grid size you probably want, a standard two-array, nested-loop approach will assuredly be plenty fast.
It will take you much less time to write it yourself than to adopt all these other solutions.
Even adding RLE parsing support is pretty trivial.
For interest you might consider using colored life rules (like three-color voting); most of them subsume the standard two-state rules but add a bit of shiny.
-tom
On Thu, Aug 29, 2013 at 5:13 PM, Mike Stay <metaweta@gmail.com> wrote:
Javascript Golly in under 10K, MIT license: https://github.com/sbarski/jolly
On Thu, Aug 29, 2013 at 6:05 PM, Mike Speciner <ms@alum.mit.edu> wrote:
A quick google search revealed http://pmav.eu/stuff/javascript-game-of-life-v3.1.1/ among many others. This one seems to have an MIT license.
On 2013-08-29 19:43, scott@scottkim.com wrote:
I'm proposing to Google an interactive Google Doodle to honor Martin Gardner, which would contain 6 minigames (one for each letter of GOOGLE), highlighting six things Gardner wrote about. One of those games of course should be a version of Life. Does anyone know of or have a Life engine that could be modified for this use? I'd prefer to open-source the code, but that is not essential. I'm guessing it should be in Javascript to be browser friendly (the Turing Google Doodle was open-source Javascript). -- Scott Kim