Please enable JavaScript to use CodeHS

CodeHS Glossary


Finite State Machine (FSM) General

An artificial intelligence model that is commonly used in games to model the behavior of a non-playable character (NPC). It consists of a set of finite states with associated transitions that occur based on certain events, which cause the character between different behaviors.