A request for the battle simulator

I will like a the battle simulator to have a type of battle where you don’t need other player. Like you versus computer and you can make a Team for your opponent. ( You don’t have to do this.)

I mean how would you program the AI? Like in-game gyms/bosses?