Added after 4 hours and 10 minutes
I also noticed in an older version of the mod that when the computer is in a hopeless situation, it surrenders. For example: I captured its castle, and my hero with a large army is there, while with another hero, I defend my castle, and instead of trying to recapture its castle, the computer surrenders. But I installed the new version recently, so I don't know how things are with it yet.