/// <summary> /// Flag (x, y) as a mine, if it is a tile. /// </summary> /// <param name="x">one-indexed x-coordinate</param> /// <param name="y">one-indexed y-coordinate</param> private void RevealTile(int x, int y) { // Convert to zero-indexing. int realX = x - 1; int realY = y - 1; int adjacentMines = 0; // If the tile was already revealed, don't attempt to reveal it // again. if (!game.GetCellInfo(realX, realY, out adjacentMines)) { game.RevealTile(realX, realY); } }