Something I pretty soon discovered is this: in the normal game of life, setting different values results in quite boring formations. So now I have the Game of life with various cell races that can fight each other. ![]() If a live cell has neighbours of a rival cell culture which have a total strength greater than the total strength of the friendly (similar) cell neighbours, the cell will turn into an enemy cell, as if eaten or taken over.So, I have implemented a new variation, where you can add different races (cells with other colours) that can also have different values for reproduction and under and overpopulation. But I couldn't help but wander what would happen if you changed more. Having looked at James' implementation I was impressed by how much choice you had - with changing the size, speed and population density. The standard version can be looked at here. This is interesting, as it is possible to characterise the stable constructions in the game and study them in terms of interactions with each other. The interesting thing about these rules, is that they usually result in some stable states that either do not change, or repeat over a set period of time. Any dead or empty cell with exactly three live neighbours becomes a live cell, as if by reproduction.Any live cell with more than three live neighbours dies, as if by overcrowding.Any live cell with two or three live neighbours lives on to the next generation.Any live cell with fewer than two live neighbours dies of loneliness :'(.It is not a game as such - it is a model that follows some particular rules that make the state change every x amount of time.Ĭonway's original rules are the following: Not only is it neat and pretty, but the code is (as always) exceptionally good and clear and uses some of my favourite technologies - html 5 canvas and angular js!Ĭonway's game of life is a cellular automaton devised by the British mathematician John Horton Conway. ![]() A colleague of mine, James Johnstone, recently created his website with lots of goodies in it! One of my favourites is his implementation of Conway's game of life.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |