Выдает ошибку в пункте "В методе fight реализовать механизм драки котов в зависимости от их веса, возраста и силы.". Вроде реализовано, не вижу ошибки. Остальная валидация проходит. Посмотрите плиз!
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 cat1Cout = 0;
int cat2Cout = 0;
if (this.age > anotherCat.age)
cat1Cout++;
else
cat2Cout++;
if (this.strength > anotherCat.strength)
cat1Cout++;
else
cat2Cout++;
if (this.weight > anotherCat.weight)
cat1Cout++;
else
cat2Cout++;
if (cat1Cout > cat2Cout)
return true;
else
return false;
}
public static void main(String[] args) {
}
}