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:
Crisp logic is easier to implement, whether using finite state machines, behavior trees, or planners.
It’s more efficient to consider the best choice rather than having to calculate probabilities for alternatives.
Design is more intuitive when the choices are crisp. It’s easier to predict the outcome of an emergent system.
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!