Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 15th, 2006, 03:26 AM
steve18503 steve18503 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Location: Hong Kong
Posts: 13 steve18503 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 47 sec
Reputation Power: 0
Send a message via ICQ to steve18503 Send a message via MSN to steve18503
Game developing -- AI

Hi All,
I am a newbie in this forum and thanks to all that browse this post.....
In my situation, I want to program a PC game, which is a single player game like "King Of Fighter"
the graphic is not a problem, however I meet a problem on AI.
I am not familiar in AI program.....
But to improve my game..... I need to develop a evolution AI in my game and an AI that can make decision in different situations....
So, I want to ask about which language to develop AI is the best?
I am quite familiar in C and java.....
but not familiar in AI <--which I really want to learn more....
all so my game is no need to installation....
graphic is completed, game rules and calculation is nearly completed but the "computer player" have not yet developed

thank you everyone in this thread and look forward for your reply~

Reply With Quote
  #2  
Old August 15th, 2006, 04:25 AM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 531
Hi,

welcome to Devshed.

firstly, have a look at the sticky at the top of this forum, it contains links to some AI resources on the Internet & some links to some books on AI you may consider buying (I'm sure some of them have example chapters for you to look at).

Most of the example AI code I have seen has been in C/C++, so you may want to go that way. What language is the rest of it written in?

Displeaser
__________________
Vi Veri Veniversum Vivus Vici.

Reply With Quote
  #3  
Old August 15th, 2006, 05:54 AM
°Oblivion°King° °Oblivion°King° is offline
Avid lithomancer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Croatia
Posts: 267 °Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 22 h 44 m 46 sec
Reputation Power: 37
I never played that game, so i can't tell you more. If you wanna most advanced AI, try to learn neural networks. If your math is not perfect, it will be hard.

Reply With Quote
  #4  
Old August 15th, 2006, 09:13 AM
pumpkin head pumpkin head is offline
what do I know about diamonds?
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: ON, Canada
Posts: 950 pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)pumpkin head User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 51652 Folding Title: Beginner FolderFolding Points: 51652 Folding Title: Beginner FolderFolding Points: 51652 Folding Title: Beginner Folder
Time spent in forums: 1 Week 1 Day 23 m 45 sec
Reputation Power: 168
programing ai's is a pain in the a$$. my advice would be to map out all the possible situations and the reactions the player would take before you start coding anything. If you have a clear picture of all the options it's a lot easier to code.
Comments on this post
displeaser agrees: start simple (KISS methodology)
__________________


Reply With Quote
  #5  
Old August 15th, 2006, 09:30 AM
steve18503 steve18503 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Location: Hong Kong
Posts: 13 steve18503 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 47 sec
Reputation Power: 0
Send a message via ICQ to steve18503 Send a message via MSN to steve18503
I just want to develop a single player mode in my game...
actually the requirement on the AI is know how to "learn"...
Evolution AI is most difficult part in my development...I think...
Since I am not familiar to AI, why maths is important in AI??

Reply With Quote
  #6  
Old August 15th, 2006, 09:46 AM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 531
Quote:
Originally Posted by steve18503
why maths is important in AI??

Because most (if not all) methods of AI are heavily based on maths. Have a look at this article, it goes into a little detail about all the common methods.

If I was doing a "learning AI" I would look at Neural Networks

Hope this helps.
Displeaser

Reply With Quote
  #7  
Old August 15th, 2006, 10:32 AM
Oler1s Oler1s is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2006
Posts: 1,405 Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 1 h 29 m 8 sec
Reputation Power: 376
Consider having your AI be static (i.e. hard coded). Evolving AI is extremely tricky.

A neural network as mentioned might be one possible solution. A neural network effectively approximates the best solution. For example, if you hard coded multiple strategies into the AI, from repeatedly playing against humans, it could learn to use the most effective one. The bonus is that by tweaking the weights to the different strategies, you can make the AI harder or weaker (exploit the best tactic more or less).

