[math-fun] Looking for Javascript Life engine
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 -------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
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
-------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
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
-------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
-- Mike Stay - metaweta@gmail.com http://www.cs.auckland.ac.nz/~mike http://reperiendi.wordpress.com
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
-------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
-- Mike Stay - metaweta@gmail.com http://www.cs.auckland.ac.nz/~mike http://reperiendi.wordpress.com
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
-- -- http://cube20.org/ -- http://golly.sf.net/ --
participants (4)
-
Mike Speciner -
Mike Stay -
scott@scottkim.com -
Tom Rokicki