refactored pawn movement + implemented knight movement
This commit is contained in:
@@ -21,4 +21,8 @@ public class Piece {
|
||||
System.out.println("parent method not overriden");
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean colorMatches(Piece p) {
|
||||
return this.color.equals(p.color);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user