예제 #1
0
        internal static void NextTurn(char[,] field,
                                      char[,] bombs, int row, int column)
        {
            char bombsCount = MinesCount.MineCounter(bombs, row, column);

            bombs[row, column] = bombsCount;
            field[row, column] = bombsCount;
        }
예제 #2
0
        internal static void Calculations(char[,] field)
        {
            int row    = field.GetLength(0);
            int column = field.GetLength(1);

            for (int i = 0; i < row; i++)
            {
                for (int j = 0; j < column; j++)
                {
                    if (field[i, j] != '*')
                    {
                        char bombsCount = MinesCount.MineCounter(field, i, j);
                        field[i, j] = bombsCount;
                    }
                }
            }
        }