GtkLife Screenshot A Conway's Life application for Linux/Gtk+

GtkLife is a fast, user-friendly implementation of Conway's Life: a form of artificial life developed by the mathematician John Conway.

Conway's Life is played on a square grid, where each cell is either alive or dead. The initial pattern "evolves" from generation to generation according to a few very simple rules: live cells with less than 2 or more than 3 neighbors (including diagonals) die, while dead cells with exactly 3 neighbors come to life. The results can be surprising: Conway's Life has self-organizing qualities, exhibiting a number of recurring themes. In addition, Life patterns can be constructed that have computational abilities, even to the point of Turing-completeness.

GtkLife features a highly-optimized Life algorithm, a giant universe size (1 million x 1 million cells), a modern user interface, and a clickable sidebar of bundled patterns. Users can explore the included patterns, as well as draw on the grid and see what they come up with on their own. Facilities are provided for zooming, traversing the grid in various ways, cutting and pasting blocks of cells, and running patterns at adjustable speed.

GtkLife will read and write multiple file formats in use among Life enthusiasts, including the popular RLE format.

License: free
Requirements: Gtk+ (1.2 or 2)

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
noyesnonononoyes
Suggest an update

Comments

Commenting on this is someone who doesn't really know much about this Conway's Life thing, it's still sort of cool to play with for 20 minutes.

Two minor issues:

1.The console keeps displaying:

Gtk-CRITICAL **: file gtkcontainer.c: line 715 (gtk_container_add): assertion `widget->parent == NULL' failed.

Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed.

though this does't appear to actually cause any problems

2. If you set the pattern collection to "custom" it doesn't remember what you set it to next time the program is run.

Re: Pretty patterns posted by tril42 on Aug 28 2004 11:55 AM
Thanks for the comments!

  1. I'll try to track this down. I'm not seeing the messages, perhaps because I compiled Gtk+ without debugging.
  2. To change the pattern collection permanently, go into preferences. The File->Change Pattern Collection command only changes it for the current session.

Suzanne

Re: Pretty patterns posted by James Gregory on Aug 28 2004 1:38 PM
The 217 one appears whenever I press "start", whilst the 715 one appears whenever I press "stop"
Re: Pretty patterns posted by tril42 on Aug 28 2004 5:42 PM
If I understand what's happening here, I'll bet you don't see the start/stop button change color when you click it (which you should). My code is doing something shady and Gtk+ isn't letting me get away with it when debugging is enabled :-) This should be fixed in the next release.
If you build the binary and run it the program basicley don't work but you don't get any warrings (It works if you 'make install' it)

When you move the slider "side or buttom) the 'life' disapear

Re: More issiues posted by James Gregory on Aug 28 2004 7:22 PM
If you make a 1 million line long word document with a few lines of text in the middle and move the scroll bar up or down a little the text will disappear.
Re: More issiues posted by anonymous on Aug 28 2004 11:09 PM
Word will almost certainly die a horrible death long before you get to a million lines! ;)
Re: More issiues posted by tril42 on Aug 29 2004 7:45 PM
Thanks for the comments. The first issue will be addressed in the upcoming release. (As for the second, well, what James said :-)
I was reading a bit about this game, and the wikipedia mentions how by altering the rules slightly w.r.t. how many neighbours a cell must have to be born or killed, very different universes can be created.

How hard would it be to add an option for which levels of crowdedness cause either birth or death?

Re: A thought posted by tril42 on Aug 29 2004 7:52 PM
This is something I've considered before. It's not entirely easy, because GtkLife uses hardcoded lookup tables for speed, which are based on the classic rules of Life. But it may happen in a future release.
Re: A thought posted by Daeglin on Jun 10 2005 4:13 AM

I think that the standard rules of Life are the most interesting so I do not miss the modifications much.

BTW: This is a very nice port. I had much fun with it.

I prefer this to the Emacs version.

Conway came to my university's math department to give a "talk". Basically we all hung out, ate pizza and he showed us various interactive math puzzles. Fun guy, talk to him if you ever get the chance. So this post doesn't really add anything to the conversation...

what the hell is this ... this isn't a game imho !
Re: GtkLife posted by anonymous on Sep 16 2006 9:28 AM
http://en.wikipedia.org/wiki/Conway's_Game_of_Life

Log in or register to rate this game or post a comment.