refactored pawn movement + implemented knight movement

This commit is contained in:
CT
2026-04-23 16:18:28 -05:00
parent 6e6c222d57
commit ce61482b9e
4 changed files with 34 additions and 18 deletions

View File

@@ -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);
}
}