Skip to content

Instantly share code, notes, and snippets.

@Argygle
Created February 26, 2016 01:30
Show Gist options
  • Save Argygle/c7e28d1c7dce0c739318 to your computer and use it in GitHub Desktop.
Save Argygle/c7e28d1c7dce0c739318 to your computer and use it in GitHub Desktop.
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