need algorithm for game of life

This is a discussion on need algorithm for game of life within the C Programming forums, part of the General Programming Boards category; Please, can anybody tell me were I can find the algorithm for the game of life in C. thankz...

  1. #1
    Unregistered
    Guest

    Lightbulb need algorithm for game of life

    Please, can anybody tell me were I can find the algorithm for the game of life in C.
    thankz

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,499
    It's called a search engine - it's name is www.google.com
    If you can't master this, give up programming now

  3. #3
    Unregistered
    Guest

    whatever

    thanks salem! great tip!
    you must feel so great for that witty remark...
    next time if you dont have anything usefull to say, just dont say it....

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    thanks salem! great tip!
    you must feel so great for that witty remark...
    next time if you dont have anything usefull to say, just dont say it....
    He's right, Mr. Important UNREGISTERED.
    Get up off your ass and find something yourself.

    - edit -
    BTW, I don't feel great making replies like these.
    I'm sure Salem doesn't either.
    Why?
    Because we had to tell you something that's VERY obvious.
    The world is waiting. I must leave you now.

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    11

    Thumbs up

    'Data Structures & Program Design in C' 2nd Edition by Kruse Tondo and Leung. Uses the Game of Life as a running example.

    PS - The idea of this board is to help one another. If you two guys don't want to do that, don't waste your time posting.

    Good luck with the Game of Life 'Unregistered'.

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >The idea of this board is to help one another.
    Agreed. Salem was helping the OP to help himself.

    >thanks salem! great tip!
    >you must feel so great for that witty remark...
    >next time if you dont have anything usefull to say, just dont say it....
    If you ask a stupid question you get a stupid answer, perhaps you should do some research before running to us with your tail between your legs. The information you want is very easily found and Salem's response was perfectly valid, if you don't like it then go to a forum where the members concentrate more on making you feel good than helping you out.

    -Prelude
    My best code is written with the delete key.

  7. #7
    Registered User
    Join Date
    Apr 2002
    Posts
    200
    My God! Salem probably does more than anyone else here to keep these boards alive and (fairly) productive. And maybe you should take your own ridiculous advice, steven. That's really helpful, telling 'unregistered' to go buy an expensive book, for the 'running example.' If someone needed help implementing a differentiating algorithm, for example (logical flaw,etc), would you just tell him/her to go buy the complete Art of Programming? Sweet Jesus.
    BTW, who the **** are you to talk about the "idea of the board", steven? There is a rather large difference between 2574 and 5, buddy.
    Last edited by fyodor; 05-18-2002 at 09:03 PM.
    I go to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of my race.

    Windows XP consists of 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.

  8. #8
    Registered User
    Join Date
    Mar 2002
    Posts
    11

    Wink

    I stand corrected. Apologies.

    (fyodor try decafe)

  9. #9
    Unregistered
    Guest
    I've heard of that game before.

    too lazy to write out entire thing so here's a prototype:

    // in C
    #include<stdio.h>
    #include<stdlib.h>
    #include<time.h>
    //include extra files here ( possibly like a map file? )

    struct player
    {
    // add stuff here
    };

    int main(void)
    {
    // determine how many players
    // set an array based from previous statement
    // initialize required variables ( example: int variable for die and the arrays for cards and other stuff )
    // insert loop here (possibly a do...while(arguement(s)) or while(arguement(s)) )
    // inside loop: do the stuff here like make random number and other stuff ( just read the set of instructions that is included from the MB game )
    return 0;
    }

    // good luck

    - toaster

  10. #10
    Unregistered
    Guest
    oh yeah, be sure not to violate any copyright laws from the game.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Implement of a Fast Time Series Evaluation Algorithm
    By BiGreat in forum C Programming
    Replies: 7
    Last Post: 12-04-2007, 01:30 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. Life, The Universe, and everything else
    By ZooTrigger1191 in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 03-29-2003, 04:33 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21