This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Something_Smart
Something_Smart presents ...

2013/10/2

Conway's Game of Life

Read a description of this game here: http://en.wikipedia.org/wiki/Conway's_Game_of_Life
Controls: "w" to start.
Space to pause.
"q" to step (hold to temporarily run)
"c" to clear while paused.
"r" to create random distribution while paused (works only in an otherwise empty world).
"s" while paused to receive save code.
"l" while paused to load save code.
While paused, click to add and remove cells.
Also, when you start, it autosaves the configuration. Press "b" while paused to load autosaved code.

3415 views / 16 in the last 7 days

4 votes | 0 in the last 7 days

Tags: game simulation life

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

danpostdanpost

2013/10/2

Would be nice to have a key for random distribution of 'on' cells. Also, noticed that neighbor counting is somewhat flawed along the edges (could not say why). Place two along an edge and four more extending away from that edge forming a 2 by 3 rectangle of 'on' cells with 2 along the edge. On the next cycle, the inner two should go away and two should appear next to where they were extending away from the middle of the rectangle; but this does not happen.
A new version of this scenario was uploaded on Wed Oct 02 13:15:43 UTC 2013 -Added mousedragging to create cells. -Added cell counter and mouse coordinate locator.
A new version of this scenario was uploaded on Wed Oct 02 13:25:33 UTC 2013 -Added random key "r". (Works only in empty world.) -Added clear key "c". -Fixed neighbor counting along edge. (@danpost: the problem was it wasn't counting cells with an x or y of zero as a neighbor.)
A new version of this scenario was uploaded on Wed Oct 02 13:29:38 UTC 2013 -Added pause indicator in top left.
A new version of this scenario was uploaded on Wed Oct 02 14:22:15 UTC 2013 -FIxed clumping along left edge. -Experimented with larger world; might not work.
A new version of this scenario was uploaded on Wed Oct 02 14:23:48 UTC 2013 Made world even larger.
A new version of this scenario was uploaded on Fri Oct 04 02:16:56 UTC 2013 -Fixed dragging bug. -Added saving. -Added auto-saving.
A new version of this scenario was uploaded on Fri Oct 04 12:05:48 UTC 2013 -Fixed code creation, no longer has useless spaces.
A new version of this scenario was uploaded on Fri Oct 04 16:32:46 UTC 2013 -Made codes much mroe concise using RLE(run-length encoding).
A new version of this scenario was uploaded on Fri Oct 04 18:21:28 UTC 2013 -Allowed copyignto and from clipboard.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

sametguzelgun FlyingRabidUnicornPig JetLennit Draymothisk