public Labyrinth(PlayerPosition startPosition) { if (startPosition == null) { throw new ArgumentNullException("The start position cannot be null"); } this.Position = startPosition; }
public Labyrinth(PlayerPosition startPosition, Cell[,] board) { if (startPosition == null) { throw new ArgumentNullException("The start position cannot be null"); } if (board == null) { throw new ArgumentNullException("The board cannot be null"); } this.Position = startPosition; this.board = board; }