private void PlaceBombs(int mineNumber)
{
for (var mine = 0; mine < mineNumber; mine++)
{
var row = RandomUtils.GenerateRandomNumber(0, this.Size - 1);
var col = RandomUtils.GenerateRandomNumber(0, this.Size - 1);
while (this.Grid[row, col].Value != 0)
{
row = RandomUtils.GenerateRandomNumber(0, this.Size - 1);
col = RandomUtils.GenerateRandomNumber(0, this.Size - 1);
}
this.Grid[row, col].Value = RandomUtils.GenerateRandomNumber(1, KindsOfBombs);
}
}