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.
16 lines
300 B
16 lines
300 B
package Minesweeper;
|
|
|
|
import javax.swing.JButton;
|
|
|
|
enum CellType{Number, Bomb}
|
|
public class Cell extends JButton {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
public CellType type;
|
|
public boolean flagged = false;
|
|
public int value = 0;
|
|
|
|
public Cell(CellType _type) {
|
|
type = _type;
|
|
}
|
|
}
|