mirror of
https://github.com/lov3b/Schack.git
synced 2025-01-18 21:00:11 +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) {
|
if (weCanMove) {
|
||||||
JOptionPane.showMessageDialog(this, "Du står i schack");
|
JOptionPane.showMessageDialog(this, "Du står i schack");
|
||||||
} else {
|
} else {
|
||||||
validMovesToDraw = new ArrayList<>();
|
validMovesToDraw.clear();
|
||||||
getParent().repaint();
|
getParent().repaint();
|
||||||
int choise = JOptionPane.showConfirmDialog(this, "Schackmatt\nVill du starta om?");
|
int choise = JOptionPane.showConfirmDialog(this, "Schackmatt\nVill du starta om?");
|
||||||
if (choise == JOptionPane.YES_OPTION) {
|
if (choise == JOptionPane.YES_OPTION) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user