mirror of
https://github.com/lov3b/Schack.git
synced 2024-11-10 07:00:11 +01:00
kommentar
This commit is contained in:
parent
0506003a1b
commit
e573bed40c
@ -156,7 +156,7 @@ public class Board extends JPanel implements MouseListener {
|
||||
if (p.supremeRuler) {
|
||||
validMoves.removeAll(turn ? blackAttacks : whiteAttacks);
|
||||
}
|
||||
// Funkar inte
|
||||
// Kollar ifall kungen står i schack just nu
|
||||
for (Point attack : turn ? blackAttacks : whiteAttacks) {
|
||||
Piece attacked = pieces[attack.x][attack.y];
|
||||
if (attacked == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user