Esempio n. 1
0
        public bool checkForAdjacentBlocksInShape(Block b)
        {
            foreach (var box in _shapeList)
            {
                if ((box.x_pos != b.x_pos) && (box.y_pos != b.y_pos))
                {
                    return true;
                }
                else
                {continue;}

            }
            return false;
        }
Esempio n. 2
0
        public void convertShapeToBlocks()
        {
            foreach (var box in _shape._shapeList)
            {
                Block block = new Block(box.x_pos, box.y_pos, box.color);
                _board.Add(block);

            }
        }