O'Reilly logo

Programming Game AI by Example by Mat Buckland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Here are some other examples of fuzzy linguistic variables and their com
-
ponent fuzzy sets:
Speed ={Slow, Medium, Fast}
Height ={Midget, Short, Medium, Tall, Giant}
Allegiance ={Friend, Neutral, Foe}
Target Heading ={Far Left, Left, Center, Right, Far Right}
Figure 10.10 shows the FLV Target Heading in graphical form. Notice
how the membership functions of the member sets can be varied in shape
and asymmetrical if the problem demands it. The collection of shapes
(membership functions) that comprise the FLV is known as a fuzzy mani
-
fold,orfuzzy surface.
Ü
NOTE Practitioners of fuzzy logic seem unable to agree upon consistent ter
-
minology for describing the linguistic elements that comprise a fuzzy system (oh,
the irony). Often you will find the expression “fuzzy linguistic variable” (or just
“linguistic variable”) applied to a collection of fuzzy sets and to the individual
sets themselves. This can be confusing when reading the available literature.
Fuzzy Rules
This is where everything starts to come together. I realize you may be con
-
fused at the moment but hang in there; enlightenment will shortly be yours!
Fuzzy rules are comprised of an antecedent and a consequent in the
form:
IF antecedent THEN consequent
The antecedent represents a condition and the consequent describes the
consequence if that condition is satisfied. This type of rule is familiar to all
programmers. We’ve all written code like:
IF Wizard.Health() <= 0 THEN Wizard.isDead()
424 | Chapter 10
Fuzzy Rules
Figure 10.10. The FLV Target Heading

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required