Article View: rec.games.design
Article #897Re: Artificial Intelligence for Games
From: olsen_jo
Date: Mon, 04 Jan 1993 21:50
Date: Mon, 04 Jan 1993 21:50
31 lines
2191 bytes
2191 bytes
In article <Dec30.183952.57153@yuma.ACNS.ColoState.EDU>, hallch@CS.ColoState.EDU (christopher hall) writes: > Hello all, > > I was wondering if anyone could point me in the direction of any > material related to the use of artificial intelligence in computer games. > Specifically I am searching for material that would be useful in > controlling computer players in a role-playing game. I am assuming that I > will have to program the different possible actions for the computer but I > would like to know a good and efficient way to go about making the > computer decide which option would be the 'best'. You can get some rather nice behaviors out of a rule based system. First, you define all the actions your beasties need to perform. Second, define a list of things they can know, such as "is there a person in front of me" and "I am really, really hungry". The knowlege base should be true/false items so they are easier to compute. Then create a list of actions. The beastie will perform the first one where his current state matches the required state. The trick to make this useful, is that your state consists of a mask showing which of the t/f items are important, and another variable showing the required state for a specific action. That way, you can do things like the following with the rules: if(hungry AND near food AND NOT near enemy) then eat the nearest food. This technique also works well in things like AI players for military simulations, or anything where you have multiple non-communicating opponents. If you're really sneaky, you can also add communicating opponents. :^) John Olsen olsen_jo@uvadm.uvcc.edu
Technical Details
Message-ID:
<1993Jan4.145007.1@cc.uvcc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.byu.edu!ux1!fcom.cc.utah.edu!park.uvcc.edu!cc.uvcc.edu!olsen_joReferences:
<Dec30.183952.57153@yuma.ACNS.ColoState.EDU>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.design Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.byu.edu!ux1!fcom.cc.utah.edu!park.uvcc.edu!cc.uvcc.edu!olsen_jo From: olsen_jo@cc.uvcc.edu Subject: Re: Artificial Intelligence for Games Message-ID: <1993Jan4.145007.1@cc.uvcc.edu> Lines: 31 Sender: news@park.uvcc.edu Nntp-Posting-Host: uvadm.uvcc.edu Organization: Utah Valley Community College References: <Dec30.183952.57153@yuma.ACNS.ColoState.EDU> Date: Mon, 4 Jan 1993 21:50:07 GMT