Re:Artificial inteligence
On 15 Oct 1997 06:02:16 GMT, adam.du...@mail.utexas.edu (Norm) wrote:
Quote
>does anyone know how to do AI in pascal. i have wrote a pacman program
>that looks really cool minus the ghost :( . i dont think it is
>possible. does anyone know?
Funny, calling the ghost in a pacman game 'intelligent'. I assure you there's
nothing intelligent about these creatures, and you don't need any knowledge of
IA, to make very {*word*193} ghosts.
In a pacman game the ghosts are attracted to pacman (your cursor), they only
need to compute which of the possible steps they can make will bring them closer
to the pacman image and select that step. If the game becomes too difficult you
can add some noise to their stepping behaviour.
BTW. Pascal is a general purpose language, this means that you can, in theory,
program anything in it a computer can do, AI included. However, there are better
languages for rule-based AI.
Peter de Jong
wpdej...@worldonline.nl