The AI is pretty strong in this scenario for sure.. btw, I don't understand, if the units were standing right outside your town last turn you must have known they would declare war? And if they weren't right next to it yet they couldn't reach it and attack within the same turn (no horses yet)..