Exemplo n.º 1
0
        public MinerGame(Tuple <int, int> rowsCols)
        {
            height = rowsCols.Item1;                // height = rowsCols.Item2;                            под старый тест мастера
            width  = rowsCols.Item2;                // width = rowsCols.Item1;                              под старый тест мастера

            poleGame = new CellsGame[Height][];     // poleGame = new CellsGame[Width][];       под старый тест мастера

            for (int i = 0; i < Height; i++)        // for (int i = 0; i < Width ; i++)            под старый тест мастера
            {
                poleGame[i] = new CellsGame[Width]; // poleGame[i] = new CellsGame[Height]; под старый тест мастера
                for (int j = 0; j < Width; j++)     // for (int j = 0; j < Height; j++)     под старый тест мастера
                {
                    poleGame[i][j].yesOrNoBomb      = false;
                    poleGame[i][j].weightCells      = 0;
                    poleGame[i][j].flagOfPlayer     = false;
                    poleGame[i][j].qгestionOfPlayer = false;
                    poleGame[i][j].openCell         = false;
                }
            }
        }
Exemplo n.º 2
0
        public MinerGame(Tuple<int, int> rowsCols)
        {
            height = rowsCols.Item1; // height = rowsCols.Item2;                            под старый тест мастера
            width = rowsCols.Item2; // width = rowsCols.Item1;                              под старый тест мастера

            poleGame = new CellsGame[Height][]; // poleGame = new CellsGame[Width][];       под старый тест мастера

            for (int i = 0; i < Height; i++) // for (int i = 0; i < Width ; i++)            под старый тест мастера
            {
                poleGame[i] = new CellsGame[Width]; // poleGame[i] = new CellsGame[Height]; под старый тест мастера
                for (int j = 0; j < Width; j++)     // for (int j = 0; j < Height; j++)     под старый тест мастера
                {
                    poleGame[i][j].yesOrNoBomb = false;
                    poleGame[i][j].weightCells = 0;
                    poleGame[i][j].flagOfPlayer = false;
                    poleGame[i][j].qгestionOfPlayer = false;
                    poleGame[i][j].openCell = false;
                }
            }
        }