mirror of
https://github.com/lov3b/Schack.git
synced 2024-11-10 07:00:11 +01:00
Schack funkar lite bättre men man fattar inte
This commit is contained in:
parent
29df86030c
commit
70097886d4
@ -13,7 +13,6 @@ auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width=
|
||||
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-line-wrap=none
|
||||
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.usedProfile=project
|
||||
auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.enable-indent=true
|
||||
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
|
||||
build.classes.dir=${build.dir}/classes
|
||||
build.classes.excludes=**/*.java,**/*.form
|
||||
# This directory is removed when the project is cleaned:
|
||||
@ -42,17 +41,17 @@ dist.jar=${dist.dir}/Schack.jar
|
||||
dist.javadoc.dir=${dist.dir}/javadoc
|
||||
endorsed.classpath=
|
||||
excludes=
|
||||
file.reference.flatlaf-2.1.jar=lib\\flatlaf-2.1.jar
|
||||
file.reference.flatlaf-extras-2.1.jar=lib\\flatlaf-extras-2.1.jar
|
||||
file.reference.flatlaf-intellij-themes-2.1.jar=lib\\flatlaf-intellij-themes-2.1.jar
|
||||
file.reference.flatlaf-2.1.jar=lib/flatlaf-2.1.jar
|
||||
file.reference.flatlaf-extras-2.1.jar=lib/flatlaf-extras-2.1.jar
|
||||
file.reference.flatlaf-intellij-themes-2.1.jar=lib/flatlaf-intellij-themes-2.1.jar
|
||||
includes=**
|
||||
jar.archive.disabled=${jnlp.enabled}
|
||||
jar.compress=false
|
||||
jar.index=${jnlp.enabled}
|
||||
javac.classpath=\
|
||||
${file.reference.flatlaf-2.1.jar}:\
|
||||
${file.reference.flatlaf-intellij-themes-2.1.jar}:\
|
||||
${file.reference.flatlaf-extras-2.1.jar}
|
||||
${file.reference.flatlaf-extras-2.1.jar}:\
|
||||
${file.reference.flatlaf-intellij-themes-2.1.jar}
|
||||
# Space-separated list of extra javac options
|
||||
javac.compilerargs=
|
||||
javac.deprecation=false
|
||||
|
@ -157,8 +157,8 @@ public class Board extends JPanel implements MouseListener {
|
||||
validMoves.removeAll(turn ? blackAttacks : whiteAttacks);
|
||||
}
|
||||
// Funkar inte
|
||||
for (Point attack : turn ? whiteAttacks : blackAttacks) {
|
||||
Piece attacked = pieces[attack.x][attack.x];
|
||||
for (Point attack : turn ? blackAttacks : whiteAttacks) {
|
||||
Piece attacked = pieces[attack.x][attack.y];
|
||||
if (attacked == null) {
|
||||
continue;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user