Any Good AI Documentation?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
NeoFLoyd
Prole
Posts: 11
Joined: Tue Oct 18, 2011 12:30 am

Any Good AI Documentation?

Post by NeoFLoyd »

Hello, I've come far in Love2D/Lua since I began and have always thought AI to be a really complex thing to add to a game. I've tried searching AI & Artificial Intelligence on the wiki and nothing comes up, searching the forum for AI yields an error theat my criteria hasn't enough characters, and searching the forum for "artificial intelligence" just gives me results that people have posted involving chanegs to their game.

So does anyone have links to decent documentation of how to add AI/different types of AI to a game?
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Any Good AI Documentation?

Post by MarekkPie »

There is no "Watson" AI or "DeepBlue" AI that you plug into your code and it solves problems. AI is just what you tell the code to do in a situation. For example,

Code: Select all

-- player types "yes"

-- AI
if string == "yes" then print("No") end
The computer made an intelligent decision based on the information it was given. It sits there until the player types yes, at which point it replied no. It responded to its only stimulus, the variable 'string,' and reacted to it. That is AI.

Another example:

Code: Select all

if playerExists == true then
  enemy.fire(player.x, player.y)
end
The computer checked whether the player existed, and if so, it decided to fire at its coordinates. That is AI.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Any Good AI Documentation?

Post by kikito »

http://aigamedev.com/ is very good, but not all of its content is free (they have a subscription model)

http://www.gamedev.net/forum/9-artificial-intelligence/ is a forum section dedicated to AI in general

You can also ask specific questions in http://gamedev.stackexchange.com . Or you can browse all the questions tagged as "ai" like this: http://gamedev.stackexchange.com/questions/tagged/ai
When I write def I mean function.
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Any Good AI Documentation?

Post by ivan »

As MarekkPie mentioned, AI is a very broad topic.
It also depends on the type of game you are trying to make.
Finite State Machines (FSM) is one way to go.
Personally I recommend behavior trees (1, 2) which work very nicely for most action games.
Regardless which AI technique you choose, you'll have to learn HOW it works.
Understanding how FSMs or behavior trees are APPLIED to solve problems is harder and takes practice.
NeoFLoyd
Prole
Posts: 11
Joined: Tue Oct 18, 2011 12:30 am

Re: Any Good AI Documentation?

Post by NeoFLoyd »

Thanks to everyone who posted, I'll begin reading all the links you've supplied me later today. I can grasp how to use AI like MarekkPie showed an example of, I just need to know where to start.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Any Good AI Documentation?

Post by Kadoba »

If you don't mind putting down a little money then Programming Game AI by Example is an excellent book and easy to read.
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Any Good AI Documentation?

Post by MarekkPie »

That book looks interesting. And I have $50 in Amazon Gift Cards...hrmm...
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 118 guests