Archived

This topic is now archived and is closed to further replies.

madhatter256

I'm 16 and I want know how to program AI.

Recommended Posts

Guardian_Light    122
I''m 17 and I want to know how to write Quake4! ( I hope topic is a joke...)

No, seriously, pickup one of the following books...
Tricks Of The Windows Programming Gurus
Windows Game Programming For Dummies

They both introduce AI in a very simple way.

"So much fun, so little time."
~Michael Sikora

Share this post


Link to post
Share on other sites
MikeD    158
How to program AI in three easy steps:

1) Think about what you want the AI to do.

2) Think about how you would achieve it at the most basic, simple level, if you were in the same situation.

3) Take the information the AI needs from the simulated world and program it to carry out the tasks in the same way you would do it.

For instance, how do you pathfind from A to B? How do you avoid dynamic objects while walking? How do you decide the right way to fire a gun to hit a moving target? How do you decide which kind of building to build next in an RTS?

Sure, there''s different, more complex ways of doing this stuff, but the best way of understanding it is just to play about based on what you''d do in the same situation.

Mike

"Experience is something you get just after you need it"

Share this post


Link to post
Share on other sites
Ferretman    276
quote:
Original post by madhatter256
I''m 16 and I want know how to program AI.


Get any of the FPS games and their associated SDKs/kits, such as Quake II or Halflife . You''ll get a full game, a zillion examples on building ''bots on the various web sites supporting the games, and you can just focus on the AI ideas without worrying about a game or anything else.




Ferretman

ferretman@gameai.com
www.gameai.com

From the High Mountains of Colorado

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
how is 16 important
the only thing I can think of is that you are telling us you are probably old enough to read, so we might suggest a library

Share this post


Link to post
Share on other sites
Shannon Barber    1681
Knowing he''s 16 gives an indication about how much education he has...

e.g.
I''m 14, how do I implment a 3D free-time physics engine?
>Study math and calculus for 4 years, try then.

or

I''m 4, how do I program AI?
>Finish programming your own brain, then try programming someone elses.

I''m 16, how do I program AI?
Can you write some C code yet? If not learn C first. Then buy that book, or mod this this game

Share this post


Link to post
Share on other sites
grhodes_at_work    1385
madhatter256 has a specific desire---to know how to program AI.

There''s no reason that his age should prevent him from turning his desire into the goal "I intend to learn how to program AI."

You will have to start slow, since to know how to program AI---anything really---you have to practice and learn.

Be sufficiently motivated to spend the time learning and practicing, and one day you will know how to program AI! Success will be your reward for hard work.


Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
AI:

Its evil! Evil I tell you!

Artificial intelligence is the devil... resist intelligent NPC''s


"He who fights with monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you..."~Friedrich Nietzsche

Share this post


Link to post
Share on other sites
Drizzt DoUrden    100
That was me, Drizzt DoUrden, about evil AI before. Having some username problems.

Artificial intelligence is the devil... resist intelligent NPC''s


"He who fights with monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you..."~Friedrich Nietzsche

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
first, make sure you know at least one programming lauguage well, preferably an object oriented language. Then think what AI means to you, and what you want to achieve with it. usually, the AI algorithm is just an adaptive optimization algorithm. Is this what you want? Or are you interested in Intelligence part. Currently, there are nothing out there that can honestly be called "artificial intelligence". But many are thinking about it. There are many books and articles that discuss this topic. They usually tend to be more philosophical than scientific, although many raise the relationship of quantum mechanics with intelligence and consciousness. Some have argued that there are no such thing as consciousness and intelligence, that they are simply a consequence of the complexity of our brain, which may lead us back to quantum mechanics. This does seem plausible and may explain the lack of intelligence among species with less complex brains. This also may explain evidence of group intelligence displayed by ant colonies, where each ant may lack sufficient knowledge, but as group they perform amazing things. In any case, its an interesting topic and I hope you will have load of fun thinking about it.

Share this post


Link to post
Share on other sites
baldurk    1028
Kinda off-topic I know but I''ll post it NEway, Don''t let your age worry you. As long as you have enough spare time and maybe help from someone more advanced than you (like the people on this forum).
The main problem (which I''m dealing with now) is being a couple of years behind the most basic of topics. I''m making an entry for nehe''s latest contest and while doing so I''ve had to learn LOTS of advanced maths. When you''re just learning trig then going onto 3d math with matrices and vectors just blows your head.
As long as you really want to then you''ll be fine. Just bear with it and eventually you''ll get it

------------------------------
Baldur K

Share this post


Link to post
Share on other sites
Salec    122
pfft. I''m 17 and am developing for Microsoft as well as own a business and am in the process of developing a rather sweet game engine. Don''t bang on him because of his age. I''ve found that most *older* people are too used to old styles and are too anal to learn newer techniques. Some of the worlds best game developers started when they were very young. How old was the guy that programmed the Build engine for Duke3d?? 13? 14? I think bashing someone because of their age is very immature. Anyways, as for AI. AI is evil But worth learning if your up for it. I suggest going to the book store and picking up a few books there.


-Salec

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
So I may get shot for this but is AI just IF THEN ELSE?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
AI is whatever you want it to be. Remember its *artificial* intelligence so aslong as it looks like its intelligent and does what you want then its ok.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Sorry I mean Programming wise is A.I. just If, Then, Else commands? e.g. If food > 18 then buy more

Share this post


Link to post
Share on other sites
Airhead Zoom    122
You know, it''s probably best to stop replying.
This person has posted october 13th, and never again.
I assume this is just some kid who saw some cool game enemy behaviour, thought ''hey I wanna program cool AI'' and after 5 minutes or after they knew that you have to program for it stopped thinking about it.

---
Allow me to clear my head for once...
Stop polluting the air!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
AI comes down to making choices. So yes, IF THEN ELSE could be a way to accomplish that. You usually need some sort of branching statements based on what the environment is telling you.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
I read in the book, Secrets of the Game Sages, that one person develop his AI by playing the game. He start out very simple giving the computer a few things to do and watched the computer. When the computer did something stupid, he would change the AI to fix that problem and then watch it again. It seemed like an interesting method.

I suggest going with the Halflife idea from earlier. You won''t have to worry about the other aspects of game programming if you use a game that is already developed.

Share this post


Link to post
Share on other sites
Airhead Zoom    122
Well, this sounds a lot like how a beginning programmer (and sometimes some advanced programmers ) work.
But IMHO it is better to carefully think out a strategy to create a nice AI.
This way it will be less difficult to program since you already know what you''re going to do and you''ll end up with a little less of a mess...

Greetinx,
Airhead_ZooM

Share this post


Link to post
Share on other sites