# Beginning Fuzzy logic?

This topic is 2549 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I was wondering if I should implement fuzzy logic for my game in which the AI has to select weapons and different attacks and defend options...
Also I want to know how tough is it to implement fuzzy logic.. After understanding the theory can it be done within a month.. I'm running on a tight schedule here!!

##### Share on other sites

I was wondering if I should implement fuzzy logic for my game in which the AI has to select weapons and different attacks and defend options...
Also I want to know how tough is it to implement fuzzy logic.. After understanding the theory can it be done within a month.. I'm running on a tight schedule here!!

You sure you want "fuzzy logic" in the classic sense or simply "variable importance of criteria". Big difference.

Ironically, the weapon selection/who to attack problem is exactly the main example in the last half of my book. *shrug*

The gist is, however, create values and weights for different ideas, tweak them as necessary when combined with other considerations, score things, add things, and then pick the best one. It's actually not that hard to get started.

##### Share on other sites
Oh... and from another thread, this is a column I wrote for Game Developer Magazine a year ago that might give you some ideas.

Getting More Behavior out of Numbers

##### Share on other sites

Also I want to know how tough is it to implement fuzzy logic.. After understanding the theory can it be done within a month.. I'm running on a tight schedule here!!

Pretty straightforward. Check out the book entitled "Programming Game AI by Example". Chapter 10 on Fuzzy Logic has many code examples (C++). There are also many fuzzy logic libraries available.

1. 1
2. 2
Rutin
21
3. 3
4. 4
A4L
15
5. 5
khawk
14

• 13
• 26
• 10
• 11
• 44
• ### Forum Statistics

• Total Topics
633742
• Total Posts
3013636
×