• 0

Game of life in C


Question

Hey all,

I'm trying to found in the last hour a decent simple code for the "game of life" in C language with no success. Then i thought, maybe one of the neowin members will come to the rescue! :p

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

These are the rules:

http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

1. Any live cell with fewer than two live neighbours dies, as if by needs caused by underpopulation.

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, unchanged, to the next generation.

4. Any tile with exactly three live neighbours cells will be populated with a living cell.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.