Skip to content

Commit

Permalink
07-08-18_15-44 = refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
harp077 committed Aug 7, 2018
1 parent a394c20 commit dc27215
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 54 deletions.
51 changes: 4 additions & 47 deletions src/main/java/SJCE/XChessFrame.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package SJCE;

import SJCE.xgui.Interfaces.IMainFrameConst;
import SJCE.xgui.Interfaces.IChessContext;
import SJCE.Cfg.AppCfgPref;
import SJCE.Cfg.BoardThemeSelect;
Expand Down Expand Up @@ -44,7 +45,7 @@ public class XChessFrame extends JFrame implements IChessContext, IMainFrameCons
public static ChessClock chessClock;
public static MoveListUI moveListUI;
public static BoardUI boardUI;
public JOptionPane MSG;
//public JOptionPane MSG;
public static Agent alphaAgent;
public static Agent betaAgent;
public static XChessFrame frame;
Expand Down Expand Up @@ -73,54 +74,10 @@ public XChessFrame() {
ImageIcon icone = new ImageIcon(getClass().getResource("/SJCE/img/SubFrameIcon.png"));
this.setIconImage(icone.getImage());
this.selectCE.addAll(Arrays.asList(this.selectEnginesArray));
/*this.selectCE.add("Human");
this.selectCE.add("Alf");
this.selectCE.add("Animats");
this.selectCE.add("ArabianKnight");
this.selectCE.add("Bagatur");
this.selectCE.add("BremboCE");
this.selectCE.add("Calculon");
this.selectCE.add("Carballo");
this.selectCE.add("CaveChess");
this.selectCE.add("Chess22k");
this.selectCE.add("CupCake");
this.selectCE.add("Cuckoo");
this.selectCE.add("ChessBotX");
this.selectCE.add("DeepBrutePos");
//this.selectCE.add("Detroid");
this.selectCE.add("Eden");
//this.selectCE.add("FairyPrincess");
this.selectCE.add("Fischerle");
this.selectCE.add("Flux");
this.selectCE.add("Frittle");
this.selectCE.add("FrankWalter");
this.selectCE.add("Gladiator");
this.selectCE.add("GNU Chess");
this.selectCE.add("Jchess");
this.selectCE.add("Javalin");
this.selectCE.add("jChecs");
//this.selectCE.add("KennyClassIQ");
this.selectCE.add("Kasparov");
this.selectCE.add("KingsOut");
this.selectCE.add("Koedem");
//this.selectCE.add("Krudo");
this.selectCE.add("Magnum");
this.selectCE.add("Mediocre");
this.selectCE.add("OliThink");
this.selectCE.add("Phoenix");
this.selectCE.add("Presbyter");
this.selectCE.add("Pulse");
this.selectCE.add("Rival");
this.selectCE.add("Rumney");
this.selectCE.add("Talvmenni");
this.selectCE.add("Tiffanys");
this.selectCE.add("Tri-OS");
this.selectCE.add("Unidexter");
this.selectCE.add("Ziggy");*/
//bMode.setVisible(false);
//bMode.setVisible(false);
//mrKenny.setVisible(false);
//mrCalculon.setVisible(false);
//this.bEngine.setModel(selectCE);
//this.bEngine.setModel(selectCE);
this.boardSetSize ();
//File themesFig = new File("themes");
//String [] themesList = themes.list();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package SJCE;
package SJCE.xgui.Interfaces;


public interface IMainFrameConst {

// const = public static final by default

public static String [] selectEnginesArray = {
String [] selectEnginesArray = {
"Human",
"Alf",
"Animats",
Expand Down Expand Up @@ -52,7 +52,7 @@ public interface IMainFrameConst {
"Ziggy"
};

public static String [] selectBoardThemeFig = {
String [] selectBoardThemeFig = {
"alpha",
"adventure",
//"berlin",
Expand Down Expand Up @@ -91,7 +91,7 @@ public interface IMainFrameConst {
"xboard"
};

public static String [] selectBoardThemeFon = {
String [] selectBoardThemeFon = {
"blue",
"brown",
//"blue-green",
Expand Down Expand Up @@ -125,12 +125,12 @@ public interface IMainFrameConst {
"wood-lite"
};

public static String [] selectEngineColor = {
String [] selectEngineColor = {
"black",
"white"
};

public static String [] arrayDepth = {
String [] arrayDepth = {
//"1",
"2",
"3",
Expand All @@ -142,7 +142,7 @@ public interface IMainFrameConst {
"9"
};

public static final int[] SQUARES = {
int[] SQUARES = {
56, 57, 58, 59, 60, 61, 62, 63,
48, 49, 50, 51, 52, 53, 54, 55,
40, 41, 42, 43, 44, 45, 46, 47,
Expand Down

0 comments on commit dc27215

Please sign in to comment.