Skip to content
A Finite State Machine Ant Brain
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is a project to learn and explore Finite State Machines through the State Pattern. Managing complex state is challenging but it can be made easier by using state machines to manage states and transitions.

This example models ant behaviour as described in this article.

A Pen created at You can find this one at

You can’t perform that action at this time.