fix post merge issues
parent
8a9c60c38f
commit
077f4a2505
|
|
@ -30,8 +30,8 @@ public class Game {
|
|||
|
||||
this.movelist = new MoveList();
|
||||
|
||||
this.clockPlayer1 = new Clock();
|
||||
this.clockPlayer2 = new Clock();
|
||||
// this.clockPlayer1 = new Clock();
|
||||
// this.clockPlayer2 = new Clock();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -49,8 +49,8 @@ public class Game {
|
|||
this.board.doMove(move);
|
||||
}
|
||||
|
||||
this.clockPlayer1 = new Clock();
|
||||
this.clockPlayer2 = new Clock();
|
||||
// this.clockPlayer1 = new Clock();
|
||||
// this.clockPlayer2 = new Clock();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,8 +64,8 @@ public class Game {
|
|||
|
||||
this.movelist = new MoveList();
|
||||
|
||||
this.clockPlayer1 = new Clock();
|
||||
this.clockPlayer2 = new Clock();
|
||||
// this.clockPlayer1 = new Clock();
|
||||
// this.clockPlayer2 = new Clock();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -103,4 +103,8 @@ public class Game {
|
|||
.collect(Collectors.toList());
|
||||
|
||||
}
|
||||
|
||||
public String toFEN() {
|
||||
return board.getFen();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,7 +175,8 @@ public class SpielFrame extends JFrame {
|
|||
for (JButton b : positions.keySet()) {
|
||||
// wenn button ein möglicher zug ist
|
||||
if (clickableButtons.contains(positions.get(b))) {
|
||||
farben.put(b, b.getBackground()); // damit sich gemerkt werden kann welches feld welche farbe vorher hatte
|
||||
farben.put(b, b.getBackground()); // damit sich gemerkt werden kann welches feld welche farbe vorher
|
||||
// hatte
|
||||
b.setBackground(new Color(230, 100, 100));
|
||||
|
||||
}
|
||||
|
|
@ -193,9 +194,6 @@ public class SpielFrame extends JFrame {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// alle weisen squares deaktivieren, damit dannach klar ist wer dran ist
|
||||
for (JButton b : belegungen.keySet()) {
|
||||
if (belegungen.get(b).split("-")[0].equals("b")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue