mirror of
https://github.com/lov3b/Schack.git
synced 2025-06-27 23:40:20 +02:00
Update Board.java
This commit is contained in:
@ -150,7 +150,7 @@ public class Board extends JPanel implements MouseListener {
|
||||
if (weCanMove) {
|
||||
JOptionPane.showMessageDialog(this, "Du står i schack");
|
||||
} else {
|
||||
validMovesToDraw = new ArrayList<>();
|
||||
validMovesToDraw.clear();
|
||||
getParent().repaint();
|
||||
int choise = JOptionPane.showConfirmDialog(this, "Schackmatt\nVill du starta om?");
|
||||
if (choise == JOptionPane.YES_OPTION) {
|
||||
|
Reference in New Issue
Block a user