I've hung out in the comp.ai.games for a while, and feel thus somewhat qualified to summarize fuzzy logic.

Instead of "yes" or "no", being the only choices to describe something, you have a "percentage chance of this being the case".

The easiest to understand example is with a boolean variable called "is_tall". I'm 6'2", so with standard boolean logic, "is_tall = TRUE;" is what you would type.

Under fuzzy logic, you'd probably say... "fl_is_true = 90%;", which basically says: "90% of the time, yes, this person is tall".

So fuzzy logic mean: "assigning probabilities to an event", and when you finally try to evaluate a fuzzy-logic statement, all of the probabilities collapse to give you a "true" or a "false"

Another example:

`
if( fl_is_tall ) {`

print "I think you're tall";

} else {

print "You must be standing around basketball players";

}

It is used in game AI to add some "non-determinism" to the game... I guess the theory is that every once in a while, the random "oops" (if examined logically) might give you the correct choice.

Check out question number two on this fuzzy logic faq is really interesting, and it goes over the AND/OR/NOT operators and how it affects probabilities.

And Steve Woodcock's Game AI Page is considered the #1 stopping point for AI and games. Check it out.