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