コード例 #1
0
        public Labyrinth(int width, int height, int targetX, int targetY, int startValue = 2)
        {
            Width  = width;
            Height = height;

            Target = new SquareTarget(new Block(targetX, targetY));

            H = new RelationArray(width - 1, height, startValue);
            V = new RelationArray(width, height - 1, startValue);
        }
コード例 #2
0
 private Labyrinth(int width, int height, int targetX, int targetY)
 {
     blocks = Block.GetBlocks(width, height);
     Start  = blocks[0, 0];
     Target = new SquareTarget(blocks[targetX, targetY]);
 }