Browse Source

[TikTakToeGame Class]: Variablen Definiert + Main ueberarbeitet

remotes/origin/TikTakToeGame
fdai7431 2 years ago
parent
commit
6a2412a856
  1. 27
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java

27
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.LayoutStyle.ComponentPlacement;
import javax.swing.JTextField; 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) { 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 public TikTakToeGame() {}//end

Loading…
Cancel
Save