Nur die besten Spiele ;3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
649 B

  1. package Minesweeper;
  2. import javax.swing.JFrame;
  3. import javax.swing.JPanel;
  4. public class MinesweeperGame extends JPanel {
  5. private static final long serialVersionUID = 1L;
  6. public static final int WIDTH = 600, HEIGTH = 600;
  7. public Playfield playfield;
  8. public MinesweeperGame(int _playfieldSize, int _bombAmount) {
  9. this.setSize(WIDTH, HEIGTH);
  10. setLayout(null);
  11. playfield = new Playfield(this, _playfieldSize, _bombAmount );
  12. }
  13. public static void main(String[] args) {
  14. JFrame f = new JFrame();
  15. MinesweeperGame MsG = new MinesweeperGame(8, 10);
  16. f.add(MsG);
  17. f.setSize(WIDTH, HEIGTH);
  18. f.setLayout(null);
  19. f.setVisible(true);
  20. }
  21. }