Advertisement

new to AI what are basics

Started by September 27, 2002 05:17 AM
11 comments, last by DirectXXX 22 years, 1 month ago
quote: Original post by Anonymous Poster
Finite state machines are great for doing fast and simple AI, they are often used as the basic structure of an AI. Sometijmes you here the phrase "Fuzzy State Machine" - the phrase fuzzy simply means that there is a random element somewhere in the system.


Sorry, since Fuzzy Logic is one of my favorite techniques to use in computer game AI development, I just had to jump in and correct AP''s incorrect reference about Fuzzy State Machines .

Fuzzy Logic has NOTHING to do with randomness.

Fuzzy Logic is relative to degrees of membership in a set (ie. Bob is not tall, Bill is taller, Betty is short, and Biff is the tallest - all these people have various degrees of membership in the set of tall people).

Sometimes, Fuzzy Logic is expressed as a percentage (ie. a percentage membership in some set) but that does not in any way mean that Fuzzy Logic is a probability.

For more information about Fuzzy Logic, use google to search on "Fuzzy Logic", or read my article "A Generic Fuzzy State Machine" in the Game Programming Gems II book.

Eric
beginner game programmer here.

i''ve heard of finite state machines.
and understand the use.
but i guess for some reason the actual way to put it in code escapes me.
how would i do that.
a very simple example (with real code) would be preferable.

hopefully i made sense.
if anyone can help me with this i think it would benefit both me and DirectXXX.

thank you.

Beginner in Game Development?  Read here. And read here.

 

Advertisement
quote: Original post by Alpha_ProgDes
beginner game programmer here.

i''ve heard of finite state machines.
and understand the use.
but i guess for some reason the actual way to put it in code escapes me.
how would i do that.
a very simple example (with real code) would be preferable.

hopefully i made sense.
if anyone can help me with this i think it would benefit both me and DirectXXX.

thank you.


There is a simple code example of a finite state machine implementation provided in the article "A Generic Finite State Machine in C++" that can be found in the book Game Programming Gems I . Likewise a search of the web, on the topic of "finite state machines" yields references to examples in Java, Forth, C, C++, UML and even COBOL.

Eric

This topic is closed to new replies.

Advertisement