A Starcraft bot that uses BWAPI and uses state machines