Thursday, September 09, 2010

More JavaFx Fun

Here is another JavaFx demo that I've been building. It is a simple implementation of John Conway's "Game of Life".'s_Game_of_Life

The demo is a simple simulator, just click on the boxes to turn them "on" or "off". When you are ready, click on the "start" button to begin the simulation. You can increase the speed at which the simulation runs by moving the slider up and down. You can also step through the simulation by clicking the "Enter" or "Return" key.

Here are the links

Java WebStart: link
Java Applet: link

Here's a link to the source code, link.


Anonymous said...

I haven't looked at the source yet, but I believe your algorithm has some bugs. For example some of the Examples of patterns given in the Wikipedia article are not working, notably the simple Blinker (and the Glider acts funny).
Otherwise, it is a nice implementation.

Rusty Myers said...

This game is cool! I read about the game of life a while ago, but didn't get q chance to see it in action till now! Admitily, I don't have much to gain from "playing", but it's fun just the same. Nice work!

Dan's Blog said...

philho: Yes, there could be some bugs. I'll fully admit that I didn't test the GOL engine that extensively. It was just something I hacked together to power the JavaFX front end.