mirror of
				https://github.com/lov3b/Schack.git
				synced 2025-11-04 07:00:21 +01:00 
			
		
		
		
	kommentar
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user