Merge remote-tracking branch 'origin/main'

This commit is contained in:
Jacob Signorovitch
2025-05-13 00:26:54 -04:00
3 changed files with 463 additions and 123 deletions

View File

@@ -3,7 +3,7 @@ package chess;
import javalib.worldimages.*;
// The piece types.
enum PieceType { PAWN, ROOK, KNIGHT, BISHOP, POPE, QUEEN, KING }
enum PieceType { PAWN, ROOK, KNIGHT, BISHOP, POPE, QUEEN, KING, SINGER }
// A chess piece.
abstract class Piece {
@@ -14,6 +14,7 @@ abstract class Piece {
this.type = type;
this.col = col;
}
WorldImage draw() { return new EmptyImage(); };
}