public void PlaceMinesBoard(Mines mines) { foreach (var mine in mines.GetMines()) { PlaceOneMine(mine.GetPosX(), mine.GetPosY()); } }
public game(int _nbMines, int _sizeBoard, Cases[,] _buttons, Form1 _form1) { form1 = _form1; caseFree = _sizeBoard * _sizeBoard - _nbMines; buttons = _buttons; caseClicked = 0; nbMines = _nbMines; sizeBoard = _sizeBoard; mines = new Mines(_nbMines, _sizeBoard); boardBack = new Board(_sizeBoard); boardBack.PlaceMinesBoard(mines); boardBack.PlaceNumbers(); boardInCourse = new int[_sizeBoard, _sizeBoard]; radar = new List <int>(); }