I'm developing a turn-based RPG game that features three characters: Tank, Warrior, and Assassin. Each character has two attributes: maxHP and attack. Now, my goal is to create a balanced system where the Tank defeats the Warrior, the Warrior defeats the Assassin, and the Assassin defeats the Tank. For instance, the Tank could have higher maxHP but lower attack.
I'm trying to find the minimum positive integers for maxHP and attack for each character.
Let's denote the maxHP and attack of each character as follows:
- Tank:
maxHP_T,attack_T - Warrior:
maxHP_W,attack_W - Assassin:
maxHP_A,attack_A
In order for the Tank to defeat the Warrior, the following inequality must hold:
ceil(maxHP_T / attack_W) > ceil(maxHP_W / attack_T)
where ceil(x) is the smallest integer greater than or equal to x.
Similarly, for the Warrior to defeat the Assassin:
ceil(maxHP_W / attack_A) > ceil(maxHP_A / attack_W)
And for the Assassin to defeat the Tank:
ceil(maxHP_A / attack_T) > ceil(maxHP_T / attack_A)
how do I find the minimum positive integers for 3 characters' maxHP and the corresponding attack with the 3 inequalities above?
I guess the first thing to do is to determine if the system of inequalities is solvable. any hint would be appreciated.