Snygga till brädet och fixa kung bug

This commit is contained in:
k1ntas
2022-03-29 15:27:46 +02:00
parent b17a3436a9
commit 8c9d97644c
4 changed files with 12 additions and 89 deletions

View File

@@ -18,6 +18,7 @@ public class Pawn extends PieceKnownIfMoved {
// Om bonden har gått en gång, får gå 1 steg, annars 2
final int upTo = hasMoved ? 1 : 2;
// Kolla om man kan gå rakt frak
for (int pawnDY = 1; pawnDY <= upTo; pawnDY++) {
System.out.println("this.position.x: " + this.position.x);