public BoardSquare(BoardLocation position, Piece piece) { Position = position; Piece = piece ?? throw new ArgumentNullException("Contents must be provided instead if square does not contain a piece", nameof(piece)); }
public BoardSquare(BoardLocation position, BoardSquareContents contents, Piece piece) { Position = position; _contents = contents; _piece = piece; }