This is the classical game Tic Tac Toe implemented in the tkinter package (“Tk interface”) Python interface to the Tcl/Tk GUI toolkit GUI library.
This is the basic gameplay, showing the functions and the looks of the game.
The goal of the game is to connect horizontally, vertically or diagonally 3 of either "X" or "O" if all cells are filled up and no one was able to connect 3 elements a draw occurs.
Game Interface | Winning Condition |
---|---|
Vertical | |
Diagonal | |
Horizontal | |
Draw |
The game menu consists of three buttons:
-
Resets the game and clears all the previously placed elements.
-
Exits the game.
-
Shows the results of the game in a table format.
-
Create and activate a virtual environment
py install -m venv .venv
-
Install the requirement.txt
pip install -r requirements.txt
-
Run the main.py file
py main.py