@ -24,7 +24,8 @@ public class MinesweeperGame extends JPanel {
f.setSize(WIDTH, HEIGTH);
f.setLayout(null);
f.setVisible(true);
}
@ -12,6 +12,10 @@ public class Playfield {
public Playfield(MinesweeperGame _MsG, int _Size, int _bombAmount) {
MsG = _MsG;
Size = _Size;
generatePlayfield(_bombAmount);
public void generatePlayfield(int _bombAmount) {
cells = new Cell[Size][Size];