Lektion 3

Nu kan man gå med kung
This commit is contained in:
loveb
2022-03-08 16:19:36 +01:00
parent f00f0af75d
commit f7d601491c
9 changed files with 195 additions and 48 deletions

20
src/schack/Queen.java Normal file
View File

@@ -0,0 +1,20 @@
package schack;
import java.awt.Point;
import java.io.IOException;
import java.util.LinkedHashSet;
public class Queen extends Piece {
public Queen(boolean isWhite, Point point) throws IOException {
super(isWhite,point);
setPieceIcon("Queen");
}
@Override
public LinkedHashSet<Point> validMoves(Piece[][] pieces) {
return new LinkedHashSet<>();
}
}