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?
Any Good AI Documentation?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Any Good AI Documentation?
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,
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:
The computer checked whether the player existed, and if so, it decided to fire at its coordinates. That is AI.
Code: Select all
-- player types "yes"
-- AI
if string == "yes" then print("No") end
Another example:
Code: Select all
if playerExists == true then
enemy.fire(player.x, player.y)
end
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Any Good AI Documentation?
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
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.
Re: Any Good AI Documentation?
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.
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.
Re: Any Good AI Documentation?
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.
Re: Any Good AI Documentation?
If you don't mind putting down a little money then Programming Game AI by Example is an excellent book and easy to read.
Re: Any Good AI Documentation?
That book looks interesting. And I have $50 in Amazon Gift Cards...hrmm...
Who is online
Users browsing this forum: Amazon [Bot] and 8 guests