There's more AI techniques that can be used. "Evolving AI" comes into genetic programming/genetic algorithms. I don't recommend you go down this path. Try making a simple GA and you'll understand the issues at hand.

There's also other points to consider in AI. I recommend you focus on getting a polished game before breaking your head on the computer player.
Comments on this post
displeaser agrees!

Reply With Quote
  #8  
Old August 15th, 2006, 11:53 AM
steve18503 steve18503 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Location: Hong Kong
Posts: 13 steve18503 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 47 sec
Reputation Power: 0
Send a message via ICQ to steve18503 Send a message via MSN to steve18503
THANK YOU EVERYONE~~
but one more question
is C programme good for AI programming??
or any other program easier to handle?

Reply With Quote
  #9  
Old August 15th, 2006, 11:56 AM
°Oblivion°King° °Oblivion°King° is offline
Avid lithomancer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Croatia
Posts: 267 °Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level)°Oblivion°King° User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 22 h 44 m 46 sec
Reputation Power: 37
Just one thing, steve.
It's not proper to call C program. C is programming language

It's very good for AI. It's fast, supports various optimizations (asm, binary).

Reply With Quote
  #10  
Old August 15th, 2006, 12:41 PM
KillerRabbit KillerRabbit is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Finland
Posts: 242 KillerRabbit User rank is Sergeant (500 - 2000 Reputation Level)KillerRabbit User rank is Sergeant (500 - 2000 Reputation Level)KillerRabbit User rank is Sergeant (500 - 2000 Reputation Level)KillerRabbit User rank is Sergeant (500 - 2000 Reputation Level)KillerRabbit User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 1 h 59 m 10 sec
Reputation Power: 14
Here's some tutorials for Game AI

GameDev.net - Artificial Intelligence

Reply With Quote
  #11  
Old August 15th, 2006, 04:17 PM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 531
As pumpkin said earlier, AI is a pain in the A$$ to program, start it easy, program a couple of responses for your computer ai (ie if head punch, ai tries block head punch, with a random variable skewded to the ai's skill). once you get more familiar with interacting AI & code characters then think about doing fancy things(get the basics right first). Keep it simple to start (even just for the first version), and then make it better. AI is complex and a b1tch to code well (sorry anyone that may be offened ). If you have problems with code, post them here, I'm sure someone would be glad to help.

Displeaser

Reply With Quote
  #12  
Old August 15th, 2006, 05:27 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2006
Posts: 1,405 Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 1 h 29 m 8 sec
Reputation Power: 376
Quote:
Originally Posted by steve18503
but one more question
is C programme good for AI programming??
or any other program easier to handle?


You need to consider how processor intensive these algorithms will get. GA/GP for example, benefits from high performance, since you can use a larger gene pool. A tic tac toe neural network doesn't really have the same problem. If you browse the net, you might find references to LISP, which used to be a popular choice for AI, but that was for semantical reasons.

So which is the best language? C/C++ is a great language if you need performance AI apps. If extreme performance isn't a goal, any modern language is fine. There's really no difference in choosing a language, because as everyone else is trying to tell you, the trouble with AI isn't the computer language, but figuring out the mathematical algorithm.

Reply With Quote
  #13  
Old August 15th, 2006, 11:03 PM
steve18503 steve18503 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Location: Hong Kong
Posts: 13 steve18503 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 47 sec
Reputation Power: 0
Send a message via ICQ to steve18503 Send a message via MSN to steve18503
I saw some program such as prolog or LISP is used for AI programme....
what is advantage on using prolog or LISP?

Reply With Quote
  #14  
Old August 15th, 2006, 11:21 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2006
Posts: 1,405 Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level)Oler1s User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 1 h 29 m 8 sec
Reputation Power: 376
Quote:
Originally Posted by steve18503
I saw some program such as prolog or LISP is used for AI programme....
what is advantage on using prolog or LISP?
<