Browse Source

calling winningpanel after winning

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

3
QandA/Answers.txt

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

3
QandA/Questions.txt

@ -1,5 +1,4 @@
test1
test2
test3
test4
test5
test4

5
src/main/java/game/loadNextQuestion.java

@ -50,7 +50,10 @@ 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