Browse Source

calling winningpanel after winning

master
Ozan-Can Ekinci 2 years ago
parent
commit
e1b1d37acc
  1. 1
      QandA/Answers.txt
  2. 1
      QandA/Questions.txt
  3. 3
      src/main/java/game/loadNextQuestion.java

1
QandA/Answers.txt

@ -2,4 +2,3 @@ right,wrong,wrong,wrong,1
wrong,right,wrong,wrong,2
wrong,wrong,right,wrong,3
wrong,wrong,wrong,right,4
-,-,-,-,1

1
QandA/Questions.txt

@ -2,4 +2,3 @@ test1
test2
test3
test4
test5

3
src/main/java/game/loadNextQuestion.java

@ -50,6 +50,9 @@ public class loadNextQuestion implements ActionListener {
if (GameGui.questionNr != runGame.arrQuestions.length - 1) {
runGame StartGame = new runGame();
StartGame.run(GameGui.questionNr);
} else {
GameGui gameWin = new GameGui ();
gameWin.createWinningPanel();
}
}

Loading…
Cancel
Save