diff --git a/schach/pom.xml b/schach/pom.xml index a120fc0..546c1ea 100644 --- a/schach/pom.xml +++ b/schach/pom.xml @@ -10,13 +10,12 @@ 0.0.1-SNAPSHOT schach - A simple schach. + A simple schach project http://www.example.com UTF-8 - 21 - 21 + 21 @@ -27,22 +26,31 @@ - + com.github.bhlangonijr chesslib 1.3.4 - + org.junit.jupiter junit-jupiter 5.10.2 test - + + + + org.mockito + mockito-core + 5.11.0 + test + + + @@ -83,12 +91,58 @@ + + + + maven-compiler-plugin + 3.13.0 + + 21 + + + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.21.0 + + + 17 + false + true + false + + rulesets/java/quickstart.xml + rulesets/java/basic.xml + rulesets/java/braces.xml + rulesets/java/unusedcode.xml + rulesets/java/imports.xml + + + + + verify + + check + + + + + + + + maven-surefire-plugin + 3.3.0 + + maven-project-info-reports-plugin + 3.6.1 diff --git a/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java b/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java index a30cccd..aa6d73f 100644 --- a/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java +++ b/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java @@ -25,7 +25,8 @@ public class GameController { GameEndCallback callback; private boolean gameOver = false; - private int selectedRow = -1, selectedCol = -1; + private int selectedRow = -1; + private int selectedCol = -1; private List highlightedFields = new ArrayList<>(); private boolean gameWasResignedOrDrawn = false; private GameMode gameMode;