AiGameDev.com

“Join leading experts and industry veterans in Paris on June 23-24 for the largest independent conference about artifical intelligence in video games.” — Alex

membership

The Premium Membership area at AiGameDev.com is the best place to stay on the cutting edge of artificial intelligence in video games.
Find out more!

sponsors

categories


subscribe

Search


related articles

Sponsors

SpirOps

PathEngine


Going All Fuzzy: When Do You Avoid Discrete Logic?

Alex J. Champandard
September 18, 2007

This week’s developer discussion is all about fuzzy logic. Click here to join the conversation by posting a comment.

Have you used fuzzy logic before? If so, how did you apply it to your game AI? If not, why didn’t you use fuzzy logic?

Nice and Crisp

There’s no argument here: discrete logic is the default in the game AI industry. Here’s my take on why that’s the case:

  1. Crisp logic is easier to implement, whether using finite state machines, behavior trees, or planners.

  2. It’s more efficient to consider the best choice rather than having to calculate probabilities for alternatives.

  3. Design is more intuitive when the choices are crisp. It’s easier to predict the outcome of an emergent system.

  4. Crisp decisions for the behaviors are easier to understand for the player, and less confusing.

In a way, these are points against fuzzy logic. Do you agree with them?

When to Go Fuzzy?

Like any tool, fuzzy logic certainly has its advantages. To name a few:

  • It’s easier to write logic for reasoning with probabilities.

  • The resulting probabilities take into account all the rules, not just the first/best.

The question is, when can you apply this in games? To what extent is it suitable?

Post a comment below to join the discussion!


Bookmark and Share




Comments