A simple and interactive Tic-Tac-Toe game built using Python and KivyMD, designed for two players with a smooth UI experience. This project helped me understand core UI concepts, state management, and event handling in mobile app development using Kivy.
![]() |
![]() |
![]() |
![]() |
- ✅ 3x3 game board with responsive touch controls
- ✅ Highlights winning combinations
- ✅ Displays game result: Win / Draw
- ✅ Reset game button for instant replay
- ✅ Simple, user-friendly layout built with KivyMD components
- Building mobile UIs using KivyMD
- Managing game states and player turns
- Event handling and UI updates
- Structuring layouts using
BoxLayout,GridLayout, etc.
- Language: Python
- Framework: KivyMD (based on Kivy)
- Tools: VS Code, Git, Python 3.x
- Clone this repository:
git clone https://github.com/YajurChatnani/ticktacktoe.git cd ticktacktoe - (Optional) Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate
- Install required dependencies:
pip install kivy kivymd
- Run the app:
python main.py




