public void winGame() {
boolean won = true;
for (int i = 0; i < count.length; i++) {
for (int j = 0; j < count[0].length; j++) {
if (count[i][j] != MINE && buttons[i][j].isEnabled()) {
won = false;
}
}
}
if (won = true) {
Window.alert("Win!!!!!!!!");
}
}
说won never used
并且总是won=true