kommentar

This commit is contained in:
loveb 2022-04-07 08:50:09 +02:00
parent 0506003a1b
commit e573bed40c

View File

@ -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) {