mirror of
https://github.com/lov3b/Schack.git
synced 2025-12-14 08:10:08 +01:00
Schack funkar lite bättre men man fattar inte
This commit is contained in:
@@ -18,6 +18,7 @@ public class Queen extends Piece {
|
||||
// Vänster
|
||||
for (int loopX = this.position.x - 1; loopX >= 0; loopX--) {
|
||||
boolean shouldBreak = addMovesIfCan(new Point(loopX, this.position.y), movable, pieces);
|
||||
|
||||
if (shouldBreak) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user