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

Report as inappropriate.

Super_Hippo
Super_Hippo presents ...

2015/3/31

Game of Life

Keyboard Control:
- 'c' = clear all
- 'p' = pause/unpause
- 'a' = run one step (if paused)
- 'r' = create a random board
- 'g' = see four glider guns in action (press 'p' afterwards')

In pause mode, you can change the state of each cell using the mouse. Right mouse button to create a cell, left mouse button to remove a cell. Hold spacebar while clicking or dragging the mouse to add/remove 3x3 instead of one cell.

1890 views / 7 in the last 7 days

1 vote | 0 in the last 7 days

Tags: game simulation gun life conway glider

Your browser does not support the canvas tag.
felagundfelagund

2016/2/3

this seems interesting, can you give us more information about whats going on?
Super_HippoSuper_Hippo

2016/2/3

Every act-cycle represents a time step. In each time step, a living cell dies if it has 0, 1, 4, 5, 6, 7 or 8 living neighbour cells. A new cell is created if it has exactly 3 living neighbours. You can read more about it here: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Super_HippoSuper_Hippo

2017/6/13

I only updated a typo in the description, there wasn't a real update here...
A new version of this scenario was uploaded on 2019-06-06 20:40:07 UTC Updated to Greenfoot 3.5.4
A new version of this scenario was uploaded on 2019-06-06 21:00:41 UTC Removed the borders. Each edge is connected with the opposite site.
A new version of this scenario was uploaded on 2019-06-06 21:01:53 UTC Added the possibility to click "Act" to see each act cycle separately.
A new version of this scenario was uploaded on 2019-06-06 21:03:46 UTC Fixed a small bug.
A new version of this scenario was uploaded on 2019-06-06 21:20:27 UTC Apparently the Act button doesn't exist even if it should. You can now press "a" to let it act once when it is paused. (Paused with 'p', not the Pause below the scenario!) The scenario now starts in pause state. Press 'p' to start the simulation instead of pressing "Run" below.
WasupmacuzWasupmacuz

2019/6/6

Very cool!! I made the game of life in the default java library once, it was a nightmare ;)
Super_HippoSuper_Hippo

2019/6/6

I didn't really do anything with default java yet, so I guess everything would be a nightmare for me ^^

See all comments

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

Who likes this?

Wasupmacuz