this is a Tic Tac Toe game made in python
This is a simple implementation of the classic Tic-Tac-Toe game using Python and the Tkinter library. The game allows two players to take turns marking spaces in a 3x3 grid, aiming to get three of their marks in a row, column, or diagonal.
-
Run the script using the following command:
-
The game window will open, displaying an empty 3x3 grid.
-
Player 1 will be randomly assigned either 'X' or 'O' to start the game.
-
Each player takes turns by clicking on an empty cell in the grid.
-
The objective is to get three marks of the same type in a row, column, or diagonal.
-
The game ends when a player wins or the entire grid is filled without a winner.
-
The winning player's marks will be highlighted in green.
-
If there is a tie (all cells are filled without a winner), it will be indicated as a tie game.
-
To start a new game, click the "Restart" button.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License.