Anders Norås shows how the state pattern and shortest path algorithm is used in game AIs and invites us to keep in mind this simple solution when building business application instead of going for more complex solutions based on machine learning.