oops
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user