def set_rubric(self, piece: AbstractPiece, position: Position): """sets the given piece to the given position""" self._rubrics[position.x][position.y] = piece piece.position = position
def __init__(self, piece_color: PieceColor, position: Position, name: str): AbstractPiece.__init__(self, PieceType.PAWN, piece_color, position, name) _already_moved = False
def __init__(self, piece_color: PieceColor, position: Position, name: str): AbstractPiece.__init__(self, PieceType.BISHOP, piece_color, position, name)
def __init__(self, position: Position): AbstractPiece.__init__(self, PieceType.PLACEHOLDER, PieceColor.NO_COLOR, position, "___")