I'm developing a RPG game where there're 3 types of characters, tank, warrior and assassin.
I'm wondering if it's possible to set the HP(hit points/health points/health power), attack and defense of the characters so that the tank is guaranteed to defeat the assassin, meanwhile, the assassin is guaranteed to defeat the warrior whereas the warrior is guaranteed to defeat the tank.
For example, the attribute of the assassin is {"MaxHP": 500, "Attack": 1600, "Defense": 50} and the warrior has {"MaxHP": 1100, "Attack": 300, "Defense": 300}.
The damage that a guy took is equal to their opponent's attack minus the guy's defense.
The process of a battle/combat looks like this
The assassin dealt 1300 damage to the warrior, the warrior's HP is now 0.
The warrior dealt 250 damage to the assassin, the assassin's HP is now 250.
The assassin won the battle.
It doesn't matter who attacks first, as the only condition that one guy wins is their HP is above 0 whereas the HP of their opponent is equal to or less than 0.
If both HPs are 0, no body wins. Is there a tool/model in math that I can use to solve this puzzle?
The ideal situation is where one class always KOs the opponent in just one round. If one-round is impossible, the solution to multiple rounds battle is also appreciated.
Assasin: attack =100, health =2, defense =0.
Warrior: attack =1, health =1, defense = 98.
Tank: attack =2, health =101, defense =0.