Created
February 26, 2016 01:30
-
-
Save Argygle/c7e28d1c7dce0c739318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import javax.swing.*; | |
import java.awt.GridLayout; | |
public class Minesweeper extends JFrame | |
{ JPanel board = new JPanel(); | |
public static void main(String[] args) | |
{ | |
} | |
public Minesweeper() | |
{ | |
int a,b; | |
Scanner s = new Scanner(System.in); | |
System.out.println("Enter board dimensions:"); | |
a = s.nextInt(); | |
b = s.nextInt(); | |
setSize(600,600); | |
setDefaultCloseOperation(EXIT_ON_CLOSE); | |
board.setLayout(new GridLayout(a,b)); | |
int y,x = 0; | |
int counter = 0; | |
while(counter<a){ | |
for(x) | |
} | |
} | |
} | |
Exception in thread "main" java.lang.Error: Unresolved compilation problem: | |
at Minesweeper.main(Minesweeper.java:14) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment