Skip to content

Repository files navigation

🎮 Tic-Tac-Toe Game

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.


📱 Preview

🎥 Watch Demo

Watch the demo


🚀 Features

  • ✅ 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

🧠 What I Learned

  • Building mobile UIs using KivyMD
  • Managing game states and player turns
  • Event handling and UI updates
  • Structuring layouts using BoxLayout, GridLayout, etc.

🛠️ Tech Stack

  • Language: Python
  • Framework: KivyMD (based on Kivy)
  • Tools: VS Code, Git, Python 3.x

📂 Installation & Running

  1. Clone this repository:
    git clone https://github.com/YajurChatnani/ticktacktoe.git
    cd ticktacktoe
    
  2. (Optional) Create and activate a virtual environment:
    python -m venv venv
    source venv/bin/activate  # For Windows: venv\Scripts\activate
    
  3. Install required dependencies:
    pip install kivy kivymd
    
  4. Run the app:
    python main.py

About

A classic 2-player Tic-Tac-Toe game with a clean, interactive UI built using the KivyMD framework. Designed for mobile, the app offers a smooth user experience with responsive touch inputs and visual feedback for wins, losses, or draws.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages