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