SFML community forums

General => General discussions => Topic started by: Nabeel Rehman on April 29, 2017, 05:57:11 pm

Title: Artificial Intelligence.
Post by: Nabeel Rehman on April 29, 2017, 05:57:11 pm
Hi guys, i'm making a tank game in which i need some type of AI to control my enemy tanks i.e they move on their on and fire on their on, I've never done some thing like this before so i have no idea where to start. If you guys could suggest me something related to Artificial Intelligence to start with i'll be very thankful.
Title: Re: Artificial Intelligence.
Post by: Elias Daler on April 29, 2017, 07:06:34 pm
Programming AI by example (https://www.amazon.com/Programming-Example-Wordware-Developers-Library/dp/1556220782) is a perfect start.
Tutorials from this blog (http://www.redblobgames.com/pathfinding/a-star/introduction.html) are pretty great as well.
And if you still don't have enough information, check out this book (https://www.amazon.com/Artificial-Intelligence-Games-Ian-Millington/dp/0123747317) too. :)
Title: Re: Artificial Intelligence.
Post by: GameBear on May 06, 2017, 10:50:13 pm
Hey, I agree fully with Elias.
The book suggested is a great entry point...

One thing that could be important is to figure what kind of Ai you want... How important is "natural" dessisions?
On one end you could just use a state machine. (see enemy? Yes -> attack, no -> next question!)
On the other end you could run a small neural network (or an advanced one)

But some questions...
What are your knowledge of programming?
Any ai knowledge?
Have you made other games or game parts before?
Is this a top down or side view tank game?

And much more...
Best regards.
Title: Re: Artificial Intelligence.
Post by: Sub on May 16, 2017, 11:31:01 pm
Programming AI by example (https://www.amazon.com/Programming-Example-Wordware-Developers-Library/dp/1556220782) is a perfect start.

This is a fantastic book. 

For pathfinding, this (http://www.policyalmanac.org/games/aStarTutorial.htm) was helpful to me in the past. 

On a final note, two years ago I wrote a quick post explaining how I made a Tetris AI here. (http://www.danielpetersen.io/posts/2014-05-04-how-my-tetris-ai-works.html)  Not the most relevant thing for most games, but for Tetris it was surprisingly effective