Oftentimes I'm not quite in the mood to enter a whole battle sequence, and my army significantly outnumbers that of the enemy, so I'll just use auto-resolve to get it over with (it's that button in the middle of the interface right before a battle). However, I'm always uncertain if I should use it for the less one-sided battles (that I still sometimes don't feel like doing), so I was wondering: how does auto-resolve work?
I realize that there's some element of randomness involved, but what factors does the game consider when auto-resolving? Is it possible (this is one of my main concerns) that an auto-resolved battle, even if won, will result in me losing my general? Basically, what should I consider when thinking about the risk of using auto-resolve? I'm pretty sure it's more complicated than that little green/red bar in the middle.