View Poll Results: How good is the AI(remember, though, that it's a beginner program)

Voters
10. You may not vote on this poll
  • Very Bad

    0 0%
  • Bad

    1 10.00%
  • Good

    5 50.00%
  • Very Good

    4 40.00%

Thread: AI Program

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Question AI Program

    Check out my AI Program. Simple, but kind'a cool, wait a while and sometimes food(!) shows up. I don't know multi-thread programming and that's the next step. But, give me your opinion of the program in general.
    Last edited by drdroid; 04-13-2002 at 07:51 AM.

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    being in linux, i haven't the foggiest

  3. #3
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Haha =) Really cool!

  4. #4
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Thanx

    thanx

  5. #5
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186
    wow, very nice. only thing it freezes my computer, but it keeps running. Nice Job!
    the best things in life are simple.

  6. #6
    it's cool, but you have to use CTRL+ALT+DEL just to close it, because all the controls like the X button don't work. It may be a problem in your messages. I don't know, I'm not very good with regular windows programming. I use Allegro, and it handles all it for me

  7. #7
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Allegro

    I downloaded allegro... but i don't know how to set it up...

  8. #8
    sorry to double-post, but I think it is kinda cool.

    You could take the code from this, and put it into a simple game. You probably already thought of that while you were making it.

  9. #9
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok this is quite good. But simple...



    What you have done is make the "!' appear randomly and when it appears.... The * moves closer to it by the following conditions


    if !X is > *x
    x=x+some value

    same for x..

    This kind of AI is called as weak AI. Where the program does a job blindly.. But a program which learns from it's past is known as Strong AI. But this is good for a beginer.. May be you can develop your skills well.... You seem to be intersted in this. May be game programing is for you

  10. #10
    Registered User
    Join Date
    Apr 2002
    Posts
    200
    pretty neat! However, you'll save yourself time and headaches in the future if you get into the habit of comments and spacing in your conditionals: while (bool1 && bool2) instead of while(bool1&&bool2). That said, its a pretty impressive little program.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  2. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  3. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  4. The Webmasters AI Program
    By sean in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 06-13-2002, 10:27 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM