Conway's Game of Life

I am playing around with Conways Game of Life for some days.
It is nothing special or new but i am going to implement some features which could be interesting.
The only thing which is ready now is the Distribution view with which i wanted to see if the ‘cells’ are getting distributed equally after some time.
Another feature i thought of is to generate some kind of music from the Game.
My goal is to get it running proper on Android, which would be cool with pinch zooming etc. .
I cant ensure that it will run, it runs on my computer but wont work on another (Could not find the main class)

The distribution view with blur (low pass).

The normal view.

Controls:
Mouse dragged / Arrow keys: move around
1 : normal view
2 : distribution view

  • / - : increase / decrease speed
    w / s : zoom in / out
    r : reset

Download:

I’d like to see terrain generated from the distribution view.
This could be good for landscapes that change over time.

As for the main class error. It could be that the Java version used to develop this is higher than the version giving the exception. I recommend using Java 6 if you happen to be using Java 7 currently.

That’s a lot of cells in that distribution view. How many FPS you getting from that?

Ah nevermind, the thumbnail made the field seem much larger. I really like the effect – maybe add a low-pass filtering algo to screen out the red cells and it really would look even more like some organic growth than conway’s life normally does.

Any chance you could put it up on github or bitbucket?

Missing main class has something to do with the manifest or something.
it works in eclipse or similar IDE, but not as distributed jar, right?

Solution:

java -jar Gameoflife.jar

Or:

javaw -jar Gameoflife.jar

Yes i am working with Java 7 (OpenJDK), i think i’m going to switch to Oracle Java :-
It works when started in Intelij / eclispe and as a .jar file on my machine (Fedora 17)
The error happened on a Windows 7 machine.

I simply double-clicked on the jar (on a Windows 7 machine) and it just worked.

The project is now hosted on GitHub.

https://github.com/LucasKl/Plotter