oops
This commit is contained in:
@@ -24,8 +24,7 @@ public class Pawn extends Piece {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Piece obj) {
|
||||
public boolean equals(Object obj) {
|
||||
return (obj instanceof Pawn && ((Pawn) obj).getColor() == this.getColor());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user