Ejemplo n.º 1
0
        //decreasing count in row/coll/cell
        private void deductFromCounts(int position)
        {
            //calculate in what row/coll/cell given position is
            int[] positions = PositionCalc.ReturnPositions(position);

            numberCount[positions[0]]--;
            numberCount[positions[1] + 9]--;
            numberCount[positions[2] + 18]--;
        }
Ejemplo n.º 2
0
        //increasing count in row/coll/cell
        private void addToCounts(int position)
        {
            //calculate in what row/coll/cell given position is
            int[] positions = PositionCalc.ReturnPositions(position);

            numberCount[positions[0]]++;
            numberCount[positions[1] + 9]++;
            numberCount[positions[2] + 18]++;
        }