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 Knight extends Piece {
return 2;
}
@Override
public boolean equals(Piece obj) {
public boolean equals(Object obj) {
return (obj instanceof Knight && ((Knight) obj).getColor() == this.getColor());
}
}