не могу я понять как из победы 1го кота при прочих равных вывести проигрыш второго. вероятно поэтому не проходит 4ый пункт. Объясните кому не сложно, поразжеваннее пж.
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 WinPoints = 0;
int LosePoints = 0;
if (this.age>anotherCat.age)
WinPoints++; else LosePoints++;
if (this.weight>anotherCat.weight)
WinPoints++; else LosePoints++;
if (this.strength>anotherCat.strength)
WinPoints++; else LosePoints++;
if (WinPoints>=LosePoints)
return true;
else
return false;
}
public static void main(String[] args) {
}
}