From 6a2412a8565e30b43b46a66795287b33f6e08afb Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Wed, 18 Jan 2023 10:29:50 +0100 Subject: [PATCH] [TikTakToeGame Class]: Variablen Definiert + Main ueberarbeitet --- .../JavaGamelauncher/TikTakToeGame.java | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java index 2e02383..e9ad1ba 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java @@ -22,11 +22,32 @@ import javax.swing.GroupLayout.Alignment; import javax.swing.LayoutStyle.ComponentPlacement; import javax.swing.JTextField; -public class TikTakToeGame { +public class TikTakToeGame extends JFrame{ + + public JPanel contentPane; + public boolean gewonnen = false; + public JTextField TextFieldAusgabe1; + public JTextField textFieldAusgabe2; + public JTextField textFieldAusgabe3; + + public int spielerIstDran = 1; + String btn1 = "0", btn2 = "0", btn3 = "0", btn4 = "0", btn5 = "0", btn6 = "0", btn7 = "0", btn8 = "0", btn9 = "0"; + public String spieler1 = "Spieler 1 hat %d Punkte"; + public String spieler2 = "Spieler 2 hat %d Punkte"; + public int punkte1 = 0, punkte2 = 2; public static void main(String[] args) { - // TODO Auto-generated method stub - + EventQueue.invokeLater(new Runnable() { + public void run() { + try { + GamelauncherMain frame = new GamelauncherMain(); + frame.setVisible(true); + } catch (Exception e) { + e.printStackTrace(); + } + } + }); + } public TikTakToeGame() {}//end