Ai with C++?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
FlareCaster

Ai with C++?

Post by FlareCaster »

Hi,
I started using irrlicht, with my a few friends but,
I have no idea with ai programming.

Could you show some examples and explain it?

Thanks..
Guest

Post by Guest »

Don't be so friggin' lazy. Use the web:
http://www.google.com/search?hl=en&lr=& ... tnG=Search

Learn something.
ayman
Posts: 51
Joined: Sat Feb 05, 2005 7:33 pm
Location: Piefke State

Post by ayman »

No offense, but your question sounds to me a bit like:
"I heard there are many different religions in the world. Please tell me which one is best?"

When you precisely know, what behaviour you want to implement, then you will know what language you'll need. This is a problem that might solve itself on this way.

Begin with a language you know and try to implement what you want to have in your game. Then you'll maybe experience some flaws of this language and will begin reading a bit over AI.

There are so many possibilities to create AI for a game. What you choose depends from what you have learned (what language, what data structures, ...), if you want an external interface, that offers an AI coding interface for the player, and of course it depends of the problem you are trying to solve. So many constraints ...

You can combine nearly every other language with a C++ program.
Have a look at Irrlichts language bindings: http://irrlicht.sourceforge.net/links.html

Maybe you should try
* LUA - http://www.lua.org/
* Python - http://www.python.org/
* Lisp - http://www.htdp.org/2003-09-26/Book/
* Prolog or Scheme (google your way through)
or just give C++ a try, cause since we got the STL with easy to use container classes like maps for example, the need to use the mighty functional ghosts like Lisp, Prolog or Scheme is much reduced ... from my _very_ personal and subjective point of view.
:wink:
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

:evil: :evil: :evil:
i write 600 lines of code and put it on the wiki and then he doesnt even bother looking at it.

if he doesnt like it thers is an other oen by emil halim.

if he doesnt like that like take some steps:

1-check line of sight
2- check distance
3-shoot
FlyHigh
Posts: 111
Joined: Wed Mar 23, 2005 12:05 am

Post by FlyHigh »

Exactly what sort of AI are you after?

AI is too broad a field of study for a single post asking for help...

Maybe you meant one of the following:

Finite State Machines -> Commonly found in FPS / Platformers etc.
Pattern Recognition / Matching -> Puzzle games / Fighting games
A* -> RTS / Racing / FPS / some puzzle games.

Neural Nets or Genetic Algorithms or NL Processing / Recognition -> Generally to slow or inaccurate for realtime games.
darksun88
Posts: 8
Joined: Mon Aug 29, 2005 12:36 am

Take a look...

Post by darksun88 »

http://www.gameai.com/toolkits.html :wink:
I hope I've helped you!
Final Fantasy VIII and X-2: the best RPGs! :)
Post Reply