- determine offense action for this frame, or nothing
- determine defense action for this frame, or nothing
- determine desired movement traits
- calculate method to reach movement goal
The first two are very large and complex but mostly straightforward. All possible actions are looped through. If they can't be performed this frame, they get a score of 0. Otherwise a score is calculated by taking the benefits of that action and subtracting the negatives. The action with the highest score is performed.
Movement is a lot harder because multiple actions need to be done each frame. Also I'll need to incorporate a pathfinding algorithm. Not really sure how to handle it yet.