Skip to content

Commit

Permalink
Merge branch 'next' of /~https://github.com/featurecat/lizzie.git into …
Browse files Browse the repository at this point in the history
…next
  • Loading branch information
alreadydone committed Oct 27, 2018
2 parents d03397e + adf7cac commit 322cf17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/featurecat/lizzie/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ private JSONObject createPersistConfig() {

config.put("filesystem", filesys);

// About autosave
config.put("autosave", "");

// About User Interface display
JSONObject ui = new JSONObject();

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/featurecat/lizzie/gui/BoardRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ private void drawGoban(Graphics2D g0) {
x + scaledMargin / 2,
y + scaledMargin + squareLength * i,
LizzieFrame.uiFont,
"" + (Board.BOARD_SIZE - i),
"" + (Board.boardSize - i),
stoneRadius * 4 / 5,
stoneRadius);
drawString(
g,
x - scaledMargin / 2 + +boardLength,
y + scaledMargin + squareLength * i,
LizzieFrame.uiFont,
"" + (Board.BOARD_SIZE - i),
"" + (Board.boardSize - i),
stoneRadius * 4 / 5,
stoneRadius);
}
Expand Down
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 @@ -665,8 +665,8 @@ public void restoreMoveNumber(BoardHistoryNode node) {
for (int i = 0; i < stones.length; i++) {
Stone stone = stones[i];
if (stone.isBlack() || stone.isWhite()) {
int y = i % Board.BOARD_SIZE;
int x = (i - y) / Board.BOARD_SIZE;
int y = i % Board.boardSize;
int x = (i - y) / Board.boardSize;
Lizzie.leelaz.playMove(stone, convertCoordinatesToName(x, y));
}
}
Expand Down

0 comments on commit 322cf17

Please sign in to comment.