Example #1
0
        public Chains deleteChains()
        {
            Chains c = findChains();

            var arr = c.toArray();

            for (int i = 0; i < arr.Length; ++i)
            {
                TileModel t = arr[i];

                //deletion from 2d array
                tiles[t.row][t.col] = null;

                //deletion of array from self
                t.clearBoardData();
            }
            return(c);
        }
Example #2
0
        public Chains deleteChains()
        {
            Chains c = findChains();

            var arr = c.toArray();

            for (int i = 0; i < arr.Length; ++i)
            {
                TileModel t = arr[i];

                //deletion from 2d array (of pointer)
                tiles[t.row][t.col] = null;

                //deletion of array from self (clearing rows, cols and type by calling a function of the class)
                t.clearBoardData();
            }
            return(c);
        }