I do not understand why we implement this code for this method. I would have attached my solution, but it says that I have already solved it and that posting the complete solution is not allowed. I hope this this is fine to ask because I noticed that there is another task that already implements the solution for the method in the same lesson and I just used the code for that task. It would be great if anyone can explain why it is done this way.
public boolean fight(Cat anotherCat) {
        //write your code here
        int ageAdvantage = this.age > anotherCat.age ? 1 : 0;
        int weightAdvantage = this.weight > anotherCat.weight ? 1 : 0;
        int strengthAdvantage = this.strength > anotherCat.strength ? 1 : 0;

        int score = ageAdvantage + weightAdvantage + strengthAdvantage;
        return score > 2; // return score > 2 ? true : false;
}