Conway's Game of Life in PuzzleScript

265 views
Skip to first unread message

Scott Hughes

unread,
Oct 10, 2013, 1:29:07 PM10/10/13
to puzzle...@googlegroups.com
Here is Conway's Game of Life implemented in PuzzleScript:


I had a discussion with a friend tonight about what games (if any) were impossible to make in PuzzleScript, and we concluded that nothing is technically impossible (provided it fits into the tile-based arrow-keys-and-X-button format), although plenty of games would require unreasonable amounts of rules and/or objects. This is really just another way of saying PuzzleScript is Turing complete, as is shown by the fact that it can represent the Game of Life.

And oh yeah, since the Game of Life is Turing complete, it can obviously be implemented within itself:

Scott Anderson

unread,
Oct 10, 2013, 2:56:30 PM10/10/13
to puzzle...@googlegroups.com
This is cool.  I was casually working on an implementation but you beat me to it :). The adder solution is pretty clever.

ff68...@gmail.com

unread,
Oct 12, 2013, 10:42:56 AM10/12/13
to puzzle...@googlegroups.com
I also made a Game of Life. Your implementation has 50 rules, mine has 13364. :)
http://www.puzzlescript.net/editor.html?hack=6903053

An advantage would be that you can draw in my implementation.

Scott Hughes

unread,
Oct 12, 2013, 11:07:27 AM10/12/13
to puzzle...@googlegroups.com, ff68...@gmail.com
On Sunday, October 13, 2013 1:42:56 AM UTC+11, ff68...@gmail.com wrote:
Your implementation has 50 rules, mine has 13364. :)

Wow, I'm surprised the compiler can even generate that many instructions from so few rules!

I like your use of bitmasks to do the counting, very clever. Yay, gliders. :)

abrobecker

unread,
Aug 19, 2014, 12:40:59 PM8/19/14
to puzzle...@googlegroups.com
Thanks for this one!
I knew Puzzlescript zas turing complete! You proved it! :D
Reply all
Reply to author
Forward
0 new messages