From 7c05b830b15334eab9eede9dd8a927216d151a9b Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Tue, 10 Jan 2023 19:28:15 +0100 Subject: [PATCH] implemented wrongAnswer method --- src/main/java/game/loadNextQuestion.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/game/loadNextQuestion.java b/src/main/java/game/loadNextQuestion.java index e736c18..9e1b169 100644 --- a/src/main/java/game/loadNextQuestion.java +++ b/src/main/java/game/loadNextQuestion.java @@ -55,5 +55,10 @@ public class loadNextQuestion implements ActionListener { gameWin.createWinningPanel(); } } + + public void wrongAnswer() { + GameGui gameLose = new GameGui(); + gameLose.createLosingPanel(); + } }