added main to hitorimain class

domainBranch
Emre Durak 2024-12-20 13:42:57 +01:00
parent 312a413b24
commit 5bb2c8d329
2 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,25 @@
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);
}
}

View File

@ -1,6 +1,5 @@
package de.hs_mannheim.informatik.pr2projekt.gui;
public class MenuGUI {
//ABC
}