Thank bro vì cái lỗi ngớ ngẩn này mà bị ném gạch may mà fix dc đã sửa src code update file đính kèm
Code:
private void autoPlay() {
this.stop = true;
this.timer.start();
if (yourMove > cellCount) {
this.timer.stop();
JOptionPane.showMessageDialog(null, "Chúc mừng Bạn đã hoàn thành màn chơi !!!", "Thông báo", JOptionPane.INFORMATION_MESSAGE);
this.fillRandMatrix();
return;
}
findValue(this.yourMove++, Color.GREEN);
try {
Thread.sleep(1000);
} catch (InterruptedException ex) {
Logger.getLogger(frmMain.class.getName()).log(Level.SEVERE, null, ex);
}
autoPlay();
}
Cơ mà cho mình hỏi câu hơi ngớ ngẩn chút hàm findValue dùng 1 break mà sao nó hoạt động ngon nhỉ