Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public BoardSquare(BoardLocation position, BoardSquareContents contents, Piece piece)
 {
     Position  = position;
     _contents = contents;
     _piece    = piece;
 }