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

Report as inappropriate.

Game/maniac
Game/maniac presents ...

2013/10/14

Game Of Life - with a twist

This scenario was inspired by John Conway's Game of life.

You will start off with the rules of John Conway's Game of life. Although you can edit the rules on the side.

if statement:

if has (number) neighbours
set color (color)
endif

boolean checks:

-has (number) neighbours
-has neighbour (direction)
-is (color)
-is (state)

commands:

-set color (color)
-set state (state)
-set neighbour (direction) color (color)
-set neighbour (direction) state (state)

colors:

-white
-black
-red
-orange
-yellow
-green
-blue
-purple
-random (or a color spelt incorrectly)

states:

-alive
-dead (or alive spelt incorrectly)

directions:

-N (North)
-NE (North East)
-E (East)
-SE (South East)
-S (South)
-SW (South West)
-W (West)
-NW (North West)

Controls:

-Shift => pause/play
-C => clear screen
-Left click/drag => draw on living pixels
-Right click/drag => kill living pixels

A big thanks to bourne for the text box GUI

this is in beta at the moment I will release more versions, increasing the amount of possible combinations.

4592 views / 14 in the last 7 days

3 votes | 0 in the last 7 days

Tags: game simulation with-source life program

This scenario is a member of: Games/Simulations by Game/maniac


open in greenfoot

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.

A new version of this scenario was uploaded on Tue Oct 15 06:26:08 UTC 2013 You can now have if statements inside if statements
Game/maniacGame/maniac

2013/10/17

Vote if you want me to continue with this idea
Game/maniacGame/maniac

2013/10/18

Does no one else like this idea?
danpostdanpost

2013/10/18

Sometimes the more basic, the better. Take for example my Viral Spiral scenario. It was the basis for 'Viral Spiral Polygons' and for 'Viral Spiral Controlled'; yet, the original got many more votes than the more involved take-offs. I do not know -- maybe because you actually see the arms swinging around in it?
Game/maniacGame/maniac

2013/10/18

Hmm. I see your point, although the main purpose of the scenario is to show off the parsing. Maybe I should rename the scenario to a more appropriate name? Or should I go back to the drawing board?
JetLennitJetLennit

2013/10/18

I like this... please continue!
Game/maniacGame/maniac

2013/10/18

Ok
bournebourne

2013/10/18

I'm not familiar with the Game of Life at all, but the parsing looks to be a nice addition. Seems to have a similar premise of my UserInfo Greeps. Maybe you could add a feature to save the text with UserInfo.
Game/maniacGame/maniac

2013/10/19

Ok
lordhersheylordhershey

2013/12/20

Love the game of life. I really like that script parsing you have there. I made an implementation but not on this site. I mixed the color of cells based on their neighbors so you can see a bit of the child's ancestry, but it gets impossible to tell when they mix to the point of all being bluish-grey. [url=http://www.lordhershey.com/JavaGames/GameOfLife/index.php]Life[/url]

See all comments

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

Who likes this?

kiarocks bourne JetLennit