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