I don't know man. The AI has some moments of real brilliance.
I was attacked by the Romans as Carthage and they invaded one of my towns. Hannibal was there which honestly gave me an obvious advantage. Anyways knowing they had the numerical advantage I fortified the center thinking "Oh it's just the stupid AI they will rush the center and I'll slaughter them as they try to force their way through my line". They never did, instead upon seeing my defense in the center of the town they did the following.
Gnaius Scipio VS Hannibal Barca
My Defense
What they did was to set up a defensive area in between my defense and the only area my reinforcing naval units could land.
Since I lacked sufficient skirmishers, they sat there and sent in their own skirmishers and some hastati to whittle me down. In the first picture they are attacking my weaker flank, not a very good picture sorry. The next picture shows some of their skirmishers coming around to attack me. They did some damage overall to me during this time. I was still unable to get reinforcements that I had on my boats as they had them blocked.
Finally I was forced to attack them, as they were causing too many casualties. They had since retreated their units back to receive me. This is me preparing to attack them from four different angles (Three streets and from my ships)
The fight begins as my four Libyan Hoplites converge and crash into their lines at the intersection.
After my men on the boats slaughter their skirmishers from behind they flank the roughly three centuries worth of hastati from the rear that were overpowering my two Hoplites. This soon caused a route on that flank, as I pushed Hannibals cavalry around and flanked their biggest force from the rear with a solid Battle Rhythm buffed charge (Not shown in the picture). I ended up winning a close victory with plenty of losses, something that would have normally never happened as the AI Usually just blindly rushes to the capture point.
This was a fairly intense fight, thankfully I had the presence of mind to actually counter attack them before their skirmishers did too much damage. They had around five of them, far more than I had(I had five as well, but some were injured and low on ammo from the previous ship battle I had, not to mention they are levys vs velites). Also the reason their general is dead is because I managed to cut him off early when he was still positioning and got a lucky javelin volley off. This was the first time I had seen the AI actually form up and prepare to defend four different angles of attack. Just blew my mind man.