Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Dec 9, 2020
2 parents 63132bc + 6159d4d commit 6dbbe86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/featurecat/lizzie/rules/Board.java
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}

Expand Down

0 comments on commit 6dbbe86

Please sign in to comment.