Finite state machine AI project
This project simulates the behaviour of preys gathering food while while being chased by predators.
What I learned
Ai state machine : each agent switches from one state to another: patroling, chasing, escaping, etc. Each state involves an action and a decision. The ai agent performs its current state's action until certain conditions are met, which triggers a change of state.