added main to hitorimain class
parent
312a413b24
commit
5bb2c8d329
|
@ -1,5 +1,25 @@
|
||||||
package de.hs_mannheim.informatik.pr2projekt.domain;
|
package de.hs_mannheim.informatik.pr2projekt.domain;
|
||||||
|
|
||||||
public class HitoriMain {
|
public class HitoriMain extends JFrame implements AcrtionListener{
|
||||||
|
|
||||||
|
private static String[] filepath = new String[2];
|
||||||
|
|
||||||
|
public static void main(String[] args) throws FileNotFoundException{
|
||||||
|
filepath[0] = "";
|
||||||
|
filepath[1] = "";
|
||||||
|
new HitoriMain();
|
||||||
|
}
|
||||||
|
|
||||||
|
public HitoriMain() throws FileNotFoundException {
|
||||||
|
Stack<String> madeMoves = new Stack<>();
|
||||||
|
MenuGUI.getPath();
|
||||||
|
int i = 0;
|
||||||
|
while(filepath[0].equals("")){
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
|
String[][] data = getData(filepath[0], Integer.parseInt(filepath[1]));
|
||||||
|
String[][] colors = makeColorArray(data.length);
|
||||||
|
JButton[][] buttons = makeButtonArray(data);
|
||||||
|
GameGUI.paintGame(buttons, colors, madeMoves, data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package de.hs_mannheim.informatik.pr2projekt.gui;
|
package de.hs_mannheim.informatik.pr2projekt.gui;
|
||||||
|
|
||||||
public class MenuGUI {
|
public class MenuGUI {
|
||||||
|
|
||||||
//ABC
|
//ABC
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue