From 55ce78fab6010ac26eae9064271bd194355874d4 Mon Sep 17 00:00:00 2001
From: fdai6040 <daniia.kudasheva@informatik.hs-fulda.de>
Date: Tue, 7 Feb 2023 11:06:00 +0100
Subject: [PATCH] Tic Tac Toe updated 0Win method to print that Player 0 wins

---
 src/main/java/src/TicTacToeGame.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/main/java/src/TicTacToeGame.java b/src/main/java/src/TicTacToeGame.java
index 8613662..592b0ed 100644
--- a/src/main/java/src/TicTacToeGame.java
+++ b/src/main/java/src/TicTacToeGame.java
@@ -145,6 +145,11 @@ public class TicTacToeGame implements ActionListener {
         bton[i1].setBackground(Color.PINK);
         bton[i2].setBackground(Color.PINK);
 
+        for (int j = 0; j < 9; j++)
+        {
+            bton[j].setEnabled(false);
+        }
+        textfield.setText("Player O Wins");
     }
 
     //method if player X wins