mirror of
https://github.com/lov3b/Schack.git
synced 2025-01-18 12:50:10 +01:00
Update Board.java
This commit is contained in:
parent
0f665c5829
commit
9d1916ad17
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user