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