Wednesday, 7 July 2010

John Conway’s Game Of Life


    Game of life  is devised John Conway is a British mathematician John Horton Conway in 1970. As a part of my last Java assignment I re designed and added more components to the game under the Java lecturer Professor Simon M. Lucas’s guidance. I was really excited to make this application just after seeing Simon’s example of the Game Of Life.



The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead. Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:


  1. Any live cell with fewer than two live neighbours dies, as if caused by under-population.
  2. Any live cell with more than three live neighbours dies, as if by overcrowding.
  3. Any live cell with two or three live neighbours lives on to the next generation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

The initial pattern constitutes the seed of the system. The first generation is created by applying the above rules simultaneously to every cell in the seed—births and deaths happen simultaneously, and the discrete moment at which this happens is sometimes called a tick (in other words, each generation is a pure function of the one before). The rules continue to be applied repeatedly to create further generations  







You can create your own rules by changing the bits on the bit editor in the right hand side. You can stop and Resume your game anytime by just pressing the Start/Stop button. By changing bits you can create really cool patterns on the game window. As an example the following picture shows one of the rules I have made



I won’t talk about the Java code and the logics of this program but If you want to know or if you want to play this game,  just email me or leave a comment. I’ll send you more information


Thank you for visiting My blog

No comments:

Post a Comment