Skip to content

Commit

Permalink
Formated
Browse files Browse the repository at this point in the history
  • Loading branch information
zsalch committed Oct 15, 2018
1 parent 80d00da commit 4b80672
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/main/java/featurecat/lizzie/gui/LizzieFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/** The window used to display the game. */
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/featurecat/lizzie/rules/Board.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,9 @@ public void moveNumber(int moveNumber) {
BoardHistoryNode node = history.getCurrentHistoryNode().previous();
while (node != null && node.numberOfChildren() <= 1) {
BoardData nodeData = node.getData();
if (nodeData != null
&& nodeData.lastMove != null
&& nodeData.moveNumber >= moveNumber) {
if (nodeData != null && nodeData.lastMove != null && nodeData.moveNumber >= moveNumber) {
moveNumber = (moveNumber > 1) ? moveNumber - 1 : 0;
moveNumberList[Board.getIndex(nodeData.lastMove[0], nodeData.lastMove[1])] =
moveNumber;
moveNumberList[Board.getIndex(nodeData.lastMove[0], nodeData.lastMove[1])] = moveNumber;
}
node = node.previous();
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/featurecat/lizzie/rules/SGFParser.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package featurecat.lizzie.rules;

import static java.util.Arrays.asList;

import featurecat.lizzie.Lizzie;
import featurecat.lizzie.analysis.GameInfo;
import featurecat.lizzie.analysis.Leelaz;
import java.io.*;
import java.text.SimpleDateFormat;
import static java.util.Arrays.asList;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
Expand Down

0 comments on commit 4b80672

Please sign in to comment.