Skip to content

Commit

Permalink
Format the source
Browse files Browse the repository at this point in the history
  • Loading branch information
zsalch committed Oct 12, 2019
1 parent 36bd642 commit 66699dc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 32 deletions.
4 changes: 3 additions & 1 deletion src/main/java/featurecat/lizzie/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,9 @@ private JSONObject createDefaultConfig() {

// About engine parameter
JSONObject leelaz = new JSONObject();
leelaz.put("_comment", "note, network-file is obselete in Lizzie 0.7+, ignore network-file, kept for compatibility");
leelaz.put(
"_comment",
"note, network-file is obselete in Lizzie 0.7+, ignore network-file, kept for compatibility");
leelaz.put("network-file", "lznetwork.gz");
if (this.macAppBundle) {
// Mac Apps don't really expect the user to modify the current working directory, since that
Expand Down
54 changes: 27 additions & 27 deletions src/main/java/featurecat/lizzie/gui/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,8 @@ public void actionPerformed(ActionEvent e) {
new JCheckBoxMenuItem(resourceBundle.getString("Menu.view.kataGo.kataEstimate.mode.small"));

final JCheckBoxMenuItem kataEstimateModeSmallAndDead =
new JCheckBoxMenuItem(
resourceBundle.getString("Menu.view.kataGo.kataEstimate.mode.smallAndDead"));
new JCheckBoxMenuItem(
resourceBundle.getString("Menu.view.kataGo.kataEstimate.mode.smallAndDead"));

final JCheckBoxMenuItem kataEstimateModeLargeAndSmall =
new JCheckBoxMenuItem(
Expand Down Expand Up @@ -836,24 +836,23 @@ public void actionPerformed(ActionEvent e) {
}
});

kataEstimateModeSmallAndDead.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Lizzie.config.kataGoEstimateMode = "small+dead";
Lizzie.frame.removeEstimateRect();
Lizzie.leelaz.ponder();
Lizzie.config.uiConfig.put("katago-estimate-mode", Lizzie.config.kataGoEstimateMode);
try {
Lizzie.config.save();
} catch (IOException es) {
// TODO Auto-generated catch block
}
}
});

kataEstimateModeSmallAndDead.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Lizzie.config.kataGoEstimateMode = "small+dead";
Lizzie.frame.removeEstimateRect();
Lizzie.leelaz.ponder();
Lizzie.config.uiConfig.put("katago-estimate-mode", Lizzie.config.kataGoEstimateMode);
try {
Lizzie.config.save();
} catch (IOException es) {
// TODO Auto-generated catch block
}
}
});

kataEstimateModeLargeAndSmall.addActionListener(
kataEstimateModeLargeAndSmall.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Expand Down Expand Up @@ -952,7 +951,8 @@ public void menuSelected(MenuEvent e) {
}
kataEstimateModeLarge.setState(Lizzie.config.kataGoEstimateMode.equals("large"));
kataEstimateModeSmall.setState(Lizzie.config.kataGoEstimateMode.equals("small"));
kataEstimateModeSmallAndDead.setState(Lizzie.config.kataGoEstimateMode.equals("small+dead"));
kataEstimateModeSmallAndDead.setState(
Lizzie.config.kataGoEstimateMode.equals("small+dead"));
kataEstimateModeLargeAndSmall.setState(
Lizzie.config.kataGoEstimateMode.equals("large+small"));
kataEstimateModeLargeAndDead.setState(
Expand Down Expand Up @@ -1235,14 +1235,14 @@ public void actionPerformed(ActionEvent e) {
analyzeMenu.add(toggleAnalyze);

final JMenuItem clearAnalysis =
new JMenuItem(resourceBundle.getString("Menu.analyze.clearAnalysis"));
new JMenuItem(resourceBundle.getString("Menu.analyze.clearAnalysis"));
clearAnalysis.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Lizzie.board.clearAnalysis();
}
});
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Lizzie.board.clearAnalysis();
}
});
analyzeMenu.add(clearAnalysis);

final JMenuItem autoAnalyze =
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/featurecat/lizzie/gui/OnlineDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ public class OnlineDialog extends JDialog {
115
};
private byte[] b3 = {
104, 116, 116, 112, 115, 58, 47, 47, 119, 101, 105, 113, 105, 46, 113, 113, 46, 99, 111, 109, 47,
111, 112, 101, 110, 113, 105, 112, 117, 47, 103, 101, 116, 113, 105, 112, 117, 63, 99, 97, 108,
108, 98, 97, 99, 107, 61, 106, 81, 117, 101, 114, 121, 49, 38, 103, 97, 109, 101, 99, 111, 100,
101, 61
104, 116, 116, 112, 115, 58, 47, 47, 119, 101, 105, 113, 105, 46, 113, 113, 46, 99, 111, 109,
47, 111, 112, 101, 110, 113, 105, 112, 117, 47, 103, 101, 116, 113, 105, 112, 117, 63, 99, 97,
108, 108, 98, 97, 99, 107, 61, 106, 81, 117, 101, 114, 121, 49, 38, 103, 97, 109, 101, 99, 111,
100, 101, 61
};
private byte[] c1 = {
104, 116, 116, 112, 115, 58, 47, 47, 114, 116, 103, 97, 109, 101, 46, 121, 105, 107, 101, 119,
Expand Down

0 comments on commit 66699dc

Please sign in to comment.