diff --git a/src/main/java/featurecat/lizzie/rules/Board.java b/src/main/java/featurecat/lizzie/rules/Board.java index 8d528fa36..f51fe40ab 100644 --- a/src/main/java/featurecat/lizzie/rules/Board.java +++ b/src/main/java/featurecat/lizzie/rules/Board.java @@ -88,8 +88,8 @@ public static int getIndex(int x, int y) { } public static int[] getCoord(int index) { - int y = index % Board.boardHeight; - int x = (index - y) / Board.boardHeight; + int y = index % Board.boardWidth; + int x = (index - y) / Board.boardWidth; return new int[] {x, y}; }