A simple Tic Tac Toe game written in Python using PySide.
This project implements a classic Tic Tac Toe game with two play modes:
- Player vs Player (local)
- Player vs AI
project/
│
├── ui/
│ ├── __init__.py
│ ├── main_app.py
│ └── ui_mainwindow.py
│
├── game/
│ ├── __init__.py
│ ├── board.py
│ ├── game_state.py
│ └── rules.py
│
├── ai/
│ ├── __init__.py
│ ├── ai_player.py
│ ├── random.py
│ └── minimax.py
│
└── main.py
- Python 3.14
- PySide6
Clone the project:
git clone https://github.com/acitate/QTic-tac-toe.git
Change directory:
cd QTic-tac-toe
1. Using uv:
Run:
uv run main.py
2. Using pip:
Install dependencies:
pip install PySide6
Run:
python main.py