diff --git a/src/main/java/Gui/StartGameGui.java b/src/main/java/Gui/StartGameGui.java index 8c26298..38fd1a8 100644 --- a/src/main/java/Gui/StartGameGui.java +++ b/src/main/java/Gui/StartGameGui.java @@ -14,6 +14,7 @@ public class StartGameGui implements ActionListener { gui.Panel.setVisible(false); runGame rungame = new runGame(); + rungame.run(); } } diff --git a/src/main/java/game/runGame.java b/src/main/java/game/runGame.java index 0206dde..a52cc23 100644 --- a/src/main/java/game/runGame.java +++ b/src/main/java/game/runGame.java @@ -7,4 +7,21 @@ import java.io.IOException; public class runGame { public static String QuestionsPath = "QandA/Questions.txt"; public static String AnswersPath = "QandA/Answers.txt"; + + public void run() { + readFile(QuestionsPath); + } + + public static String[] readFile(String Path) { + BufferedReader reader; + String[] Arr = new String[6]; + try { + reader = new BufferedReader(new FileReader(Path)); + String line = reader.readLine(); + } catch (IOException e) { + e.printStackTrace(); + } + return Arr; + } + } diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index c8c9929..f2c986d 100644 Binary files a/target/MiniGameProject-1.0-SNAPSHOT.jar and b/target/MiniGameProject-1.0-SNAPSHOT.jar differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index 4af4ab2..3e94082 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Fri Dec 30 11:20:41 CET 2022 +#Fri Dec 30 11:32:52 CET 2022 groupId=MiniGameProject artifactId=MiniGameProject version=1.0-SNAPSHOT