What is a good equation/algorithm to determine the outcome of a battle between two players?
For example, I want the game to take into account the relative strengths and weaknesses of the players (strength, level, armor, buffs, weapons used, etc.) and apply damage to both players accordingly.
Any suggestions?