Game Development Community

dev|Pro Game Development Curriculum

AI Tester

by Brian Mudge · 05/01/2001 (9:22 am) · 1 comments

Download Code File

I was thinking about some simple ways to get an Enemy "AI" to decide on a course of action based on its perception/assessment of the enemy's strengths and weaknesses. This lead me to the example code. Essentially the framework sets up two AIs. #1 can attack #2 or vice versa. Using sliders you can adjust some simple traits. The levels of each of the traits will by the AI class to resolve the attack. If both AIs are balanced, the Defender will always win. Otherwise the AI that is assessed as stronger will win. The main point is that each instance of the AI attempts to gauge the strength of the other based on their own Intuition (i.e. perception?) and the other's Secrecy (abiliy to veil their intentions).

I know that the example is very simple now, however I am providing it for others to comment on as I continue to expand the test.

Note that the sample code is contained in a ZIP archive and you need VB6 to rebuild ---if you do not have VB6 you can read the source in the .FRM and .CLS files with any text editor. I will convert the test to "C" once I am further along.....

Comments welcome.
Brian

About the author

Recent Blogs

• Plan for Brian Mudge

#1
08/16/2001 (9:17 am)
Hmm... Usefull, but I'm working on an other idea.