コード例 #1
0
        public Labyrinth(PlayerPosition startPosition)
        {
            if (startPosition == null)
            {
                throw new ArgumentNullException("The start position cannot be null");
            }

            this.Position = startPosition;
        }
コード例 #2
0
        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;
        }