package com.javarush.task.task05.task0502;

/*
Реализовать метод fight
*/

public class Cat {
    public int age;
    public int weight;
    public int strength;

    public Cat() { // это что
    }

    public boolean fight(Cat anotherCat) {
        int x = 0, y = 0;

        if (this.age > anotherCat.age) x++;
        else if (this.age<anotherCat.age)y++;

        if(this.weight>anotherCat.weight) x++;
        else if(this.weight<anotherCat.weight) y++;

        if (this.strength>anotherCat.strength)x++;
        else if(this.strength<anotherCat.strength)y++;


        return x>y; // это что и как это понимать
    }

    public static void main(String[] args) {



    }
}
напи