Bloodbath

The AI of Pacewar is going to consist of two basic behaviors: aggression, and self-preservation. I have implemented the latter behavior first. The result is something of an uncontrolled bloodbath.

The aggression behavior is rather simple: every few seconds or so, the closest enemy ship is chosen as the target to attack, and as long as there are no current threats (a threat will be defined later as either a bullet nearby or an enemy ship pointing at it), the default behavior is to thrust towards the target and shoot when in range.

Next up is the self-preservation behavior, which should give the AI the nuance it needs to be an actual threat.