Thread: Game of life

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    *this
    Join Date
    Mar 2005
    Posts
    498

    Game of life

    I have written a erronous game of life.
    the game of life is as follows:

    neighboring cells are defined as:
    * = cell
    # = possible neighbor

    ###
    #*#
    ###

    every empty cell with three living neighbors will come to life next generation

    any cell with two or three neighbors will live into the next generation, cells with less or more will die

    births and deaths occur simultaneouslya

    program must be run for 5 generations
    _________________________________

    i tested my program and some bacteria seem to work and others appear to be random, please help me get an idea of what im doing wrong.

    My program of Life:

    life.cpp
    thanks,
    Josh
    Last edited by JoshR; 04-01-2005 at 04:08 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open-source Game Project
    By Glorfindel in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 03-24-2009, 01:12 AM
  2. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  3. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM
  4. Game Of Life
    By din1983 in forum C Programming
    Replies: 20
    Last Post: 10-11-2005, 10:36 PM
  5. Please help with some coding..
    By stehigs321 in forum C Programming
    Replies: 2
    Last Post: 10-27-2003, 06:44 PM