View Poll Results: what do you use C++ for?

Voters
9. You may not vote on this poll
  • AI tool

    0 0%
  • Graphic/game maker

    5 55.56%
  • make a program to sell $$$

    2 22.22%
  • other

    2 22.22%

Thread: Ai

  1. #1
    Neoseeker's master master2000's Avatar
    Join Date
    Dec 2002
    Posts
    101

    Ai

    is it poseble to make AI with C++. if so how do you make a program that can randomly display preprogramed messages.
    missles on metriods

  2. #2
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Yes, C++ is very capable of making AI. For the preprogrammed messages, just place all the messages in a container like a vector or an array, and then use a random number to call one of them.

  3. #3
    Neoseeker's master master2000's Avatar
    Join Date
    Dec 2002
    Posts
    101

    Question

    yeaaaaahhhh right explane that on a more basic level i've only doing this for a month or so.
    missles on metriods

  4. #4
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Well, first of all, get a good book so that you will understand what we are talking about.... I reccomend Sam's Teach Yourself C++ in 21 Days, or its C counterpart, teach yourself C in 21 days.

    Then, check your grammar/spelling when you post.

    explane that on a more basic level i've only doing this for a month or so.
    Well, that is pretty basic already; but if you change the word "vector" to "array", it might be easier to understand.

    then use a random number to call one of them.
    Should be rephrased as "display the message which is at a random index".
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  5. #5
    Neoseeker's master master2000's Avatar
    Join Date
    Dec 2002
    Posts
    101
    thanks that helps
    missles on metriods

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Hmmmm.....I guess imitation is a form of flattery.

  7. #7
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    Is it just me or does this poll not ask some of the other important things. I'm not sure if anyone goes to all the trouble of learning any type of programming language so all they can do is make AI.
    Not to be harsh, but it needs re-wording (Spell check?)
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  8. #8
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    That was kind of harsh. This is a newbie here. Newbies don't always know exactly what they are talking about.

  9. #9
    Neoseeker's master master2000's Avatar
    Join Date
    Dec 2002
    Posts
    101
    Originally posted by master5001
    That was kind of harsh. This is a newbie here. Newbies don't always know exactly what they are talking about.
    half yes half no i know a little enough to understand most.
    missles on metriods

  10. #10
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmmmm.....I guess imitation is a form of flattery.
    Heh, I read his post and thought... Gee, master must be drunk or something! Then I remembered that it's Master5001 and not 2000... oh well
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  11. #11
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    lol

  12. #12
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Me two, kinda took a double-take there.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  13. #13
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    C++ can be used for AI, but depending on what type of AI you are making, I would not suggest it. Game AI, and genetic programming, and such are ok in C++, but for any attempt to building something 'cognitive' (yes, I know major ambiguity, but it's late and I don't wanna type), I would suggest something else. LISP or Scheme come to mind, but I am naturally weary of those languages.

  14. #14
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    What the hell is the deal with these stupid ass polls that don't have anything to do with the topic? Stop making absurd polls until you figure out what exactly a poll is. Here, let me help!

    Quzah.
    Hope is the first step on the road to disappointment.

  15. #15
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>What the hell is the deal with these stupid ass polls that don't have anything to do with the topic?
    Agreed. And the poll is old anyway.

    Poll now closed... problems? PM me.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple space combat AI
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 01-06-2009, 12:54 AM
  2. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  3. AI Contest Proposal
    By MadCow257 in forum Contests Board
    Replies: 4
    Last Post: 03-13-2005, 03:27 PM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM
  5. Technique of all board-like games?
    By Nutshell in forum Game Programming
    Replies: 28
    Last Post: 04-24-2002, 08:19 AM