Thread: A Challenge!

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    13

    Cool A Challenge!

    CHALLENGE

    I wanna see who can make the best simple Console application that uses AI. What i mean by that is, it will talk back to you... You talk, it responds... I just wanna see who can do it...

    Good Luck
    ~Silencer~
    What is this "C.O.D.E." you speak of?

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    I've been interested in doing something like this for a while: can someone give me a start: how do you get the first thinking part? how does it generate it's own sentences.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    You give it a basic vocabulary by defining sentence structure and grammar, then write up a file for it to read from with all of the words/phrases that it can use in response. The program will read from the file a phrase or several words pertainng to the input and build a coherent response. If the user inputs something that the AI isn't programmed to respond to it will simply respond with a default statement, such as "I'm sorry, I don't understand".

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

  4. #4
    Registered User samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Newport
    Posts
    382
    ... I just wanna see who can do it...
    Of course you do
    Current Setup: Win 10 with Code::Blocks 17.12 (GNU GCC)

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    i wrote this as one of my first programs. It has a VERY simple AI if you can even call it a AI. But it might be of some use(although I can't figure out for what :-D )
    "Christ died for our sins. Dare we make his martyrdom meaningless by not committing them?"

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    i wrote this as one of my first programs. It has a VERY simple AI if you can even call it a AI. But it might be of some use(although I can't figure out for what :-D ) The other problem with it is it written in straight C.
    "Christ died for our sins. Dare we make his martyrdom meaningless by not committing them?"

  7. #7
    Registered User samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Newport
    Posts
    382
    Doesn't compile. Not surprising, seeing as:

    Code:
    char plans [128];
    
    if(plans == 'yes')
    Compare strings with strcmp with double quotes - or - compare single chars. Make up your mind which you are doing.

    And:

    Code:
    plans = tolower( plans );
    tolower accepts single chars passed by copy. You can't give it a pointer to a char.
    Current Setup: Win 10 with Code::Blocks 17.12 (GNU GCC)

  8. #8
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    Hi

    This seems like an interesting, fairly somewhat simple challenge. Something to keep me occupied when I am bored.

  9. #9
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    Like I said I wrote it when I first started. I could probaly right a much better one now but owell.
    "Christ died for our sins. Dare we make his martyrdom meaningless by not committing them?"

  10. #10
    Registered User samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Newport
    Posts
    382
    But if that was the finalised source code, how did you even get it to compile?
    Current Setup: Win 10 with Code::Blocks 17.12 (GNU GCC)

  11. #11
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Isometric, u might want to change ur sig before some people here get very mad.

  12. #12
    Registered User
    Join Date
    Feb 2002
    Posts
    27
    samG, I think isometric is ignoring you...

    btw, nothing wrong with the sig. I say...

  13. #13
    Registered User
    Join Date
    Feb 2002
    Posts
    27
    And now that I've taken the time to look at Isometrics source I must point out that this is in no sense anything like the AI suggested by Silentsharp. What he's talking about is a Turing Machine, a concept developted by Alan Turing (check the site, its actually quite interesting) of a machine that could talk back to you.

    The fact of the matter is that to date no one has been able to convinsingly build a Turing Machine (so it's pretty difficult...).

    The difference between a Turing Machine and Isometrics source is that a the machine reacts on your questions instead of asking the questions, expecting a 128(max) char string in return and then using that string in a standard reply.

    With a Turing Machine you would have a complete conversation without you notecing the fact you're talking to a machine. If anyone here would be able to build such a program I think he or she would not only be an instant "super member" but he or she would also probably be eligable for a nobel prize...

  14. #14
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >to date no one has been able to convinsingly build a Turing Machine
    That's not entirely correct. In reality several turing machines have been created and successfully fooled people into believing that they were talking to another human. A turing machine is rather easy to create seeing as how people are so gullible.

    A true AI that can respond fluently and accurately to any input is incredibly difficult, if possible at all. If you simply want to make a turing machine then it shouldn't take too much work, but if you want a real artificial intelligence you've got your work cut out for you.

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

  15. #15
    JoeBobby
    Guest
    I have seen this done on the AI movie website. It is pretty amazing, though it can be very slow at times due to web traffic. I would sugest you check it out if you get a chance:

    http://www.aimovie.com/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. AI Challenge
    By unknown_111 in forum General AI Programming
    Replies: 0
    Last Post: 10-02-2007, 12:18 AM
  2. A Challenge in C++
    By Brad0407 in forum C++ Programming
    Replies: 38
    Last Post: 07-18-2007, 12:56 PM
  3. Programming Challenge (for my school)
    By Ezerhorden in forum C++ Programming
    Replies: 2
    Last Post: 01-04-2006, 06:56 AM
  4. Challenge?
    By Mackology101 in forum C Programming
    Replies: 5
    Last Post: 11-23-2004, 02:30 PM
  5. Requesting a challenge
    By RealityFusion in forum C++ Programming
    Replies: 8
    Last Post: 08-18-2003, 08:24 PM