Skip to content

Conway's Game of Life, with colors and randomness

Notifications You must be signed in to change notification settings

alekz/random-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life, with colors and randomness

This is a variation on a theme of Conway's Game of Life. In classic Life each cell has one of the two states: dead or alive. In this version each cell has two parameters: "energy" (the more "energetic" cell is, the brighter it looks) and "color" (hue).

Some of this variation's rules:
- New-born cells inherit average color of their "parents".
- Parents of the same color produce more "energetic" (strong) cells than the differently-colored ones, this allows to exist populations of different colors which almost don't mix together.
- Each cell "mutates" with time: its color and energy are changed every frame to a tiny random amount; energy tends to increase on average.
- If total cell population is too high, energy of all cells is slightly reduced every frame, this prevents the Life from overcrowding.
- When, by the Game rules, cell is supposed to die, its energy is significantly reduced instead, and if the cell was "energetic" enough, it can still be kept alive (but very weak).
- Sometimes "energetic" enough "parents" give birth to a new cell even if it is not allowed by the Game rules (it means still patterns and oscillators aren't stable anymore).

About

Conway's Game of Life, with colors and randomness

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages