Building the CPU Player for StarGrid

For my game StarGrid, I need to add some CPU opponents (note that I'm avoiding using any AI related wording here, since this gets a different connotation nowadays). The game is divided into multiple factions, each faction have their own ships and one homebase. The objective of the game is to either: - Capture the flag of another base and return it to your homebase - Destroy all enemies and bases