This commit is contained in:
Janet-Doe
2025-04-16 11:01:16 +02:00
parent 076288a400
commit ebb013cae5
6 changed files with 7 additions and 13 deletions

View File

@@ -20,8 +20,7 @@ public class Rook extends Piece {
return 5;
}
@Override
public boolean equals(Piece obj) {
return (obj instanceof Rook && ((Rook) obj).getColor() == this.getColor());
public boolean equals(Object other) {
return (other instanceof Rook && ((Rook) other).getColor() == this.getColor());
}
}